Skip to content

Instantly share code, notes, and snippets.

@iqan
Created July 8, 2023 10:44
Show Gist options
  • Save iqan/3b387631d122df6109bca0b632d46b29 to your computer and use it in GitHub Desktop.
Save iqan/3b387631d122df6109bca0b632d46b29 to your computer and use it in GitHub Desktop.
servicebus-trigger-demo-
var storageBlobDataOwnerRoleId = 'b7e6dc6d-f1e8-4753-8033-0f276bb0955b'
resource storageRoleAssignments 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(storageAccount.name, functionApp.name, storageBlobDataOwnerRoleId)
scope: storageAccount
properties: {
principalId: functionApp.identity.principalId
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', storageBlobDataOwnerRoleId)
principalType: 'ServicePrincipal'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment