Skip to content

Commit 9c2f744

Browse files
committed
Modify verify section
1 parent a31afb5 commit 9c2f744

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

articles/devtest-labs/quickstarts/create-lab-windows-vm-terraform.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,25 @@ In this article, you learn how to:
7171

7272
## Verify the results
7373

74-
Use [terraform state show](https://developer.hashicorp.com/terraform/cli/commands/state/show) to display the current state of the specified resource.
74+
#### [Azure CLI](#tab/azure-cli)
7575

76-
```console
77-
terraform state show azurerm_dev_test_windows_virtual_machine.vm
78-
```
76+
1. Get the Azure resource name in which the lab was created.
77+
78+
```azurecli
79+
echo "$(terraform output resource_group_name)"
80+
```
81+
82+
1. Get the lab name.
83+
84+
```azurecli
85+
echo "$(terraform output lab_name)"
86+
```
87+
88+
1. Run [az lab vm list](https://learn.microsoft.com/en-us/cli/azure/lab/vm?view=azure-cli-latest#az-lab-vm-list) to list the virtual machines for the lab you created in this article.
89+
90+
```azurecli
91+
az lab vm list --resource-group <resource_group_name> --lab-name <lab_name>
92+
```
7993
8094
## Clean up resources
8195

0 commit comments

Comments
 (0)