Skip to content

Commit fb81e78

Browse files
committed
Update CLI command description
1 parent 282d0f7 commit fb81e78

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

articles/service-connector/tutorial-python-aks-openai-workload-identity.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: service-connector
99
ms.custom: devx-track-python, build-2024, devx-track-azurecli
1010
ms.collection: ce-skilling-ai-copilot
1111
ms.topic: tutorial
12-
ms.date: 05/07/2024
12+
ms.date: 01/22/2025
1313
---
1414

1515
# Tutorial: Connect to Azure OpenAI Service in AKS using Workload Identity (preview)
@@ -148,19 +148,25 @@ Once the connection has been created, you can view its details in the **Service
148148
149149
### [Azure CLI](#tab/azure-cli)
150150
151-
Use the Azure CLI command to create a service connection to the Azure OpenAI service, providing the following information:
152-
153-
* **Source compute service resource group name:** the resource group name of the AKS cluster.
154-
* **AKS cluster name:** the name of your AKS cluster that connects to the target service.
155-
* **Target service resource group name:** the resource group name of the Azure OpenAI service.
156-
* **OpenAI service name:** the Azure OpenAI service that is connected.
157-
* **User-assigned identity resource ID:** the resource ID of the user-assigned identity used to create the workload identity.
151+
Create a service connection in AKS using the Azure CLI.
158152
159153
```azurecli
160154
az aks connection create cognitiveservices \
161155
--workload-identity <user-identity-resource-id>
162156
```
163157

158+
When using the [az aks connection create](/cli/azure/aks/connection/create#az-aks-connection-create-cognitiveservices) 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.
159+
Alternatively, you can provide the complete command directly:
160+
161+
```azurecli
162+
az aks connection create cognitiveservices \
163+
--workload-identity <user-identity-resource-id> \
164+
--resource-group <aks-cluster-resource-group> \
165+
--name <aks-cluster-name> \
166+
--target-resource-group <target-cognitive-services-resource-group> \
167+
--account <target-cognitive-services-account>
168+
```
169+
164170
---
165171

166172
## Clone sample application

0 commit comments

Comments
 (0)