Setting up diagnostic logs workspace to push to an event hub

 Generally setting this up is pretty straight forward, i can use az powershell command to do it. 


New-AzDiagnosticSetting -Name testsetting -ResourceId
<your-resource-id> -Log $log -Metric $metric
-EventHubName ehname -EventHubAuthorizationRuleId
<your-RootManageSharedAccessKey-auth-rule-id>


The thing that i got tripped alot here is the rule id. Given that i have a separate rule id for event hub called eh-test, it wouldn't work. It will give me an error saying "invalid auth id" - which leads me to think there's something wrong with my auth id value or perhaps permission. I have tried setting read, write and manage permission yet the outcome is still the same.

Instead i have to resort to using root managed rule id. 



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm