Azure / azure-diagnostics-tools

Plugins and tools for collecting, processing, managing, and visualizing diagnostics data and configuration
98 stars 93 forks source link

Deploying Diagnostic Settings to Event Hubs - Issue with DR Event Hubs #228

Open awanarslan opened 3 years ago

awanarslan commented 3 years ago

Had a policy to deploy diagnostic settings on resources to Event Hubs, but some resources are in a different region than that of the Event Hub, which is forbidden.

To mitigate this, we have been using a Geo Recovery Alias to connect the Primary/Secondary Event Hubs and would like to reference that Geo Event Hub Alias as the Event Hub Namespace in the policy. Issue is when we get to the Event Hub Authorization Rule ID for that, the resource type is 'microsoft.eventhub/namespaces/disasterrecoveryconfigs/authorizationrules' when it is supposed to be ''microsoft.eventhub/namespaces/authorizationrules'.

I don't understand how we can possibly reference that as the second resource type while also referencing the DR Alias. Any guidance or ideas?