You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,7 +24,7 @@ When you want to script or automate start or stop for lab VMs, use PowerShell or
24
24
## Prerequisites
25
25
26
26
- A [lab VM in DevTest Labs](devtest-lab-add-vm.md).
27
-
- For Azure PowerShell, the [Az module](/powershell/azure/new-azureps-module-az) installed on your workstation. Make sure you have the latest version. If necessary, run `Update-Module -Name Az` to update the module.
27
+
- For Azure PowerShell, the [Az PowerShell module](/powershell/azure/new-azureps-module-az) installed on your workstation. Make sure you have the latest version. If necessary, run `Update-Module -Name Az` to update the module.
28
28
- For Azure CLI, [Azure CLI ](/cli/azure/install-azure-cli) installed on your workstation.
29
29
30
30
## Azure PowerShell script
@@ -76,12 +76,12 @@ The following PowerShell script starts or stops a VM in a lab by using [Invoke-A
76
76
77
77
## Azure CLI script
78
78
79
-
The following script provides [Azure CLI](/cli/azure/get-started-with-azure-cli) commands for starting or stopping a lab VM. The variables in this script are for a Windows environment. Bash or other environments have slight variations.
79
+
The following script provides [Azure CLI](/cli/azure/get-started-with-azure-cli) commands for starting or stopping a lab VM. The variables in this script are for a Windows environment, like a command prompt. Bash or other environments have slight variations.
80
80
81
81
1. Provide appropriate values for *`<Subscription ID>`*, *`<lab name>`*, *`<VM name>`*, and the *`<Start or Stop>`* action to take.
82
82
83
83
```azurecli
84
-
set SUBSCIPTIONID=<Subscription ID>
84
+
set SUBSCRIPTIONID=<Subscription ID>
85
85
set DEVTESTLABNAME=<lab name>
86
86
set VMNAME=<VM name>
87
87
set ACTION=<Start or Stop>
@@ -92,7 +92,7 @@ The following script provides [Azure CLI](/cli/azure/get-started-with-azure-cli)
92
92
```azurecli
93
93
az login
94
94
95
-
REM az account set --subscription %SUBSCIPTIONID%
95
+
REM az account set --subscription %SUBSCRIPTIONID%
96
96
```
97
97
98
98
1. Get the name of the resource group that contains the lab.
0 commit comments