I logged into the azure account and generated the ssh key pair. still I am getting the error. Did I miss anything?
Hi @Rakhi
Did you create the Key-pair from the Azure portal (UI)?
Was the key-pair created in the correct region?
I tried many times and i am able to SSH to the VM. Have tried generating the ssh from the UI and also while creating the VM but still the error persists
SSH access to ‘datacenter-vm’ failed or VM is not in the ‘running’ state.
Is there a way i can skip this question.
This is a basic task for creating only SSH keys in the Azure web console, not for creating SSH keys on a VM.
This does not require you to ssh from the lab’s client terminal to the VM. For that, you would need to associate this key with a VM, and the key needs to be available on the lab client.
You can refer to this solution.