Skip to content

Commit 0442c74

Browse files
authored
Update sql-database-connectivity-architecture.md
1 parent 6cc62d8 commit 0442c74

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/sql-database/sql-database-connectivity-architecture.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ The following CLI script shows how to change the connection policy in a bash she
140140
sqlserverid=$(az sql server show -n sql-server-name -g sql-server-group --query 'id' -o tsv)
141141
142142
# Set URI
143-
id="$sqlserverid/connectionPolicies/Default"
143+
ids="$sqlserverid/connectionPolicies/Default"
144144
145145
# Get current connection policy
146-
az resource show --ids $id
146+
az resource show --ids $ids
147147
148148
# Update connection policy
149-
az resource update --ids $id --set properties.connectionType=Proxy
149+
az resource update --ids $ids --set properties.connectionType=Proxy
150150
```
151151

152152
### Azure CLI from a Windows command prompt
@@ -158,13 +158,13 @@ The following CLI script shows how to change the connection policy from a Window
158158

159159
```azurecli
160160
# Get SQL Server ID and set URI
161-
FOR /F "tokens=*" %g IN ('az sql server show --resource-group myResourceGroup-571418053 --name server-538465606 --query "id" -o tsv') do (SET id=%g/connectionPolicies/Default)
161+
FOR /F "tokens=*" %g IN ('az sql server show --resource-group myResourceGroup-571418053 --name server-538465606 --query "id" -o tsv') do (SET sqlserverid=%g/connectionPolicies/Default)
162162
163163
# Get current connection policy
164-
az resource show --ids $id
164+
az resource show --ids %ids%
165165
166166
# Update connection policy
167-
az resource update --ids $id --set properties.connectionType=Proxy
167+
az resource update --ids %ids% --set properties.connectionType=Proxy
168168
```
169169

170170
## Next steps

0 commit comments

Comments
 (0)