Skip to content

Commit 77d21c2

Browse files
Merge pull request #220437 from seesharprun/cosmos-rbac-fix-json
Cosmos DB | Moved RBAC filenames from JSON files to instructions
2 parents 2f13a52 + 80fda79 commit 77d21c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

articles/cosmos-db/how-to-setup-rbac.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,9 @@ AssignableScopes : {/subscriptions/<mySubscriptionId>/resourceGroups/<myResource
182182

183183
### Using the Azure CLI
184184

185-
Create a role named *MyReadOnlyRole* that only contains read actions:
185+
Create a role named *MyReadOnlyRole* that only contains read actions in a file named **role-definition-ro.json**:
186186

187187
```json
188-
// role-definition-ro.json
189188
{
190189
"RoleName": "MyReadOnlyRole",
191190
"Type": "CustomRole",
@@ -207,10 +206,9 @@ accountName='<myCosmosAccount>'
207206
az cosmosdb sql role definition create --account-name $accountName --resource-group $resourceGroupName --body @role-definition-ro.json
208207
```
209208

210-
Create a role named *MyReadWriteRole* that contains all actions:
209+
Create a role named *MyReadWriteRole* that contains all actions in a file named **role-definition-rw.json**:
211210

212211
```json
213-
// role-definition-rw.json
214212
{
215213
"RoleName": "MyReadWriteRole",
216214
"Type": "CustomRole",

0 commit comments

Comments
 (0)