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
> This script requires the [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli).
138
+
136
139
The following CLI script shows how to change the connection policy in a bash shell.
137
140
138
141
```azurecli-interactive
@@ -161,10 +164,10 @@ The following CLI script shows how to change the connection policy from a Window
161
164
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
165
163
166
# Get current connection policy
164
-
az resource show --ids %ids%
167
+
az resource show --ids %sqlserverid%
165
168
166
169
# Update connection policy
167
-
az resource update --ids %ids% --set properties.connectionType=Proxy
170
+
az resource update --ids %sqlserverid% --set properties.connectionType=Proxy
0 commit comments