Skip to content

Commit af07e32

Browse files
committed
resolving merge conlicts
2 parents 756a030 + 63a4526 commit af07e32

File tree

2 files changed

+75
-2
lines changed

2 files changed

+75
-2
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
### [Optional] Use your own resources in agent setup
2+
3+
> [!NOTE]
4+
> If you use an existing AI Services/AOAI resource, no model will be deployed. You can deploy a model to the resource after the agent setup is complete.
5+
6+
#### Basic agent setup: use an existing AI Services or Azure OpenAI resource
7+
8+
Replace the parameter value for `aiServiceAccountResourceId` with the full arm resource ID of the AI Services account you want to use.
9+
10+
1. To get the AI Services account resource ID, sign in to the Azure CLI and select the subscription with your AI Services/AOAI account:
11+
12+
```az login```
13+
2. Replace `<your-resource-group>` with the resource group containing your resource and `your-ai-service-resource-name` with the name of your AI Service resource, and run:
14+
15+
```az cognitiveservices account show --resource-group <your-resource-group> --name <your-ai-service-resource-name> --query "id" --output tsv```
16+
17+
The value returned is the `aiServiceAccountResourceId` you need to use in the template.
18+
19+
3. In the basic agent template file, set the parameter:
20+
- aiServiceAccountResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{serviceName}
21+
- [Azure OpenAI Resource Only] aiServiceKind: AzureOpenAI
22+
23+
24+
If you want to use an existing Azure OpenAI resource, you will need to update the `aiServiceAccountResourceId` and the `aiServiceKind` parameters in the parameter file. The aiServiceKind parameter should be set to AzureOpenAI.
25+
26+
#### Standard agent setup: use an existing AI Services, storage, and/or Azure AI Search resource
27+
28+
Use an existing AI Search, storage account, and/or Azure AI Search resource by providing the full arm resource ID in the standard agent template file.
29+
30+
Use an existing AI Services resource:
31+
1. Follow the steps in basic agent setup to get the AI Services account resource ID.
32+
2. In the standard agent template file, set the parameter:
33+
- aiServiceAccountResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{serviceName}
34+
35+
Use an existing storage account:
36+
1. To get your storage account resource ID, sign in to the Azure CLI and select the subscription with your storage account:
37+
38+
```az login```
39+
2. Then run the command:
40+
41+
```az search service show --resource-group <your-resource-group> --name <your-storage-account> --query "id" --output tsv```
42+
43+
The output is the `aiStorageAccountResourceID` you need to use in the template.
44+
3. In the standard agent template file, set the parameter:
45+
- aiStorageAccountResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}
46+
47+
Use an existing Azure AI Search resource:
48+
1. To get your Azure AI Search resource ID, sign into Azure CLI and select the subscription with your search resource:
49+
50+
```az login```
51+
2. Then run the command:
52+
53+
```az search service show --resource-group <your-resource-group> --name <your-search-service> --query "id" --output tsv```
54+
3. In the standard agent template file, set the parameter:
55+
- aiSearchServiceResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}

articles/ai-services/agents/includes/bicep-setup.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
manager: nitinme
3-
author: aahill
4-
ms.author: aahi
3+
author: fosteramanda
4+
ms.author: fosteramanda
55
ms.service: azure
66
ms.topic: include
77
ms.date: 11/13/2024
@@ -47,6 +47,24 @@ By default, the deployment template is configured with the following values:
4747
>
4848
> The templates only support deployment of OpenAI models. See which OpenAI models are supported in the [Azure AI Agent Service model support](../concepts/model-region-support.md) documentation.
4949
50+
51+
### [Optional] Use your own resources in agent setup
52+
53+
> [!NOTE]
54+
> If you use an existing AI Services/AOAI resource, no model will be deployed. You can deploy a model to the resource after the agent setup is complete.
55+
56+
Use an existing AI Services/AOAI, AI Search, and/or Azure Blob Storage resource by providing the full arm resource id in the parameters file:
57+
58+
- aiServiceAccountResourceId
59+
- aiSearchServiceResourceId
60+
- aiStorageAccountResourceId
61+
62+
63+
If you want to use an existing Azure OpenAI resource, you will need to update the `aiServiceAccountResourceId` and the `aiServiceKind` parameters in the parameter file. The `aiServiceKind` parameter should be set to `AzureOpenAI`.
64+
65+
For more details see [how to use your own resources](../how-to/tools/use-your-own-resources.md).
66+
67+
5068
## Basic agent setup resource architecture
5169
:::image type="content" source="../media/quickstart/basic-agent-setup-resources.png" alt-text="An architecture diagram for basic agent setup." lightbox="../media/quickstart/basic-agent-setup-resources.png":::
5270

0 commit comments

Comments
 (0)