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/service-connector/tutorial-python-aks-sql-database-connection-string.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,6 @@ In this tutorial, you learn how to connect an application deployed to AKS, to an
23
23
> * Update your application code
24
24
> * Clean up Azure resources.
25
25
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).
28
26
29
27
## Prerequisites
30
28
@@ -64,9 +62,9 @@ az provider register --namespace Microsoft.KubernetesConfiguration
64
62
65
63
### Create a new connection
66
64
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"
68
66
69
-
::: zone pivot="connection-string"
67
+
Create a service connection between your AKS cluster and your SQL database using Microsoft Entra Workload ID
70
68
71
69
### [Azure portal](#tab/azure-portal)
72
70
@@ -84,9 +82,9 @@ Create a service connection between your AKS cluster and your SQL database in th
84
82
85
83
:::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.":::
86
84
87
-
4. Select **Next: Authentication**. On the **Authentication** tab, enter your database username and password.
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.
90
88
91
89
### [Azure CLI](#tab/azure-cli)
92
90
@@ -104,14 +102,19 @@ Create a service connection to the SQL database using the [`az aks connection cr
> 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
115
118
116
119
### [Azure portal](#tab/azure-portal)
117
120
@@ -129,9 +132,9 @@ Create a service connection to the SQL database using the [`az aks connection cr
129
132
130
133
:::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.":::
131
134
132
-
4. Select **Next: Authentication**. On the **Authentication** tab, select **Workload Identity** and choose one **User assigned managed identity**.
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.
0 commit comments