Skip to content

Commit 5182c56

Browse files
committed
update
1 parent 6a119f1 commit 5182c56

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

articles/service-connector/tutorial-python-aks-sql-database-connection-string.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ In this tutorial, you learn how to connect an application deployed to AKS, to an
2323
> * Update your application code
2424
> * Clean up Azure resources.
2525
26-
> [!WARNING]
27-
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable. See the [tutorial using a managed identity](tutorial-python-aks-storage-workload-identity.md).
2826

2927
## Prerequisites
3028

@@ -64,9 +62,9 @@ az provider register --namespace Microsoft.KubernetesConfiguration
6462

6563
### Create a new connection
6664

67-
Create a service connection between your AKS cluster and your SQL database in the Azure portal or the Azure CLI.
65+
::: zone pivot="workload-id"
6866

69-
::: zone pivot="connection-string"
67+
Create a service connection between your AKS cluster and your SQL database using Microsoft Entra Workload ID
7068

7169
### [Azure portal](#tab/azure-portal)
7270

@@ -84,9 +82,9 @@ Create a service connection between your AKS cluster and your SQL database in th
8482

8583
:::image type="content" source="media/tutorial-ask-sql/create-connection.png" alt-text="Screenshot of the Azure portal showing the form to create a new connection to a SQL database in AKS.":::
8684

87-
4. Select **Next: Authentication**. On the **Authentication** tab, enter your database username and password.
88-
5. Select **Next: Networking** > **Next: Review + create** >**Create**.
89-
6. Once the deployment is successful, you can view information about the new connection in the **Service Connector** pane.
85+
4. Select **Next: Authentication**. On the **Authentication** tab, select **Workload Identity** and choose one **User assigned managed identity**.
86+
5. Select **Next: Networking** > **Next: Review + create** >**Create On Cloud Shell**.
87+
6. The Cloud Shell will be launched and execute the commands to create a connection. You may need to confirm some configuration changes during the command processing. Once command runs successfully, it will show connection information, and you can click refresh button in **Service Connector** pane to show the latest result.
9088

9189
### [Azure CLI](#tab/azure-cli)
9290

@@ -104,14 +102,19 @@ Create a service connection to the SQL database using the [`az aks connection cr
104102
az aks connection create sql \
105103
--source-id /subscriptions/<source-subscription>/resourceGroups/<source_resource_group>/providers/Microsoft.ContainerService/managedClusters/<cluster> \
106104
--target-id /subscriptions/<target-subscription>/resourceGroups/<target_resource_group>/providers/Microsoft.Sql/servers/<server>/databases/<database> \
107-
--secret name=<secret-name> secret=<secret>
105+
--workload-identity /subscriptions/<identity-subscription>/resourcegroups/<resource_group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<identity_name>
108106
```
109107
110108
---
111109
112110
::: zone-end
113111
114-
::: zone pivot="workload-id"
112+
::: zone pivot="connection-string"
113+
114+
> [!WARNING]
115+
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable. Select the authentication method[Workload ID (Recommended)](#create-a-new-connection).
116+
117+
Create a service connection between your AKS cluster and your SQL database using a connection string
115118
116119
### [Azure portal](#tab/azure-portal)
117120
@@ -129,9 +132,9 @@ Create a service connection to the SQL database using the [`az aks connection cr
129132
130133
:::image type="content" source="media/tutorial-ask-sql/create-connection.png" alt-text="Screenshot of the Azure portal showing the form to create a new connection to a SQL database in AKS.":::
131134
132-
4. Select **Next: Authentication**. On the **Authentication** tab, select **Workload Identity** and choose one **User assigned managed identity**.
133-
5. Select **Next: Networking** > **Next: Review + create** >**Create On Cloud Shell**.
134-
6. The Cloud Shell will be launched and execute the commands to create a connection. You may need to confirm some configuration changes during the command processing. Once command runs successfully, it will show connection information, and you can click refresh button in **Service Connector** pane to show the latest result.
135+
4. Select **Next: Authentication**. On the **Authentication** tab, enter your database username and password.
136+
5. Select **Next: Networking** > **Next: Review + create** >**Create**.
137+
6. Once the deployment is successful, you can view information about the new connection in the **Service Connector** pane.
135138
136139
### [Azure CLI](#tab/azure-cli)
137140
@@ -149,7 +152,7 @@ Create a service connection to the SQL database using the [`az aks connection cr
149152
az aks connection create sql \
150153
--source-id /subscriptions/<source-subscription>/resourceGroups/<source_resource_group>/providers/Microsoft.ContainerService/managedClusters/<cluster> \
151154
--target-id /subscriptions/<target-subscription>/resourceGroups/<target_resource_group>/providers/Microsoft.Sql/servers/<server>/databases/<database> \
152-
--workload-identity /subscriptions/<identity-subscription>/resourcegroups/<resource_group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<identity_name>
155+
--secret name=<secret-name> secret=<secret>
153156
```
154157
155158
---

articles/service-connector/zone-pivot-groups.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ groups:
2626
title: Service principal
2727

2828
- id: aks-authtype
29-
title: Choose the authentication type
30-
prompt: Choose the authentication type
29+
title: Select an authentication method
30+
prompt: Select an authentication method
3131
pivots:
32+
- id: workload-id
33+
title: Workload ID (Recommended)
3234
- id: connection-string
3335
title: Connection string
34-
- id: workload-id
35-
title: Workload ID
36+

0 commit comments

Comments
 (0)