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
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ author: srdan-bozovic-msft
11
11
ms.author: srbozovi
12
12
ms.reviewer: carlrab
13
13
manager: craigg
14
-
ms.date: 06/25/2019
14
+
ms.date: 06/26/2019
15
15
---
16
16
# Azure SQL Connectivity Architecture
17
17
@@ -147,6 +147,24 @@ az resource show --ids $id
147
147
az resource update --ids $id --set properties.connectionType=Proxy
148
148
```
149
149
150
+
## Script to change connection settings via Azure CLI from a Windows command prompt (with Azure CLI installed)
151
+
152
+
> [!IMPORTANT]
153
+
> This script requires the [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli).
154
+
155
+
The following CLI script shows how to change the connection policy in a bash shell.
156
+
157
+
```azurecli
158
+
# Get SQL Server ID and set URI
159
+
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)
160
+
161
+
# Get current connection policy
162
+
az resource show --ids $id
163
+
164
+
# Update connection policy
165
+
az resource update --ids $id --set properties.connectionType=Proxy
166
+
```
167
+
150
168
## Next steps
151
169
152
170
- For information on how to change the Azure SQL Database connection policy for an Azure SQL Database server, see [conn-policy](https://docs.microsoft.com/cli/azure/sql/server/conn-policy).
0 commit comments