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
# Quickstart: Set up your first AI Foundry resource
20
22
23
+
In this quickstart, you create an Azure AI Foundry resource and verify access.
24
+
21
25
Learn how to create and manage an Azure AI Foundry resource. It's the [primary Azure resource type](../ai-foundry/concepts/resource-types.md) for building, deploying, and managing generative AI models and applications including agents in Azure.
22
26
23
27
An Azure resource is required to use and manage services in Azure. It defines the scope for configuring access, security such as networking, billing, and monitoring.
24
28
25
29
Azure AI Foundry resource is the next version and renaming of former "Azure AI Services". It provides the application environment for hosting your agents, model deployments, evaluations, and more.
26
30
31
+
An Azure AI Foundry resource can organize the work for multiple use cases, and is [typically shared](../ai-foundry/concepts/planning.md) between a team of developers that work on use cases in a similar business or data domain. Projects act as folders to group related work.
32
+
33
+
:::image type="content" source="../ai-foundry/media/how-to/projects/projects-multi-setup.png" alt-text="Diagram showing Azure AI Foundry resource containing multiple projects, each with deployments and connections.":::
34
+
27
35
Looking to configure AI Foundry with advanced security settings? See [advanced AI Foundry creation options](../ai-foundry/how-to/create-resource-template.md)
28
36
29
37
Looking to use [Azure AI Search skills?](../search/tutorial-skillset.md) See [Use Azure AI Foundry with Azure AI Search skills](multi-services-resource-search-skills.md).
30
38
31
39
## Create your first resource
32
40
33
-
An Azure AI Foundry resource can organize the work for multiple use cases, and is [typically shared](../ai-foundry/concepts/planning.md) between a team of developers that work on use cases in a similar business or data domain. Projects acts as folders to group related work.
34
-
35
-
:::image type="content" source="../ai-foundry/media/how-to/projects/projects-multi-setup.png" alt-text="Diagram explaining concepts of an Azure AI Foundry setup.":::
36
-
37
41
To create your first resource, with basic Azure settings, follow the below steps using either Azure portal, Azure CLI, or PowerShell.
38
42
39
43
::: zone pivot="azportal"
@@ -58,6 +62,34 @@ To create your first resource, with basic Azure settings, follow the below steps
58
62
59
63
With your first resource created, you can access it via [Foundry Portal for UX prototyping](https://ai.azure.com/), [Foundry SDK for development](), or via [Azure portal for administrative management](https://portal.azure.com).
60
64
65
+
### Verify your setup
66
+
67
+
You can verify that your resource is set up correctly by using the Azure AI Projects SDK to connect and list projects. This minimal example confirms authentication and access.
68
+
69
+
```python
70
+
# Install the SDK: pip install azure-ai-projects azure-identity
71
+
from azure.ai.projects import AIProjectClient
72
+
from azure.identity import DefaultAzureCredential
73
+
74
+
# Replace with your actual values from Azure portal
75
+
client = AIProjectClient(
76
+
subscription_id="<your-subscription-id>",
77
+
resource_group_name="<your-resource-group>",
78
+
project_name="<your-project-name>",
79
+
credential=DefaultAzureCredential()
80
+
)
81
+
82
+
# List projects to verify connection
83
+
projects = client.projects.list()
84
+
print(f"Successfully connected. Found {len(list(projects))} projects.")
85
+
```
86
+
87
+
**Expected output**: `Successfully connected. Found X projects.` where X is the number of projects in your resource.
[Azure Role Based Access Control](/azure/role-based-access-control/resource-provider-operations) (RBAC) differentiates permissions between management and development actions. To build with Foundry, your user account must be assigned developer permissions ("data actions"). You can either use one of the built-in RBAC roles, or use a custom RBAC role.
@@ -76,7 +108,7 @@ Only authorized users, typically the Azure subscription or resource group owner,
76
108
77
109
## Start building in your first project
78
110
79
-
With permissions set up, you're now ready to start building Foundry. In [Azure AI Foundry Portal](https://ai.azure.com/) open or [create your first project](../ai-foundry/how-to/create-projects.md). Projects organize your agent and model customization work in Foundry, and you can create multiple under the same resource.
111
+
With permissions set up, you're now ready to start building Foundry. In [Azure AI Foundry Portal](https://ai.azure.com/) open or [create your first project](../ai-foundry/how-to/create-projects.md). Projects organize your agent and model customization work in Foundry, and you can [create multiple under the same resource](../ai-foundry/how-to/create-projects.md#create-multiple).
80
112
81
113
Explore some of the services that come bundled with your resource:
0 commit comments