Last active
March 7, 2018 07:21
-
-
Save PlagueHO/262c087f1e4fb4d6bfd3cf0db314c0f6 to your computer and use it in GitHub Desktop.
Grant all access to the TestCollection in the TestDatabase for the user TestUserId in CosmosDB
This file contains 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
$userId = 'TestUserId' | |
$resourcePath = Get-CosmosDbCollectionResourcePath -Database 'TestDatabase' -Id 'TestCollection' | |
New-CosmosDbPermission -Context $context -Id 'AccessTestCollection' -UserId $userId -PermissionMode All -Resource $resourcePath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment