Skip to content

Commit 45b84b9

Browse files
Merge pull request #5545 from sdgilley/sdg-patches
Add links to articles/ai-foundry/how-to/create-projects.md
2 parents 204e108 + 61da8db commit 45b84b9

File tree

3 files changed

+47
-37
lines changed

3 files changed

+47
-37
lines changed

articles/ai-foundry/how-to/create-projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ zone_pivot_groups: project-type
2121

2222
# Create a project for Azure AI Foundry
2323

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.
2525

2626
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).
2727

articles/ai-foundry/includes/create-project-fdp.md

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ ms.custom:
2020

2121
* This project type gives you the best support for:
2222

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.
2627
* Project files (directly upload files and start experimenting)
2728
* Evaluations
2829
* Fine-tuning
2930
* Playgrounds
3031

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-
3332

3433
## Prerequisites
3534

@@ -38,7 +37,7 @@ Use the following tabs to select the method you plan to use to create a [!INCLUD
3837
# [Azure AI Foundry portal](#tab/ai-foundry)
3938

4039
- 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 use the 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.
4241

4342

4443
# [Python SDK](#tab/python)
@@ -47,6 +46,26 @@ Use the following tabs to select the method you plan to use to create a [!INCLUD
4746
- You must be **Owner** of the subscription to receive the appropriate access control needed to use the project.
4847
- [Set up your development environment](../how-to/develop/install-cli-sdk.md?tabs=python)
4948
- 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+
)
5069

5170

5271
# [Azure CLI](#tab/azurecli)
@@ -61,6 +80,13 @@ Use the following tabs to select the method you plan to use to create a [!INCLUD
6180

6281
# [Azure AI Foundry portal](#tab/ai-foundry)
6382

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+
6490
To create a [!INCLUDE [fdp-project-name](fdp-project-name.md)] in [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs), follow these steps:
6591

6692
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:
91117

92118
To create a [!INCLUDE [fdp](../includes/fdp-project-name.md)]:
93119

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).
97122

98123
```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+
115125
# Create resource
116126
resource = client.accounts.begin_create(
117127
resource_group_name=rgp,
@@ -177,7 +187,7 @@ CLI commands not currently available for creating a [!INCLUDE [fdp-project-name]
177187

178188
---
179189

180-
## Create multiple projects on the same resource
190+
## <a name="create-multiple"></a> Create multiple projects on the same resource
181191

182192
[!INCLUDE [create-second-fdp-project](create-second-fdp-project.md)]
183193

articles/ai-foundry/includes/create-second-fdp-project.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ Your first project (default project) plays a special role and has access to more
5151

5252
# [Python SDK](#tab/python)
5353

54+
Add this code to your script to create a new project on your existing
55+
5456
```python
5557
new_project_name = 'your-new-project-name'
5658

5759
project = client.projects.begin_create(
58-
resource_group_name=resource_group_name,
59-
account_name=foundry_resource_name,
60-
project_name=new_project_name,
61-
project={
62-
"location": location,
63-
"identity": {
64-
"type": "SystemAssigned"
65-
},
66-
"properties": {}
67-
}
60+
resource_group_name=rgp,
61+
account_name=resource_name,
62+
project_name=new_project_name,
63+
project={
64+
"location": location,
65+
"identity": {"type": "SystemAssigned"},
66+
"properties": {}
67+
}
6868
)
6969
```
7070

0 commit comments

Comments
 (0)