Creating a resource in Azure with the following command:
az vm create --name quickvm --resource-group RG1 --image Debian --admin-username student --admin-password Password456#@long
Fails with:
az vm create: error: the following arguments are required: –name/-n, –resource-group/-g
This isn’t the first time, the commands are definitely correct, so something funny is going on. Any ideas?
2
Answers
Sometimes the formatting of the hyphens is malformed. Type the hyphens in again or replace the big-endians:
Same happened to me during Azure Fundamentals course:
Switching from az interactive to bash helped.
Replacing dashes or spaces or copying-pasting into text editor didn’t help.