Day 21: Assigning Public IP to Virtual Machines

Hello,

Curious if anyone else encountered this issue.

I completed all the steps and I am SSH’d in the VM and I get the error
" ```
SSH access to ‘datacenter-vm’ failed or VM is not in the ‘running’ state."

I will retry again but not sure what to do differently and what am I missing?
Attaching picture for my lab

I tested selecting a different size and get this error

 VM 'nautilus-vm' does not have the correct size.

but policy doesn;t allow B1 to be selected!

To add to this frustration, this lab specifically asks us to deploy in EAST US (not sure why, just to learn about zones?) and upon deploying in Zone 2, and selecting B1s as instructed by the lab requirement, i get the following error:

" “message”: "Allocation failed. We do not have sufficient capacity for the requested VM size in this zone. Read more about improving likelihood of allocation success at

Try one of these alternative options to improve chance of allocation success:\n- Alternative VM sizes for the same region and zone:
Standard_DC2s_v2 or Standard_F1s."

Hello,

Curious if anyone else encountered this issue.

I completed all the steps and I am SSH’d in the VM and I get the error
" ```
SSH access to ‘datacenter-vm’ failed or VM is not in the ‘running’ state."

I will retry again but not sure what to do differently and what am I missing?
Attaching picture for my lab

1 Like

this instruction and the lab is not working correctly. I was able to login using azureuser without password but still it did not work.
Used WestUS
EastUS seems to be wrong

same here but issue is I am unable to proceed to the next lab due to dependency of this lab’s completion.

I guess I will explore other labs of azure in different learning path for now

everything is good but lab validation fails

1 Like

I was able to figure this out. In case anyone else runs into this, I had given a custom name to my ssh-keygen files and able to isolate the issue by doing ‘ssh -vvv user@ip’. It gave me the output that system is looking for “id_rsa” file names. I edited those file names and everything worked. Although good practice to enter public key in authorized_keys, I didn’t have to do it and now ‘ssh azureuser@ip’ worked, without providing privatekey, since system/ssh by default looked for it under ‘/home/root/.ssh/id_rsa’.

image

At the end, I was able to do “ssh azureuser@IP” and thats what system is auto checking for validation.

I did not have to do it in EAST US, system was not checking for it. I was able to do it in WEST US just fine, that detail is a noise and distracting.

solution was:
ssh-keygen -t rsa -C azureuser (type and username to be tied with that key)

were you able to complete the lab successfully ?

Yes, and I repeated this lab 2-3 times and worked everytime.
needed to move public/private keys to /home/root/.ssh/

I was able to log in using azureuser . Still it is giving me wrong. Can support/admin please check and respond ?

I can help you, you can also find me in discord for instant reply.

I would need to see/know:

  1. where did you place your private/public keys?
  2. are you able to “ssh azureuser@ipaddress” <— this is what lab is checking against btw.

I also emailed you.

Hi @ahmadzubair654 , Happy New Year. Can you please help me with this task. I am not able to select B1s size in east us and west us.

“message”: "Allocation failed. We do not have sufficient capacity for the requested VM size in this zone. Read more about improving likelihood of allocation success at

Try one of these alternative options to improve chance of allocation success:\n- Alternative VM sizes for the same region and zone:
Standard_DC2s_v2 or Standard_F1s.\n"

I was also getting the above error in either region, east / west. I think what i did was made sure, standard SSD and any available DC2 or F1 that let me finish the lab.

I don’t like the fact that many of the labs say “use East US region” but east won’t let you deploy the VM. West US works and then lab validation didn’t care or bother what type of vm as long as it got deployed and ssh worked

1 Like

thanks @ahmadzubair654, that worked