Skip to content

Commit

Permalink
Add ACR pull role assignment for staging slot
Browse files Browse the repository at this point in the history
  • Loading branch information
wicksipedia committed Nov 21, 2023
1 parent 2267ddb commit fc8690a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions infra/appService.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ resource appServiceAcrPullRoleAssignment 'Microsoft.Authorization/roleAssignment
}
}

resource stagingSlotAcrPullRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
scope: acr
name: guid(acr.id, stagingSlot.id, acrPullRoleDefinitionId)
properties: {
principalId: stagingSlot.identity.principalId
roleDefinitionId: acrPullRoleDefinitionId
principalType: 'ServicePrincipal'
}
}


module kvAppRoleAssignment 'keyVaultRoleAssignment.bicep' = {
name: 'kvAppRoleAssignment-${now}'
Expand Down

0 comments on commit fc8690a

Please sign in to comment.