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

Error – Azure AD Application Authorisation Request Denied

Am I assigning the app role permission below in azuread.tf incorrectly? resource "azuread_application" "resource_creation" { display_name = local.azad_resource_creation_sp_name app_role { # ensuring app role definition can be assigned to other applications (the service principal) allowed_member_types = ["Application"] # enabling the…

VIEW QUESTION
Back To Top
Search