Skip to content

Commit 3e1010c

Browse files
committed
Indentation
1 parent 45ccc8a commit 3e1010c

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

articles/ai-studio/how-to/create-hub-terraform.md

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.custom: devx-track-terraform
1313
content_well_notification:
1414
- AI-contribution
1515
ai-usage: ai-assisted
16-
customer intent: As a Terraform user, I want to see how to create an Azure AI hub and its associated resources.
16+
#customer intent: As a Terraform user, I want to see how to create an Azure AI hub and its associated resources.
1717
---
1818

1919
# Use Terraform to create an Azure AI Studio hub
@@ -47,16 +47,20 @@ In this article, you use Terraform to create an Azure AI hub, an AI project, and
4747
1. Create a directory in which to test and run the sample Terraform code and make it the current directory.
4848

4949
1. Create a file named `providers.tf` and insert the following code.
50-
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/providers.tf":::
50+
51+
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/providers.tf":::
5152

5253
1. Create a file named `main.tf` and insert the following code.
53-
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/main.tf":::
54+
55+
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/main.tf":::
5456

5557
1. Create a file named `variables.tf` and insert the following code.
56-
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/variables.tf":::
58+
59+
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/variables.tf":::
5760

5861
1. Create a file named `outputs.tf` and insert the following code.
59-
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/outputs.tf":::
62+
63+
:::code language="Terraform" source="~/terraform_samples/quickstart/101-ai-studio/outputs.tf":::
6064

6165
## Initialize Terraform
6266

@@ -72,13 +76,49 @@ In this article, you use Terraform to create an Azure AI hub, an AI project, and
7276

7377
## Verify the results
7478

75-
Run [`az ml workspace show`](/cli/azure/ml/workspace#az_ml_workspace_show) to view the Azure AI hub.
79+
### [Azure CLI](#tab/azure-cli)
80+
81+
1. Get the Azure resource group name.
82+
83+
```console
84+
resource_group_name=$(terraform output -raw resource_group_name)
85+
```
86+
87+
1. Get the workspace name.
88+
89+
```console
90+
workspace_name=$(terraform output -raw workspace_name)
91+
```
92+
93+
1. Run [az ml workspace show](/cli/azure/ml/workspace#az-ml-workspace-show) to display information about the new workspace.
7694

77-
```azurecli
78-
az ml workspace show --name <workspace_name> --resource-group <resource_group_name>
79-
```
95+
```azurecli
96+
az ml workspace show --resource-group $resource_group_name \
97+
--name $workspace_name
98+
```
8099

81-
Replace `<workspace_name>` and `<resource_group_name>` with your Azure AI hub name and resource group name, respectively.
100+
### [Azure PowerShell](#tab/azure-powershell)
101+
102+
1. Get the Azure resource group name.
103+
104+
```console
105+
$resource_group_name=$(terraform output -raw resource_group_name)
106+
```
107+
108+
1. Get the workspace name.
109+
110+
```console
111+
$workspace_name=$(terraform output -raw workspace_name)
112+
```
113+
114+
1. Run [Get-AzMLWorkspace](/powershell/module/az.machinelearningservices/get-azmlworkspace) to display information about the new workspace.
115+
116+
```azurepowershell
117+
Get-AzMLWorkspace -ResourceGroupName $resource_group_name `
118+
-Name $workspace_name
119+
```
120+
121+
---
82122

83123
## Clean up resources
84124

0 commit comments

Comments
 (0)