Skip to content

Commit 58979aa

Browse files
authored
Merge pull request #113150 from kanshiG/patch-82
Added the cli command to disable the key via sdk
2 parents ef87334 + 6585b37 commit 58979aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/cosmos-db/role-based-access-control.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ The Cosmos resource provider can be locked down to prevent any changes to resour
5656
}
5757
}
5858
}
59+
```
60+
If you export an existing Resource Manager template and update it with this property, it can completely replace the functionality of your template. So if all values are not included, they will be reset to default. Another way to disable the key-based metadata write access is by using Azure CLI as shown in the following command:
61+
62+
```cli
63+
az cosmosdb update --name CosmosDBAccountName --resource-group ResourceGroupName --disable-key-based-metadata-write-access true
64+
5965
```
6066

6167
## Next steps

0 commit comments

Comments
 (0)