Skip to content

Commit 7f5e3d2

Browse files
committed
writing and cli
1 parent 55e201f commit 7f5e3d2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ Use the tabs below to select the method you plan to use to create a project:
5151
created_project = ml_client.workspaces.begin_create(workspace=my_hub).result()
5252
```
5353

54+
# [Azure CLI](#tab/azurecli)
55+
56+
```azurecli
57+
az ml workspace create --kind project --hub-id {my_hub_ARM_ID} --resource-group {my_resource_group} --name {my_project_name}
58+
```
59+
5460
---
5561

5662
## Project settings
@@ -77,6 +83,15 @@ To manage or use the new project, include it in the `MLClient`:
7783
ml_client = MLClient(workspace_name=my_project_name, resource_group_name=my_resource_group, subscription_id=my_subscription_id,credential=DefaultAzureCredential())
7884
```
7985

86+
# [Azure CLI](#tab/azurecli)
87+
88+
To view settings for the project, use the `az ml workspace show` command. For example:
89+
90+
```azurecli
91+
az ml workspace show --name {my_project_name} --resource-group {my_resource_group}
92+
```
93+
94+
8095
---
8196

8297
## Next steps

articles/ai-studio/how-to/develop/create-hub-project-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ created_hub = ml_client.workspaces.begin_create(my_hub).result()
6464
# [Azure CLI](#tab/azurecli)
6565

6666
```azurecli
67-
az ml workspace --kind hub --resource-group {my_resource_group} --name {my_hub_name}
67+
az ml workspace create --kind hub --resource-group {my_resource_group} --name {my_hub_name}
6868
```
6969

7070
---
@@ -96,7 +96,7 @@ ml_client.connections.create_or_update(my_connection)
9696
# [Azure CLI](#tab/azurecli)
9797

9898
```azurecli
99-
az ml connection create --file {connection.yml} --resource-group {MY_RESOURCE_GROUP} --workspace-name {MY_PROJECT_NAME}
99+
az ml connection create --file {connection.yml} --resource-group {my_resource_group} --workspace-name {my_hub_name}
100100
```
101101

102102
You can use either an API key or credential-less YAML configuration file:

0 commit comments

Comments
 (0)