File tree Expand file tree Collapse file tree 1 file changed +24
-23
lines changed Expand file tree Collapse file tree 1 file changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -74,46 +74,47 @@ The script generates a random password for the SQL server and a random SSH key f
74
74
75
75
1 . Get the Azure resource group name.
76
76
77
- ``` console
78
- resource_group_name=$(terraform output -raw resource_group_name)
79
- ```
77
+ ``` console
78
+ resource_group_name=$(terraform output -raw resource_group_name)
79
+ ```
80
80
81
81
1. Get the SQL Server name.
82
82
83
- ``` console
84
- sql_server=$(terraform output -raw sql_server)
85
- ```
83
+ ```console
84
+ sql_server=$(terraform output -raw sql_server)
85
+ ```
86
86
87
87
1. Run [az sql server show](/cli/azure/sql/server#az-sql-server-show) to display the details about the SQL Server private endpoint.
88
- ``` azurecli
89
- az sql server show \
90
- --resource-group $resource_group_name \
91
- --name $sql_server --query privateEndpointConnections \
92
- --output tsv
93
- ```
88
+
89
+ ```azurecli
90
+ az sql server show \
91
+ --resource-group $resource_group_name \
92
+ --name $sql_server --query privateEndpointConnections \
93
+ --output tsv
94
+ ```
94
95
95
96
#### [Azure PowerShell](#tab/azure-powershell)
96
97
97
98
1. Get the Azure resource group name.
98
99
99
- ``` console
100
- $resource_group_name=$(terraform output -raw resource_group_name)
101
- ```
100
+ ```console
101
+ $resource_group_name=$(terraform output -raw resource_group_name)
102
+ ```
102
103
103
104
1. Get the SQL Server name.
104
105
105
- ``` console
106
- $sql_server=$(terraform output -raw sql_server_name)
107
- ```
106
+ ```console
107
+ $sql_server=$(terraform output -raw sql_server_name)
108
+ ```
108
109
109
110
1. Run [Get-AzPrivateEndpoint](/powershell/module/az.network/get-azprivateendpoint) to display the details about the SQL Server private endpoint.
110
111
111
- ``` azurepowershell
112
- $sql = @{
112
+ ```azurepowershell
113
+ $sql = @{
113
114
ResourceGroupName = $resource_group_name
114
- }
115
- Get-AzPrivateEndpoint @sql
116
- ```
115
+ }
116
+ Get-AzPrivateEndpoint @sql
117
+ ```
117
118
118
119
---
119
120
You can’t perform that action at this time.
0 commit comments