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-studio/how-to/create-projects.md
+70-2Lines changed: 70 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Create an Azure AI Studio project in Azure AI Studio
3
3
titleSuffix: Azure AI Studio
4
-
description: This article describes how to create an Azure AI Studio project.
4
+
description: This article describes how to create an Azure AI Studio project from an Azure AI Studio hub that was previously created.
5
5
manager: scottpolly
6
6
ms.service: azure-ai-studio
7
7
ms.custom:
@@ -12,20 +12,69 @@ ms.date: 5/21/2024
12
12
ms.reviewer: deeikele
13
13
ms.author: sgilley
14
14
author: sdgilley
15
+
# customer intent: As a developer, I want to create an Azure AI Studio project so I can work with generative AI.
15
16
---
16
17
17
18
# Create a project in Azure AI Studio
18
19
19
-
This article describes how to create a project in Azure AI Studio. A project is used to organize your work and save state while building customized AI apps.
20
+
This article describes how to create an Azure AI Studio project. A project is used to organize your work and save state while building customized AI apps.
20
21
21
22
Projects are hosted by an Azure AI Studio hub that provides enterprise-grade security and a collaborative environment. For more information about the projects and resources model, see [Azure AI Studio hubs](../concepts/ai-resources.md).
22
23
23
24
## Create a project
24
25
26
+
Use the following tabs to select the method you plan to use to create a project:
27
+
28
+
# [Azure AI Studio](#tab/ai-studio)
29
+
25
30
[!INCLUDE [Create Azure AI Studio project](../includes/create-projects.md)]
8. Use the following code to create a project from a hub you or your administrator created previously. Replace example string values with your own values:
1. If you don't have the Azure CLI and machine learning extension installed, follow the steps in the [Install and set up the machine learning extension](/azure/machine-learning/how-to-configure-cli) article.
57
+
58
+
1. To authenticate to your Azure subscription from the Azure CLI, use the following command:
59
+
60
+
```azurecli
61
+
az login
62
+
```
63
+
64
+
For more information on authenticating, see [Authentication methods](/cli/azure/authenticate-azure-cli).
65
+
66
+
1. Once the extension is installed and authenticated to your Azure subscription, use the following command to create a new Azure AI project from an existing Azure AI hub:
67
+
68
+
```azurecli
69
+
az ml workspace create --kind project --hub-id {my_hub_ARM_ID} --resource-group {my_resource_group} --name {my_project_name}
70
+
```
71
+
72
+
---
73
+
27
74
## Project settings
28
75
76
+
# [Azure AI Studio](#tab/ai-studio)
77
+
29
78
On the project **Settings** page you can find information about the project, such as the project name, description, and the hub that hosts the project. You can also find the project ID, which is used to identify the project via SDKorAPI.
30
79
31
80
:::image type="content" source="../media/how-to/projects/project-settings.png" alt-text="Screenshot of an AI Studio project settings page." lightbox ="../media/how-to/projects/project-settings.png":::
@@ -38,6 +87,25 @@ On the project **Settings** page you can find information about the project, suc
38
87
39
88
Select **Manage in the Azure portal** to navigate to the project resources in the Azure portal.
40
89
90
+
# [Python SDK](#tab/python)
91
+
92
+
To manage or use the new project, include it in the `MLClient`:
In this article, you learn how to create the following AI Studio resources using the Azure Machine Learning SDK:
20
+
In this article, you learn how to create the following AI Studio resources using the Azure Machine Learning SDK and Azure CLI (with machine learning extension):
21
21
- An Azure AI Studio hub
22
22
- An Azure AI Services connection
23
-
- An Azure AI Studio project
24
23
25
24
## Prerequisites
26
25
27
26
- An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure AI Studio](https://azure.microsoft.com/free/) today.
28
27
29
28
## Set up your environment
30
29
30
+
Use the following tabs to select whether you're using the Python SDK or Azure CLI:
1. If you don't have the Azure CLI and machine learning extension installed, follow the steps in the [Install and set up the machine learning extension](/azure/machine-learning/how-to-configure-cli) article.
39
+
40
+
1. To authenticate to your Azure subscription from the Azure CLI, use the following command:
41
+
42
+
```azurecli
43
+
az login
44
+
```
45
+
46
+
For more information on authenticating, see [Authentication methods](/cli/azure/authenticate-azure-cli).
47
+
48
+
---
49
+
33
50
## Create the AI Studio hub and AI Services connection
34
51
35
-
Use the following code to create a new hub and AI Services connection. Replace example string values with your own values:
52
+
Use the following examples to create a new hub. Replace example string values with your own values:
53
+
54
+
# [Python SDK](#tab/python)
36
55
37
56
```Python
38
57
from azure.ai.ml.entities import Hub
39
-
from azure.ai.ml.entities import AzureAIServicesConnection
Use the following code to create a project from the hub you created previously. Replace example string values with your own values:
69
-
70
-
```Python
71
-
from azure.ai.ml.entities import Project
106
+
```azurecli
107
+
az ml connection create --file {connection.yml} --resource-group {my_resource_group} --workspace-name {my_hub_name}
108
+
```
72
109
73
-
my_project_name ="myexampleproject"
74
-
my_location ="East US"
75
-
my_display_name ="My Example Project"
110
+
You can use either an API key or credential-less YAML configuration file. For more information on the YAML configuration file, see the [AI Services connection YAML schema](/azure/machine-learning/reference-yaml-connection-ai-services):
0 commit comments