Skip to content

Commit c0a9cb3

Browse files
authored
Merge pull request #106802 from cynthn/49694
Password - public pull request 49694
2 parents 691253c + 2106a57 commit c0a9cb3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,15 @@ az group create --name myResourceGroup --location eastus
4343

4444
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.
4545

46-
You must change the value for `--admin-password` or it will fail. Change it to a password that meets the [password requirements for Azure VMs](/azure/virtual-machines/windows/faq#what-are-the-password-requirements-when-creating-a-vm
47-
). The user name and password will be used later, when you connect to the VM.
46+
You will need to supply a password that meets the [password requirements for Azure VMs](/azure/virtual-machines/windows/faq#what-are-the-password-requirements-when-creating-a-vm
47+
). 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.
4848

4949
```azurecli-interactive
5050
az vm create \
5151
--resource-group myResourceGroup \
5252
--name myVM \
5353
--image win2016datacenter \
54-
--admin-username azureuser \
55-
--admin-password myPassword
54+
--admin-username azureuser
5655
```
5756

5857
It takes a few minutes to create the VM and supporting resources. The following example output shows the VM create operation was successful.

0 commit comments

Comments
 (0)