Skip to content

Commit d3f2d72

Browse files
Merge pull request #272963 from dileepraotv-github/04222024_TLS_UPDATES
Updated AZ CLI command
2 parents 63360d4 + af938da commit d3f2d72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/cosmos-db/self-serve-minimum-tls-enforcement.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ After setting up your account, you can review in the Review + create tab, at the
9191
To set using Azure CLI, use the command:
9292

9393
```azurecli-interactive
94-
subId=$(az account show --query id -o tsv)
9594
rg="myresourcegroup"
9695
dbName="mycosmosdbaccount"
9796
minimalTlsVersion="Tls12"
98-
az rest --uri "/subscriptions/$subId/resourceGroups/$rg/providers/Microsoft.DocumentDB/databaseAccounts/$dbName?api-version=2022-11-15" --method PATCH --body "{ 'properties': { 'minimalTlsVersion': '$minimalTlsVersion' } }" --headers "Content-Type=application/json"
97+
az cosmosdb update -n $dbName -g $rg --minimal-tls-version $minimalTlsVersion
9998
```
10099

101100
### Set via Azure PowerShell

0 commit comments

Comments
 (0)