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?
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?