File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
articles/ai-studio/how-to Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,17 @@ Use the following tabs to select the method you plan to use to create a project:
37
37
38
38
``` Python
39
39
from azure.ai.ml.entities import Project
40
-
40
+
41
41
my_project_name = " myexampleproject"
42
- my_location = " East US"
43
42
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,
43
+ hub_name = " myhubname " # Azure resource manager ID of the hub
44
+ hub_id = f " /subscriptions/ { subscription_id } /resourceGroups/ { resource_group } /providers/Microsoft.MachineLearningServices/workspaces/ { hub_name } "
45
+
46
+ my_project = Project( name = my_project_name,
48
47
display_name = my_display_name,
49
- hub_id = created_hub.id )
50
-
51
- created_project = ml_client.workspaces.begin_create(workspace = my_hub ).result()
48
+ hub_id = hub_id )
49
+
50
+ created_project = ml_client.workspaces.begin_create(workspace = my_project ).result()
52
51
```
53
52
54
53
# [Azure CLI](#tab/azurecli)
You can’t perform that action at this time.
0 commit comments