You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sql-database/sql-database-connectivity-architecture.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,13 +140,13 @@ The following CLI script shows how to change the connection policy in a bash she
140
140
sqlserverid=$(az sql server show -n sql-server-name -g sql-server-group --query 'id' -o tsv)
141
141
142
142
# Set URI
143
-
id="$sqlserverid/connectionPolicies/Default"
143
+
ids="$sqlserverid/connectionPolicies/Default"
144
144
145
145
# Get current connection policy
146
-
az resource show --ids $id
146
+
az resource show --ids $ids
147
147
148
148
# Update connection policy
149
-
az resource update --ids $id --set properties.connectionType=Proxy
149
+
az resource update --ids $ids --set properties.connectionType=Proxy
150
150
```
151
151
152
152
### 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
158
158
159
159
```azurecli
160
160
# 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)
162
162
163
163
# Get current connection policy
164
-
az resource show --ids $id
164
+
az resource show --ids %ids%
165
165
166
166
# Update connection policy
167
-
az resource update --ids $id --set properties.connectionType=Proxy
167
+
az resource update --ids %ids% --set properties.connectionType=Proxy
0 commit comments