Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you are facing permission issues while trying to enable Traffic Analytics using Pipeline with Bicep code.
While I tried to reproduce the error, I came across the below :
There is a permission issue and is being tracked here : https://github.com/MicrosoftDocs/azure-docs/issues/110447
The document was recently updated to include : Microsoft.OperationalInsights/workspaces/*
actions.
With further investigation from Azure Support, it was revealed that the Azure roles (permissions) should be at the subscription scope, and is not inherited from MG scope.
The document also highlights this,
Your account must have any one of the following Azure roles at the subscription scope: owner, contributor, or network contributor.
David Hancocks , however, I understand it does not specifically state that the permissions should be exclusively assigned at subscription level and inheritance from MG would not work.
I have informed our Product Group about this and hopefully, we should update the document stating that the exclusive assignment of permissions at subscription level is required.
This is being tracked in : https://github.com/MicrosoftDocs/azure-docs/issues/113313
Thanks for your contribution on Q&A and appreciate much for taking the time to share your feedback and working with us.
Cheers,
Kapil
Please Accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.