File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -182,10 +182,9 @@ AssignableScopes : {/subscriptions/<mySubscriptionId>/resourceGroups/<myResource
182
182
183
183
### Using the Azure CLI
184
184
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 ** :
186
186
187
187
``` json
188
- // role-definition-ro.json
189
188
{
190
189
"RoleName" : " MyReadOnlyRole" ,
191
190
"Type" : " CustomRole" ,
@@ -207,10 +206,9 @@ accountName='<myCosmosAccount>'
207
206
az cosmosdb sql role definition create --account-name $accountName --resource-group $resourceGroupName --body @role-definition-ro.json
208
207
```
209
208
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 ** :
211
210
212
211
``` json
213
- // role-definition-rw.json
214
212
{
215
213
"RoleName" : " MyReadWriteRole" ,
216
214
"Type" : " CustomRole" ,
You can’t perform that action at this time.
0 commit comments