bcgov / Cloud-Pathfinder-Azure

Apache License 2.0
0 stars 0 forks source link

Review / Update Diagnostics Collection #149

Closed AErmie closed 2 weeks ago

AErmie commented 2 months ago

In Azure Monitor > Settings: Diagnostic Settings, not all Azure resource types have diagnostics enabled. We should conduct a review/spot-check to ensure the appropriate Azure Policies are deployed and applied, to ensure we are capturing required diagnostics data.

image.png

From a quick review, the following Azure resource types are missing diagnostics:

Acceptance Criteria

Generated by Zenhub AI

AErmie commented 2 months ago

It appeared that some Azure Policy errors occurred due to various Resource Providers not being registered.

image.png

However, in this specific instance, the microsoft.insights provider was already registered!

image.png

Triggered re-register the provider. Then triggered a re-deploy of the Azure Policy template, which completed successfully.

image.png

Resource Providers (FORGE vs LIVE)

Connectivity Subscription

In comparing the FORGE environment with the LIVE environment (specifically the Connectivity subscription), the following Resource Providers were registered in FORGE, but not in LIVE:

Management Subscription

In comparing the FORGE environment with the LIVE environment (specifically the Management subscription), the following Resource Providers were registered in FORGE, but not in LIVE:

AErmie commented 2 months ago

This might be due to some Azure Policies not being applied/deploying correctly. Needs investigation.