-Currently in bicep, there is no way to explicitly "scope" the Monitoring Data Reader role assignment on a string parameter "resource id" for Azure Monitor Workspace(like in Arm template). Bicep expects a value of type "resource | tenant" and currently there is no rest api [spec](https://github.com/Azure/azure-rest-api-specs) for Azure Monitor Workspace. So, as a workaround, the default scoping for Monitoring Data Reader role is on the resource group and thus the role is applied on the same Azure monitor workspace(by inheritence) which is the expected behavior. Thus, after deploying this bicep template, the grafana resource will get read permissions in all the Azure Monitor Workspaces under the subscription.
0 commit comments