Skip to content

Commit 0609089

Browse files
Merge pull request #7350 from sdgilley/sdg-uuf
combine include and add more info in intro
2 parents 6da7063 + e0f3183 commit 0609089

File tree

3 files changed

+189
-201
lines changed

3 files changed

+189
-201
lines changed

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

Lines changed: 187 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,192 @@ ai-usage: ai-assisted
2020

2121
# Create a project for Azure AI Foundry (Foundry projects)
2222

23-
This article describes how to create a project in [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs). Projects let you organize your work, such as agents, evaluations, and files, as you build stateful apps and explore new ideas.
23+
This article describes how to create a Foundry project in [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs). Projects let you organize your work, such as agents, evaluations, and files, as you build stateful apps and explore new ideas.
2424

25-
[!INCLUDE [create-project-fdp](../includes/create-project-fdp.md)]
25+
* [!INCLUDE [fdp-description](../includes/fdp-description.md)]
26+
27+
* This project type gives you access to the latest generative AI features in AI Foundry, including:
28+
29+
* Agents
30+
* Foundry SDK and API to build agents and switch easily between models
31+
* Models sold directly by Azure - Azure OpenAI, Mistral, xAI, DeepSeek, etc.
32+
* Partner & Community Models sold through Marketplace - Stability, Bria, Cohere, etc.
33+
* Content understanding
34+
* Evaluations
35+
* Fine-tuning
36+
* OpenAI SDK and API incl. Batch and Stored Completions
37+
* AI Services
38+
39+
* Do you need access to Open Source models, or PromptFlow? [Create a hub project type](../how-to/hub-create-projects.md) instead.
40+
41+
* See [Types of projects](../what-is-azure-ai-foundry.md#project-types) for more information on the different project types.
42+
43+
## Prerequisites
44+
45+
Use the following tabs to select the method you plan to use to create a [!INCLUDE [fdp](../includes/fdp-project-name.md)]:
46+
47+
# [Azure AI Foundry portal](#tab/ai-foundry)
48+
49+
- [!INCLUDE [azure-subscription](../includes/azure-subscription.md)]
50+
- 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.
51+
52+
53+
# [Python SDK](#tab/python)
54+
55+
- [!INCLUDE [azure-subscription](../includes/azure-subscription.md)]
56+
- You must be **Owner** of the subscription to receive the appropriate access control needed to use the project.
57+
- [Set up your development environment](develop/install-cli-sdk.md?tabs=python)
58+
- Authenticate with `az login` or `az login --use-device-code` in your environment before running code.
59+
- Complete these steps to start your Python script:
60+
1. Install packages: `pip install azure-identity azure-mgmt-cognitiveservices~=13.7.0b1
61+
`. If in a notebook cell, use `%pip install` instead
62+
`.
63+
1. Use `pip show azure-mgmt-cognitiveservices` to verify your version is 13.7 or greater.
64+
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 East US:
65+
66+
:::code language="python" source="~/foundry-samples-main/samples/microsoft/python/mslearn-resources/quickstart/create_project.py" id="create_client":::
67+
68+
1. (Optional) If you have multiple accounts, add the tenant ID of the Microsoft Entra ID you wish to use into the `DefaultAzureCredential`. Find your tenant ID from the [Azure portal](https://portal.azure.com) under **Microsoft Entra ID, External Identities**.
69+
70+
```python
71+
DefaultAzureCredential(interactive_browser_tenant_id="<TENANT_ID>")
72+
```
73+
74+
1. (Optional) If you're working on in the [Azure Government - US](/azure/azure-government/documentation-government-welcome) or [Azure operated by 21Vianet](https://azure.microsoft.com/global-infrastructure/services/?regions=china-east-2%2cchina-non-regional&products=all) regions, specify the region into which you want to authenticate. You can specify the region with `DefaultAzureCredential`. The following example authenticates to the Azure Government - US region:
75+
76+
```python
77+
from azure.identity import AzureAuthorityHosts
78+
DefaultAzureCredential(authority=AzureAuthorityHosts.AZURE_GOVERNMENT)
79+
```
80+
81+
82+
83+
# [Azure CLI](#tab/azurecli)
84+
85+
- [!INCLUDE [azure-subscription](../includes/azure-subscription.md)]
86+
- You must be **Owner** of the subscription to receive the appropriate access control needed to use the project.
87+
- [Azure CLI](/cli/azure/install-azure-cli)
88+
89+
---
90+
91+
## Create a Foundry project
92+
93+
# [Azure AI Foundry portal](#tab/ai-foundry)
94+
95+
These steps provide a way to create a new Azure resource with basic, defaulted, settings.
96+
97+
> [!TIP]
98+
> 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:
99+
> * [Create your first AI Foundry resource](../../ai-services/multi-service-resource.md)
100+
> * [Create an Azure AI Foundry resource using a Bicep file](./create-resource-template.md)
101+
102+
To create a Foundry project in [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs), follow these steps:
103+
104+
1. Sign in to [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs).
105+
106+
1. [!INCLUDE [create-project-access](../includes/create-project-access.md)]
107+
108+
1. Select **Azure AI Foundry resource**, then select **Next**.
109+
1. Provide a name for your project and select **Create**. Or see next section for advanced options.
110+
111+
### Advanced options
112+
113+
A Foundry project is created on an `AI Foundry` resource. This resource is created for you automatically when you create the project.
114+
115+
To customize the settings for your project, follow these steps:
116+
117+
1. In the **Create a project** form, select **Advanced options**.
118+
119+
1. Select an existing **Resource group** you want to use, or leave the default to create a new resource group.
120+
121+
> [!TIP]
122+
> Especially for getting started we recommend you create a new resource group for your project. The resource group allows you to easily manage the project and all of its resources together.
123+
124+
1. Select a **Location** or use the default. The location is the region where the hub is hosted. Azure AI services availability differs per region. For example, certain models might not be available in certain regions.
125+
126+
1. Select **Create**. You see progress of resource creation and the project is created when the process is complete.
127+
128+
# [Python SDK](#tab/python)
129+
130+
To create a Foundry project:
131+
132+
133+
1. Add this code to create a Foundry project, using the variables and `client` connection from the [Prerequisites](#prerequisites).
134+
135+
:::code language="python" source="~/foundry-samples-main/samples/microsoft/python/mslearn-resources/quickstart/create_project.py" id="create_resource_project":::
136+
137+
138+
# [Azure CLI](#tab/azurecli)
139+
140+
<!-- To create a [!INCLUDE [fdp](../includes/fdp-project-name.md)]:
141+
142+
1. Authenticate to your Azure subscription from the Azure CLI with the following command:
143+
144+
```azurecli
145+
az login
146+
```
147+
148+
For more information on authenticating, see [Authentication methods](/cli/azure/authenticate-azure-cli).
149+
150+
1. Create a resource group, for example in East US:
151+
152+
```azurecli
153+
az group create --name {my_resource_group} --location eastus
154+
```
155+
156+
1. Now use the following commands to create a new [!INCLUDE [fdp](../includes/fdp-project-name.md)]:
157+
158+
[!INCLUDE [cli-create-project](cli-create-project.md)]
159+
-->
160+
161+
CLI commands not currently available for creating a Foundry project.
162+
163+
---
164+
165+
## <a name="create-multiple"></a> Create multiple projects on the same resource
166+
167+
[!INCLUDE [create-second-fdp-project](../includes/create-second-fdp-project.md)]
168+
169+
## View project settings
170+
171+
# [Azure AI Foundry portal](#tab/ai-foundry)
172+
173+
On the project **Home** page, you can find information about the project.
174+
175+
- Name: The name of the project appears in the top left corner.
176+
- Subscription: The subscription that hosts the hub that hosts the project.
177+
- Resource group: The resource group that hosts the hub that hosts the project.
178+
179+
180+
# [Python SDK](#tab/python)
181+
182+
:::code language="python" source="~/foundry-samples-main/samples/microsoft/python/mslearn-resources/quickstart/create_project.py" id="show_project":::
183+
184+
# [Azure CLI](#tab/azurecli)
185+
186+
To view settings for the project, use the `az cognitiveservices account connection show` command. For example:
187+
188+
```azurecli
189+
az cognitiveservices account connection show --name {my_project_name} --resource-group {my_resource_group}
190+
```
191+
192+
---
193+
194+
## Delete projects
195+
196+
1. In [Azure AI Foundry portal](https://ai.azure.com/?cid=learnDocs), open your project.
197+
1. Select **Management center**.
198+
1. Select **Overview** under the **Resource** section.
199+
1. Select any projects you no longer want to keep.
200+
1. Select **Delete project**.
201+
202+
To delete the AI Foundry resource along with all its projects:
203+
204+
1. From the Management center, select the resource name from the Overview section to go to Azure portal.
205+
1. From Azure portal, select **Delete** to delete the resource and all its associated projects.
206+
207+
## Related content
208+
209+
- [Quickstart: Get started with Azure AI Foundry](../quickstarts/get-started-code.md)
210+
- [Learn more about Azure AI Foundry](../what-is-azure-ai-foundry.md)
26211

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ ai-usage: ai-assisted
2121
2222
This article describes how to create a hub-based project in Azure AI Foundry. Use a hub project when you need prompt flow, managed compute, Azure Machine Learning compatibility, or advanced development features.
2323

24+
See [Types of projects](../what-is-azure-ai-foundry.md#project-types) for more information on the different project types.
25+
2426
## Prerequisites
2527

2628
Choose a method:

0 commit comments

Comments
 (0)