skip to Main Content

Azure bicep get application id of service principal

Bicep can be used to create a role assignment as follows: resource RoleAssignment 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = { name: guid(managementGroup().id, RoleDefinitionId, principalId) properties: { roleDefinitionId: roleDefinition.id principalId: principalId principalType: principalType } } Where the principal type is 'ServicePrincipal', it seems the application…

VIEW QUESTION

Azure bicep dependsOn for existing resource

From my "main" bicep module, I would like to reference an existing function that is created by a module called from the same "main" bicep. So used the following code: resource functionApp 'Microsoft.Web/sites@2021-02-01' existing = { name: functionAppName scope: resourceGroup(subscriptionId,…

VIEW QUESTION
Back To Top
Search