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
| Create an account and project | Azure AI Account Owner |
28
-
|**Standard Setup Only:** Assign RBAC for required resources (Cosmos DB, Search, Storage, etc.) | Role Based Access Control Administrator |
28
+
|[standard setup](#choose-your-setup) Only: Assign RBAC for required resources (Cosmos DB, Search, Storage, etc.) | Role Based Access Control Administrator |
29
29
| Create and edit agents | Azure AI User |
30
30
31
31
## Set up your agent environment
32
-
To get started, you need an account and a project.
33
-
Agents are scoped at the project level, which ensures data isolation—agents within the same project share access to the same resources.
32
+
To get started, you need an Azure AI Foundry resource and a Foundry project.
33
+
Agents are created within a specific project, and each project acts as an isolated workspace. This means:
34
+
* All agents in the same project share access to the same file storage, thread storage (conversation history), and search indexes.
35
+
* Data is isolated between projects. Agents in one project cannot access resources from another.
36
+
Projects are currently the unit of sharing and isolation in Foundry. See the [what is AI foundry](../../ai-foundry/what-is-azure-ai-foundry.md) article for more information on Foundry projects.
34
37
35
38
### Prerequisites
36
39
37
40
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services).
38
41
* Ensure that the individual creating the account and project has the **Azure AI Account Owner** role at the subscription scope
39
-
* If configuring **Standard Setup**, the same individual must also have permissions to assign roles to required resources (Cosmos DB, Search, Storage).
40
-
* The built-in role needed is **Role Based Access Control Administrator**.
42
+
* If configuring a [standard setup](#choose-your-setup), the same individual must also have permissions to assign roles to required resources (Cosmos DB, Azure AI Search, Azure Blob Storage). For more information on RBAC roles, specific to Azure AI Foundry Agent Service, see [Azure AI Foundry Agent Service RBAC roles](../concepts/rbac-azure-ai-foundry.md).
43
+
* The built-in role needed is **Role Based Access Administrator**.
41
44
* Alternatively, having the **Owner** role at the subscription level also satisfies this requirement.
42
45
* The key permission needed is: `Microsoft.Authorization/roleAssignments/write`
43
46
@@ -76,6 +79,12 @@ If you want support for Private Network Isolation see [network-secured setup](ho
76
79
| Deploy a standard agent setup that uses **Managed Identity** for authentication. <br>An account and project are created. <br> A GPT-4o model is deployed. <br> Azure resources for storing customer data - **Azure Storage**, **Azure Cosmos DB**, and **Azure AI Search** - are automatically created if existing resources are't provided. <br> These resources are connected to your project to store files, threads, and vector data. <br> A Microsoft-managed Key Vault is used by default.</li></ul> <br> [](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure-ai-foundry%2Ffoundry-samples%2Frefs%2Fheads%2Fmain%2Fsamples%2Fmicrosoft%2Finfrastructure-setup%2F41-standard-agent-setup%2Fazuredeploy.json)| :::image type="content" source="./media\quickstart\standard-agent-setup.png" alt-text="An architecture diagram for standard agent setup." lightbox="./media\quickstart\standard-agent-setup.png"::: |
77
80
78
81
### [Optional] Model selection in autodeploy template
82
+
83
+
> [!IMPORTANT]
84
+
> **Don't change the modelFormat parameter.**
85
+
>
86
+
> The templates only support deployment of Azure OpenAI models. See which Azure OpenAI models are supported in the [model support](./concepts/model-region-support.md) article.
87
+
79
88
You can customize the model used by your agent by editing the model parameters in the autodeploy template. To deploy a different model, you need to update at least the `modelName` and `modelVersion` parameters.
80
89
81
90
By default, the deployment template is configured with the following values:
@@ -88,12 +97,6 @@ By default, the deployment template is configured with the following values:
88
97
| modelSkuName | GlobalStandard |
89
98
| modelLocation | eastus |
90
99
91
-
> [!IMPORTANT]
92
-
> **Don't change the modelFormat parameter.**
93
-
>
94
-
> The templates only support deployment of Azure OpenAI models. See which Azure OpenAI models are supported in the [Azure AI Foundry Agent Service model support](concepts\model-region-support.md) documentation.
Copy file name to clipboardExpand all lines: articles/ai-foundry/agents/how-to/use-your-own-resources.md
+71-32Lines changed: 71 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,65 +6,104 @@ services: cognitive-services
6
6
manager: nitinme
7
7
ms.service: azure-ai-agent-service
8
8
ms.topic: how-to
9
-
ms.date: 01/15/2025
10
-
author: fosteramanda
11
-
ms.author: fosteramanda
9
+
ms.date: 06/18/2025
10
+
author: aahill
11
+
ms.author: aahi
12
+
ms.reviewer: fosteramanda
12
13
ms.custom: azure-ai-agents
13
14
---
14
15
15
16
# Use your own resources
16
17
17
-
Use this article if you want to use the Azure Agent Service with resources you already have.
18
+
Use this article if you want to set up your Foundry project with your own resources.
19
+
20
+
## Limitations
21
+
22
+
**Use Azure Cosmos DB for NoSQL to store threads**
23
+
- Your existing Azure Cosmos DB for NoSQL account used in a [standard setup](#choose-basic-or-standard-agent-setup) must have a total throughput limit of at least 3000 RU/s. Both provisioned throughput and serverless are supported.
24
+
- Three containers will be provisioned in your existing Cosmos DB account, each requiring 1000 RU/s
18
25
19
26
> [!NOTE]
20
-
> * If you use an existing AI Services / Azure OpenAI in Azure AI Foundry Models resource, no model will be deployed. You can deploy a model to the resource after the agent setup is complete.
21
-
> * Make sure your Azure OpenAI resource and Azure AI Foundry project are in the same region.
27
+
> * Make sure your Azure OpenAI resource and Azure AI Foundry account and project are in the same region.
28
+
29
+
## Prerequisites
30
+
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services).
31
+
* Ensure that the individual creating the account and project has the **Azure AI Account Owner** role at the subscription scope
32
+
* If configuring a [standard setup](#choose-basic-or-standard-agent-setup), the same individual must also have permissions to assign roles to required resources (Cosmos DB, Search, Storage). For more information about RBAC in Azure AI Foundry, see [RBAC in Azure AI Foundry](../../../ai-foundry/concepts/rbac-azure-ai-foundry.md).
33
+
* The built-in role needed is **Role Based Access Administrator**.
34
+
* Alternatively, having the **Owner** role at the subscription level also satisfies this requirement.
35
+
* The key permission needed is: `Microsoft.Authorization/roleAssignments/write`
36
+
37
+
* Register providers. The following providers must be registered:
38
+
*`Microsoft.KeyVault`
39
+
*`Microsoft.CognitiveServices`
40
+
*`Microsoft.Storage`
41
+
*`Microsoft.MachineLearningServices`
42
+
*`Microsoft.Search`
43
+
*`Microsoft.App`
44
+
*`Microsoft.ContainerService`
45
+
* To use the [Grounding with Bing Search tool](./tools/bing-grounding.md): `Microsoft.Bing`
46
+
47
+
```console
48
+
az provider register --namespace 'Microsoft.KeyVault'
49
+
az provider register --namespace 'Microsoft.CognitiveServices'
50
+
az provider register --namespace 'Microsoft.Storage'
51
+
az provider register --namespace 'Microsoft.MachineLearningServices'
52
+
az provider register --namespace 'Microsoft.Search'
53
+
az provider register --namespace 'Microsoft.App'
54
+
az provider register --namespace 'Microsoft.ContainerService'
55
+
# only to use Grounding with Bing Search tool
56
+
az provider register --namespace 'Microsoft.Bing'
57
+
```
22
58
23
59
## Choose basic or standard agent setup
24
60
25
-
To use your own resources, you can edit the parameters in the provided deployment templates. To start, determine if you want to edit the [basic agent setup template](https://github.com/Azure-Samples/azureai-samples/tree/main/scenarios/Agents/setup/basic-agent-identity), or the [standard agent setup template](https://github.com/Azure-Samples/azureai-samples/tree/main/scenarios/Agents/setup/standard-agent).
61
+
To use your own resources, you can edit the parameters in the provided deployment templates. To start, determine if you want to edit the [basic agent setup template](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/infrastructure-setup/42-basic-agent-setup-with-customization), or the [standard agent setup template](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/infrastructure-setup/43-standard-agent-setup-with-customization).
26
62
27
-
**Basic Setup**: Agents created in a basic project use multitenant search and storage resources fully managed by Microsoft. You don't have visibility or control over these underlying Azure resources. You can only use your own AI services account with this option.
63
+
**Basic Setup**
28
64
29
-
**Standard Setup**: Agents created in a standard project 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, Azure Storage account, Cosmos DB for NoSQL account and/or Azure AI Search resource with this option.
65
+
This setup is compatible with OpenAI Assistants and manages agent states using the platform's built-in storage. It includes the same tools and capabilities as the Assistants API, with added support for non-OpenAI models and tools such as Azure AI Search, and Bing.
30
66
31
-
## Basic agent setup: Use an existing AI Services/Azure OpenAI resource
67
+
**Standard Setup**
32
68
33
-
Replace the parameter value for `aiServiceAccountResourceId` with the full arm resource ID of the AI Services or Azure OpenAI resource you want to use.
69
+
Includes everything in the basic setup and fine-grained control over your data by allowing you to use your own Azure resources. All customer data—including files, threads, and vector stores are stored in your own Azure resources, giving you full ownership and control.
34
70
35
-
1. To get the AI Services account resource ID, sign in to the Azure CLI and select the subscription with your AI Services account:
36
-
37
-
```az login```
38
-
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:
1. To get the Azure OpenAI account resource ID, sign in to the Azure CLI and select the subscription with your AI Services account:
76
+
77
+
```console
78
+
az login
79
+
```
48
80
49
-
[Azure OpenAI Only] aiServiceKind: AzureOpenAI
81
+
2. Replace `<your-resource-group>` with the resource group containing your resource and `your-azure-openai-resource-name` with the name of your AI Service resource, and run:
82
+
83
+
```console
84
+
az cognitiveservices account show --resource-group <your-resource-group> --name <your-ai-service-resource-name> --query "id" --output tsv
50
85
```
51
86
52
-
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.
87
+
The value returned is the `existingAoaiResourceId` you need to use in the template.
53
88
89
+
3. In the [basic agent template file](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/infrastructure-setup/42-basic-agent-setup-with-customization/main.bicep), replace the following placeholder:
## Standard agent setup: Use an existing AI Services/Azure OpenAI, Azure Storage account, Azure Cosmos DB for NoSQL account, and/or Azure AI Search resource
95
+
## Standard agent setup: Use existing service resources and storage accounts
56
96
57
-
Use an existing AI Services / Azure OpenAI, Azure Storage account, Azure Cosmos DB for NoSQL account and/or Azure AI Search resource by providing the full ARM resource ID in the standard agent template file.
97
+
Use an existing Azure OpenAI, Azure Storage account, Azure Cosmos DB for NoSQL account and/or Azure AI Search resource by providing the full ARM resource ID in the [standard agent template file](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/infrastructure-setup/43-standard-agent-setup-with-customization/main.bicep).
58
98
59
-
### Use an existing AI Services or Azure OpenAI resource
99
+
### Use an existing Azure OpenAI resource
60
100
61
101
1. Follow the steps in basic agent setup to get the AI Services account resource ID.
62
102
2. In the standard agent template file, replace the following placeholders:
### Use an existing Azure Storage account for file storage
@@ -86,7 +125,7 @@ Use an existing AI Services / Azure OpenAI, Azure Storage account, Azure Cosmos
86
125
87
126
### Use an existing Azure Cosmos DB for NoSQL account for thread storage
88
127
**Azure Cosmos DB for NoSQL**
89
-
- Your existing Azure Cosmos DB for NoSQL Account used in standard setup must have at least a total throughput limit of at least 3000 RU/s. Both Provisioned Thoughtput and Serverless are supported.
128
+
- Your existing Azure Cosmos DB for NoSQL Account used in standard setup must have at least a total throughput limit of at least 3000 RU/s. Both Provisioned Throughput and Serverless are supported.
90
129
- 3 containers will be provisioned in your existing Cosmos DB account and each need 1000 RU/s
91
130
92
131
1. To get your Azure Cosmos DB account resource ID, sign in to the Azure CLI and select the subscription with your account:
0 commit comments