Skip to content

Commit 0f57d04

Browse files
fosteramandaaahill
andauthored
Update articles/ai-services/agents/how-to/use-your-own-resources.md
Co-authored-by: aahill <[email protected]>
1 parent 55da9ff commit 0f57d04

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/ai-services/agents/how-to/use-your-own-resources.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,20 @@ Use an existing AI Services / Azure OpenAI, Azure Storage account, Azure Cosmos
8686
8787
1. To get your Azure Cosmos DB account resource ID, sign in to the Azure CLI and select the subscription with your account:
8888
89-
```az login```
89+
```console
90+
az login
91+
```
92+
9093
2. Then run the command:
9194
92-
```az cosmosdb show --resource-group <your-resource-group> --name <your-comosdb-account> --query "id" --output tsv```
95+
```console
96+
az cosmosdb show --resource-group <your-resource-group> --name <your-comosdb-account> --query "id" --output tsv
97+
```
9398
9499
The output is the `cosmosDBResourceId` you need to use in the template.
95100
3. In the standard agent template file, replace the following placeholders:
96101
97-
```
98-
cosmosDBResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{cosmosDbAccountName}
99-
```
100-
102+
`cosmosDBResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{cosmosDbAccountName}`
101103
### Use an existing Azure AI Search resource
102104
103105
1. To get your Azure AI Search resource ID, sign into Azure CLI and select the subscription with your search resource:

0 commit comments

Comments
 (0)