Skip to content

Commit aba0ab5

Browse files
authored
Merge pull request #2044 from MicrosoftDocs/main
12/17/2024 PM Publish
2 parents ae5d6d2 + 887f21d commit aba0ab5

26 files changed

+110
-94
lines changed

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ manager: nitinme
77
ms.service: azure
88
ms.topic: how-to
99
ms.date: 12/11/2024
10-
author: aahill
11-
ms.author: aahi
10+
author: fosteramanda
11+
ms.author: fosteramanda
1212
ms.custom: azure-ai-agents
1313
---
1414

@@ -27,9 +27,9 @@ To use your own resources, you can edit the parameters in the provided deploymen
2727

2828
**Standard Setup**: Agents use customer-owned, single-tenant search and storage resources. With this setup, you have full control and visibility over these resources, but you incur costs based on your usage. You can use your own AI services account, storage account, and/or Azure AI Search resource with this option.
2929

30-
## Basic agent setup: use an existing AI Services resource
30+
## Basic agent setup: use an existing AI Services/Azure OpenAI resource
3131

32-
Replace the parameter value for `aiServiceAccountResourceId` with the full arm resource ID of the AI Services account you want to use.
32+
Replace the parameter value for `aiServiceAccountResourceId` with the full arm resource ID of the AI Services/Azure OpenAI resource you want to use.
3333

3434
1. To get the AI Services account resource ID, sign in to the Azure CLI and select the subscription with your AI Services account:
3535

@@ -44,18 +44,25 @@ Replace the parameter value for `aiServiceAccountResourceId` with the full arm r
4444

4545
```
4646
aiServiceAccountResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{serviceName}
47+
48+
[Azure OpenAI Only] aiServiceKind: AzureOpenAI
4749
```
4850
49-
## Standard agent setup: use an existing AI Services, storage, and/or Azure AI Search resource
51+
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.
52+
53+
54+
## Standard agent setup: use an existing AI Services/Azure OpenAI, storage, and/or Azure AI Search resource
5055
5156
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.
5257
53-
Use an existing AI Services resource:
58+
Use an existing AI Services/Azure OpenAI resource:
5459
1. Follow the steps in basic agent setup to get the AI Services account resource ID.
5560
2. In the standard agent template file, replace the following placeholders:
5661
5762
```
5863
aiServiceAccountResourceId:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{serviceName}
64+
65+
[Azure OpenAI Only] aiServiceKind: AzureOpenAI
5966
```
6067
6168
### Use an existing storage account

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

Lines changed: 21 additions & 3 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,10 +47,28 @@ 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 during agent setup
52+
53+
> [!NOTE]
54+
> If you use an existing AI Services or Azure OpenAI 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, Azure OpenAI, 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 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 information, see [how to use your own resources](../how-to/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

53-
Resources for the AI hub, AI project, and AI Services are created for you. A storage account is created because it's a required resource for hubs, but this storage account is not used by agents. The AI Services account is connected to your project/hub and a gpt-4o-mini model is deployed in the eastus region. A Microsoft-managed key vault, storage account, and search resource is used by default.
71+
Resources for the AI hub, AI project, and AI Services are created for you. A storage account is created because it's a required resource for hubs, but this storage account isn't used by agents. The AI Services account is connected to your project/hub and a gpt-4o-mini model is deployed in the eastus region. A Microsoft-managed key vault, storage account, and search resource is used by default.
5472

5573
## Standard agent setup resource architecture
5674
:::image type="content" source="../media/quickstart/standard-agent-setup-resources.png" alt-text="An architecture diagram for standard agent setup." lightbox="../media/quickstart/standard-agent-setup-resources.png":::

articles/ai-services/agents/includes/file-search/deep-dive.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ ms.topic: include
77
ms.date: 12/10/2024
88
---
99
## Creating vector stores and adding files
10-
11-
You can create a vector store and add files to it in a single API call:
12-
13-
```python
14-
vector_store = project_client.agents.create_vector_store_file_batch_and_poll(
15-
name="my_vector_store",
16-
file_ids=['file_path_1', 'file_path_2', 'file_path_3', 'file_path_4', 'file_path_5']
17-
)
18-
```
19-
2010
Adding files to vector stores is an async operation. To ensure the operation is complete, we recommend that you use the 'create and poll' helpers in our official SDKs. If you're not using the SDKs, you can retrieve the `vector_store` object and monitor its `file_counts` property to see the result of the file ingestion operation.
2111

2212
Files can also be added to a vector store after it's created by creating vector store files.
@@ -40,7 +30,7 @@ Alternatively, you can add several files to a vector store by creating batches o
4030
```python
4131
batch = project_client.agents.create_vector_store_file_batch_and_poll(
4232
vector_store_id=vector_store.id,
43-
file_ids=['file_1', 'file_2', 'file_3', 'file_4', 'file_5']
33+
file_ids=[file_1.id, file_2.id, file_3.id, file_4.id, file_5.id]
4434
)
4535
```
4636

@@ -83,7 +73,7 @@ To help you manage the costs associated with these vector_store objects, we adde
8373
```python
8474
vector_store = project_client.agents.create_vector_store_and_poll(
8575
name="Product Documentation",
86-
file_ids=['file_1', 'file_2', 'file_3', 'file_4', 'file_5'],
76+
file_ids=[file_1.id],
8777
expires_after={
8878
"anchor": "last_active_at",
8979
"days": 7

articles/ai-services/agents/includes/quickstart-python-openai.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ ms.date: 11/13/2024
1313
## Prerequisites
1414

1515
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services).
16-
* [Python 3.13 or later](https://www.python.org/)
16+
* [Python 3.8 or later](https://www.python.org/)
1717
* Make sure you have the **Azure AI Developer** [RBAC role](../../../ai-studio/concepts/rbac-ai-studio.md) assigned at the appropriate level.
18+
* You may also require the **Cognitive Services OpenAI User** assigned to use the Azure AI Services resource.
1819
* Install [the Azure CLI and the machine learning extension](/azure/machine-learning/how-to-configure-cli). If you have the CLI already installed, make sure it's updated to the latest version.
1920

2021
[!INCLUDE [bicep-setup](bicep-setup.md)]
@@ -96,4 +97,4 @@ with AIProjectClient.from_connection_string(
9697

9798
messages = client.beta.threads.messages.list(thread_id=thread.id)
9899
print(f"Messages: {messages}")
99-
```
100+
```

articles/ai-services/agents/includes/quickstart-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.date: 11/13/2024
1313
## Prerequisites
1414

1515
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services).
16-
* [Python 3.13 or later](https://www.python.org/)
16+
* [Python 3.8 or later](https://www.python.org/)
1717
* Make sure you have the **Azure AI Developer** [RBAC role](../../../ai-studio/concepts/rbac-ai-studio.md) assigned at the appropriate level.
1818
* Install [the Azure CLI and the machine learning extension](/azure/machine-learning/how-to-configure-cli). If you have the CLI already installed, make sure it's updated to the latest version.
1919

@@ -137,4 +137,4 @@ with project_client:
137137
# Delete the agent once done
138138
project_client.agents.delete_agent(agent.id)
139139
print("Deleted agent")
140-
```
140+
```

0 commit comments

Comments
 (0)