Created
October 3, 2021 15:48
-
-
Save cdennig/204ac9e473d2f77f10699651ee1f7f0a to your computer and use it in GitHub Desktop.
roleassign.bicep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var roleAssignId = guid(roleDefId, principalId, cosmosDbAccount.id) | |
resource roleAssignment 'Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments@2021-06-15' = { | |
name: '${cosmosDbAccount.name}/${roleAssignId}' | |
properties: { | |
roleDefinitionId: roleDefinition.id | |
principalId: principalId | |
scope: cosmosDbAccount.id | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment