question

0113f57e-d518-403f-b385-cd049ca3fb7d avatar image
0 Votes"
0113f57e-d518-403f-b385-cd049ca3fb7d asked MiguelDiazHernandez-6531 commented

I am getting error while creating VM in Azure CLI using Katacoda

I am getting the below error while creating VM in AzureCLI using Katacoda

admin user name cannot contain upper case character A-Z, special characters \/"[]:|<>+=;,?*@#()!or start with $ or -

Kindly help me to resolve this

azure-virtual-machinesazure-automationazure-dns
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@0113f57e-d518-403f-b385-cd049ca3fb7d

Any update on the issue?

Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

0 Votes 0 ·
ManuPhilip avatar image
0 Votes"
ManuPhilip answered

Hi,
Please refer the username requirements as mentioned in the following Microsoft documentation and proceed to correct it in your script

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/faq#what-are-the-username-requirements-when-creating-a-vm

Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

Regards,

Manu

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RenevanRoon-4416 avatar image
0 Votes"
RenevanRoon-4416 answered MiguelDiazHernandez-6531 commented

Add the admin name in your command. example:

az vm create --admin-password P@ssw8rd27!!! --admin-username adminazure --image UbuntuLTS --name Pita5 --resource-group resourcegroup6

worked for me..

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Despues de 3 h intentandolo por todos los medios y consultando multiples fuentes, gracias

Eres un maquina.

0 Votes 0 ·