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 – ARM Template – Deployment slot keyvault permissions

Trying to assign permissions for the app service deployment slot to keyvault and having a hell of a time getting it { "tenantId": "[subscription().tenantId]", "objectId": "[resourceId('Microsoft.Web/sites/slots', parameters('azureAppService').webSiteName, 'DEV').identity.principalId]", "permissions": { "secrets": [ "Get" ] } } Not sure what I'm…

VIEW QUESTION

Azure – The Resource 'Microsoft.Web/sites/xxxxx' under resource group 'rg-idn' was not found

I try to make a template for web app for docker. And I have the following json file: { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "sites_docker_webscraper_name": { "defaultValue": "docker-webscraper", "type": "String" }, "serverfarms_internet_suite_externalid": { "defaultValue": "/subscriptions/fea4c865-1e54-44b3-ba1d-07315468f083/resourceGroups/rg-idn-nvwa-sas_nvwa/providers/Microsoft.Web/serverfarms/crinternetsuite", "type": "String" } },…

VIEW QUESTION
Back To Top
Search