Skip to content

Commit c8d6a33

Browse files
Merge pull request #590 from sdgilley/sdg-uuf
create-project: fix variable names; add hub_id for full path to the hub
2 parents 5cfea4a + 8aaafaf commit c8d6a33

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

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

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.custom:
88
- ignite-2023
99
- build-2024
1010
ms.topic: how-to
11-
ms.date: 5/21/2024
11+
ms.date: 10/01/2024
1212
ms.reviewer: deeikele
1313
ms.author: sgilley
1414
author: sdgilley
@@ -21,6 +21,11 @@ This article describes how to create an Azure AI Studio project. A project is us
2121

2222
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).
2323

24+
## Prerequisites
25+
26+
- An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/).
27+
- An Azure AI Studio hub. If you don't have a hub, see [How to create and manage an Azure AI Studio hub](create-azure-ai-resource.md).
28+
2429
## Create a project
2530

2631
Use the following tabs to select the method you plan to use to create a project:
@@ -37,18 +42,17 @@ Use the following tabs to select the method you plan to use to create a project:
3742

3843
```Python
3944
from azure.ai.ml.entities import Project
40-
45+
4146
my_project_name = "myexampleproject"
42-
my_location = "East US"
4347
my_display_name = "My Example Project"
44-
hub_id = "" # Azure resource manager ID of the hub
45-
46-
my_project = Project(name=my_hub_name,
47-
location=my_location,
48+
hub_name = "myhubname" # Azure resource manager ID of the hub
49+
hub_id=f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.MachineLearningServices/workspaces/{hub_name}"
50+
51+
my_project = Project(name=my_project_name,
4852
display_name=my_display_name,
49-
hub_id=created_hub.id)
50-
51-
created_project = ml_client.workspaces.begin_create(workspace=my_hub).result()
53+
hub_id=hub_id)
54+
55+
created_project = ml_client.workspaces.begin_create(workspace=my_project).result()
5256
```
5357

5458
# [Azure CLI](#tab/azurecli)
@@ -71,7 +75,7 @@ Use the following tabs to select the method you plan to use to create a project:
7175

7276
---
7377

74-
## Project settings
78+
## View project settings
7579

7680
# [Azure AI Studio](#tab/ai-studio)
7781

@@ -92,7 +96,7 @@ Select **Manage in the Azure portal** to navigate to the project resources in th
9296
To manage or use the new project, include it in the `MLClient`:
9397

9498
```python
95-
ml_client = MLClient(workspace_name=my_project_name, resource_group_name=my_resource_group, subscription_id=my_subscription_id,credential=DefaultAzureCredential())
99+
ml_client = MLClient(workspace_name=my_project_name, resource_group_name=resource_group, subscription_id=subscription_id,credential=DefaultAzureCredential())
96100
```
97101

98102
# [Azure CLI](#tab/azurecli)
@@ -105,27 +109,26 @@ az ml workspace show --name {my_project_name} --resource-group {my_resource_grou
105109

106110
---
107111

108-
## Project resource access
112+
## Access project resources
109113

110114
Common configurations on the hub are shared with your project, including connections, compute instances, and network access, so you can start developing right away.
111115

112116
In addition, a number of resources are only accessible by users in your project workspace:
113117

114118
1. Components including datasets, flows, indexes, deployed model API endpoints (open and serverless).
115-
1. Connections created by you under 'project settings'.
119+
1. Connections created by you under 'project settings.'
116120
1. Azure Storage blob containers, and a fileshare for data upload within your project. Access storage using the following connections:
117121

118122
| Data connection | Storage location | Purpose |
119123
| --- | --- | --- |
120-
| workspaceblobstore | {project-GUID}-azureml-blobstore | Default container for data upload |
124+
| workspaceblobstore | {project-GUID}-azureml-blobstore | Default container for data uploads |
121125
| workspaceartifactstore | {project-GUID}-azureml | Stores components and metadata for your project such as model weights |
122126
| workspacefilestore | {project-GUID}-code | Hosts files created on your compute and using prompt flow |
123127

124128
> [!NOTE]
125129
> Storage connections are not created directly with the project when your storage account has public network access set to disabled. These are created instead when a first user accesses AI Studio over a private network connection. [Troubleshoot storage connections](troubleshoot-secure-connection-project.md#troubleshoot-missing-storage-connections)
126130
127-
128-
## Next steps
131+
## Related content
129132

130133
- [Deploy an enterprise chat web app](../tutorials/deploy-chat-web-app.md)
131134
- [Learn more about Azure AI Studio](../what-is-ai-studio.md)

0 commit comments

Comments
 (0)