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-openai-workload-identity.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Tutorial: Connect AKS to Azure OpenAI with Service Connector and Workload Identity"
3
3
titleSuffix: Service Connector
4
-
description: "Complete step-by-step guide: Connect Azure Kubernetes Service (AKS) to Azure OpenAI using Service Connector with workload identity authentication"
4
+
description: "Complete step-by-step guide: Connect Azure Kubernetes Service (AKS) to Azure OpenAI using Service Connector with workload identity authentication."
5
5
#customer intent: As a developer, I want to connect my AKS resource to Azure OpenAI.
6
6
author: maud-lv
7
7
ms.author: malev
@@ -22,12 +22,12 @@ You'll complete the following tasks:
22
22
23
23
> [!div class="checklist"]
24
24
>
25
-
> * Create an AKS cluster and Azure OpenAI resource with GPT-4 model
26
-
> * Configure Service Connector to establish the connection with workload identity
27
-
> * Clone a sample application
28
-
> * Build and push container images to Azure Container Registry
29
-
> * Deploy the application to AKS and verify the connection
30
-
> * Clean up resources
25
+
> * Create an AKS cluster and Azure OpenAI resource with GPT-4 model.
26
+
> * Configure Service Connector to establish the connection with workload identity.
27
+
> * Clone a sample application.
28
+
> * Build and push container images to Azure Container Registry.
29
+
> * Deploy the application to AKS and verify the connection.
30
+
> * Clean up resources.
31
31
32
32
## Prerequisites
33
33
@@ -68,7 +68,7 @@ You start this tutorial by creating several Azure resources.
68
68
--name MyAKSCluster
69
69
```
70
70
71
-
1. Create an Azure OpenAI resource using the [az cognitiveservices account create](/cli/azure/cognitiveservices/account#az-cognitiveservices-account-create) command. Optionally refer to [this tutorial](/azure/ai-services/openai/how-to/create-resource) for more instructions. Azure OpenAI is the target service that the AKS cluster will connect to.
71
+
1. Create an Azure OpenAI resource using the [az cognitiveservices account create](/cli/azure/cognitiveservices/account#az-cognitiveservices-account-create) command. Optionally refer to [this tutorial](/azure/ai-services/openai/how-to/create-resource) for more instructions. Azure OpenAI is the target service that the AKS cluster connects to.
72
72
73
73
```azurecli
74
74
az cognitiveservices account create \
@@ -104,7 +104,7 @@ You start this tutorial by creating several Azure resources.
104
104
--sku Standard
105
105
```
106
106
107
-
1. Enable anonymous pull using [az acr update](/cli/azure/acr#az-acr-update) command so that the AKS cluster can consume the images in the registry.
107
+
1. Enable anonymous pull using the [az acr update](/cli/azure/acr#az-acr-update) command so that the AKS cluster can consume the images in the registry.
108
108
109
109
```azurecli-interactive
110
110
az acr update \
@@ -131,22 +131,22 @@ Refer to the [AKS service connection quickstart](quickstart-portal-aks-connectio
| **Authentication type** | *Workload Identity* | The authentication method to connect the app to Azure OpenAI. Workload identity is recommended for enhanced security. Alternative methods include connection string and service principal, and require credential management considerations. |
148
-
| **Subscription** | *My Subscription* | The subscription that contains the user-assigned managed identity. |
149
-
| **User assigned managed identity** | *myidentity* | The user-assigned managed identity that enables workload identity authentication for the AKS cluster. |
145
+
| Authentication Setting | Example value | Description |
| **Authentication type** | *Workload Identity* | The authentication method to connect the app to Azure OpenAI. Workload identity is recommended for enhanced security. Alternative methods include connection string and service principal, and require credential management considerations. |
148
+
| **Subscription** | *My Subscription* | The subscription that contains the user-assigned managed identity. |
149
+
| **User assigned managed identity** | *myidentity* | The user-assigned managed identity that enables workload identity authentication for the AKS cluster. |
150
150
151
151
Once the connection is created, you can view its details in the **Service Connector** pane.
152
152
@@ -159,7 +159,7 @@ az aks connection create cognitiveservices \
159
159
--workload-identity <user-identity-resource-id>
160
160
```
161
161
162
-
When using the above command, Service Connector prompts you to specify the AKS resource group, AKS cluster name, target service resource group, cognitive service account name, and user-assigned identity resource ID step by step.
162
+
When you use the preceding command, Service Connector prompts you step by step to specify the AKS resource group, AKS cluster name, target service resource group, cognitive service account name, and user-assigned identity resource ID.
163
163
164
164
Alternatively, you can provide the complete command directly:
165
165
@@ -211,7 +211,7 @@ az aks connection create cognitiveservices \
211
211
212
212
1. Replace the placeholders in the `pod.yaml` file in the `azure-openai-workload-identity` folder.
213
213
214
-
* Replace `<YourContainerImage>` with the name of the image you built earlier. For example `<myregistry>.azurecr.io/<sc-demo-openai-identity>:<latest>`.
214
+
* Replace `<YourContainerImage>` with the name of the image you built earlier. For example, `<myregistry>.azurecr.io/<sc-demo-openai-identity>:<latest>`.
215
215
* Replace `<ServiceAccountCreatedByServiceConnector>` with the service account name. It can be found in the Azure portal, in the **Service Connector** pane.
216
216
* Replace `<SecretCreatedByServiceConnector>` with the secret name. It can be found in the Azure portal, in the **Service Connector** pane.
0 commit comments