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
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/create-projects.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ zone_pivot_groups: project-type
21
21
22
22
# Create a project for Azure AI Foundry
23
23
24
-
This article describes how to create an [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs) project. Projects let you organize your work for exploring new ideas and as you prototype on a particular use case.
24
+
This article describes how to create a project in [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs). Projects let you organize your work for exploring new ideas and as you prototype on a particular use case.
25
25
26
26
Azure AI Foundry supports two types of projects: a **[!INCLUDE [fdp](../includes/fdp-project-name.md)]** and a **[!INCLUDE [hub](../includes/hub-project-name.md)]**. For more information about the differences between these two project types, see [Types of projects](../what-is-azure-ai-foundry.md#project-types).
Copy file name to clipboardExpand all lines: articles/ai-foundry/includes/create-project-fdp.md
+36-26Lines changed: 36 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,15 @@ ms.custom:
20
20
21
21
* This project type gives you the best support for:
22
22
23
-
* Agents
24
-
* AI Model Inference including Azure OpenAI
25
-
* AI Foundry API that works with agents and across models
23
+
* Agents
24
+
* AI Foundry API to work with agents and across models
25
+
* Models sold directly by Azure - Azure OpenAI, DeepSeek, xAI, etc.
26
+
* Partner & Community Models sold through Marketplace - Stability, Bria, Cohere, etc.
26
27
* Project files (directly upload files and start experimenting)
27
28
* Evaluations
28
29
* Fine-tuning
29
30
* Playgrounds
30
31
31
-
* You can also [Use a Bicep file](../how-to/create-azure-ai-project-template.md) to create a [!INCLUDE [fdp-project-name](fdp-project-name.md)].
32
-
33
32
34
33
## Prerequisites
35
34
@@ -38,7 +37,7 @@ Use the following tabs to select the method you plan to use to create a [!INCLUD
38
37
# [Azure AI Foundry portal](#tab/ai-foundry)
39
38
40
39
- An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/).
41
-
- You must be **Owner** of the subscription to receive the appropriate access control needed to usethe project.
40
+
- You must be **Owner** of the subscription to have appropriate access control necessary to create the Azure AI Foundry resource that is the parent of the project. If you don't have this access, have your administrator [create an AI Foundry resource](../../ai-services/multi-service-resource.md) for you to use. Then skip to [Create multiple projects on the same resource](#create-multiple) to create your project.
42
41
43
42
44
43
# [Python SDK](#tab/python)
@@ -47,6 +46,26 @@ Use the following tabs to select the method you plan to use to create a [!INCLUD
47
46
- You must be **Owner** of the subscription to receive the appropriate access control needed to use the project.
48
47
-[Set up your development environment](../how-to/develop/install-cli-sdk.md?tabs=python)
49
48
- Authenticate with `az login` or `az login --use-device-code` in your environment before running code.
49
+
- Complete these steps to start your Python script:
50
+
1. Install packages: `pip install azure-identity azure-mgmt-cognitiveservices`. If in a notebook cell, use `%pip install azure-identity azure-mgmt-cognitiveservices`.
51
+
1. Use `pip show azure-mgmt-cognitiveservices` to verify your version is 13.7 or greater.
52
+
1. Start your script with the following code to create the `client` connection and variables used throughout this article. This example creates the project in West US:
53
+
54
+
```python
55
+
from azure.identity import DefaultAzureCredential
56
+
from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient
57
+
58
+
sub_id ='your-sub'
59
+
rgp ='your-resource-group'
60
+
resource_name ='your-resource'
61
+
project_name ='your-project'
62
+
location ='westus'
63
+
64
+
client = CognitiveServicesManagementClient(
65
+
credential=DefaultAzureCredential(),
66
+
subscription_id=sub_id,
67
+
api_version="2025-04-01-preview"
68
+
)
50
69
51
70
52
71
# [Azure CLI](#tab/azurecli)
@@ -61,6 +80,13 @@ Use the following tabs to select the method you plan to use to create a [!INCLUD
61
80
62
81
# [Azure AI Foundry portal](#tab/ai-foundry)
63
82
83
+
These steps provide a way to create a new Azure resource with basic, defaulted, settings.
84
+
85
+
> [!TIP]
86
+
> If your organization requires customized Azure configurations like alternative names, security controls or cost tags, use one of these methods instead to comply with your organization's Azure Policy compliance:
87
+
>* [Create your first AI Foundry resource](../../ai-services/multi-service-resource.md)
88
+
>* [Create an Azure AI Foundry resource using a Bicep file](../how-to/create-resource-template.md)
89
+
64
90
To create a [!INCLUDE [fdp-project-name](fdp-project-name.md)] in [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs), follow these steps:
65
91
66
92
1. Sign in to [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs).
@@ -91,27 +117,11 @@ To customize the settings for your project, follow these steps:
91
117
92
118
To create a [!INCLUDE [fdp](../includes/fdp-project-name.md)]:
93
119
94
-
1. Install packages: `pip install azure-identity azure-mgmt-cognitiveservices`. If in a notebook cell, use `%pip install azure-identity azure-mgmt-cognitiveservices`.
95
-
1. Use `pip show azure-mgmt-cognitiveservices` to verify your version is 13.7 or greater.
96
-
1. Use the following code to create a [!INCLUDE [fdp-project-name](../includes/fdp-project-name.md)]. This example creates the project in West US:
120
+
121
+
1. Add this code to create a [!INCLUDE [fdp-project-name](../includes/fdp-project-name.md)], using the variables and`client` connection from the [Prerequisites](#prerequisites).
97
122
98
123
```python
99
-
from azure.identity import DefaultAzureCredential
100
-
from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient
101
-
import os
102
-
import json
103
-
104
-
sub_id ='your-sub'
105
-
rgp ='your-resource-group'
106
-
resource_name ='your-resource'
107
-
project_name ='your-project'
108
-
location ='westus'
109
-
110
-
client = CognitiveServicesManagementClient(
111
-
credential=DefaultAzureCredential(),
112
-
subscription_id=sub_id,
113
-
api_version="2025-04-01-preview"
114
-
)
124
+
115
125
# Create resource
116
126
resource= client.accounts.begin_create(
117
127
resource_group_name=rgp,
@@ -177,7 +187,7 @@ CLI commands not currently available for creating a [!INCLUDE [fdp-project-name]
177
187
178
188
---
179
189
180
-
## Create multiple projects on the same resource
190
+
## <a name="create-multiple"></a> Create multiple projects on the same resource
0 commit comments