Skip to content

Commit d00c1eb

Browse files
committed
fixing variables
1 parent 4da8de9 commit d00c1eb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

articles/virtual-machines/windows/quick-create-cli.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,22 @@ To open the Cloud Shell, just select **Try it** from the upper right corner of a
2727

2828
## Create a resource group
2929

30-
Create a resource group with the [az group create](/cli/azure/group) command. An Azure resource group is a logical container into which Azure resources are deployed and managed. The following example creates a resource group named *myResourceGroup* in the *eastus* location. Replace the value of the `resourcegroup` variable as needed.
30+
Create a resource group with the [az group create](/cli/azure/group) command. An Azure resource group is a logical container into which Azure resources are deployed and managed. The following example creates a resource group named *myResourceGroup* in the *West US 3* location. Replace the value of the variables as needed.
3131

3232
```azurecli-interactive
33-
resourcegroup="West US 3"
34-
az group create --name myResourceGroup --location $resourcegroup
33+
resourcegroup="myResourceGroupCLI"
34+
location="West US 3"
35+
az group create --name $resourcegroup --location $location
3536
```
3637

3738
## Create virtual machine
3839

3940
Create a VM with [az vm create](/cli/azure/vm). The following example creates a VM named *myVM*. This example uses *azureuser* for an administrative user name. Replace the values of the variables as needed.
4041

41-
You will be prompted to supply a password that meets the [password requirements for Azure VMs](./faq.yml#what-are-the-password-requirements-when-creating-a-vm-
42+
You'll be prompted to supply a password that meets the [password requirements for Azure VMs](./faq.yml#what-are-the-password-requirements-when-creating-a-vm-
4243
).
4344

44-
Using the example below, you will be prompted to enter a password at the command line. You could also add the the `--admin-password` parameter with a value for your password. The user name and password will be used later, when you connect to the VM.
45+
Using the example below, you'll be prompted to enter a password at the command line. You could also add the `--admin-password` parameter with a value for your password. The user name and password will be used when you connect to the VM.
4546

4647
```azurecli-interactive
4748
vmname="myVM"
@@ -61,12 +62,12 @@ It takes a few minutes to create the VM and supporting resources. The following
6162
{
6263
"fqdns": "",
6364
"id": "/subscriptions/<guid>/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM",
64-
"location": "eastus",
65+
"location": "westus3",
6566
"macAddress": "00-0D-3A-23-9A-49",
6667
"powerState": "VM running",
6768
"privateIpAddress": "10.0.0.4",
6869
"publicIpAddress": "52.174.34.95",
69-
"resourceGroup": "myResourceGroup"
70+
"resourceGroup": "myResourceGroupCLI"
7071
}
7172
```
7273

0 commit comments

Comments
 (0)