Assigning Public IP to Virtual Machines - SSH access to 'nautilus-vm' failed or VM is not in the 'running' state:

Below mentioned is my task and i tried via console and azure client given task is completed and vm is running and access able via ssh but my task is failed(the key-gen is generated on azure client).

"The Nautilus DevOps Team has received a new request from the Development Team to set up a new Azure Virtual Machine (VM). This VM will be used to host a new application that requires a stable public IP address. To ensure that the VM has a consistent public IP, a Static Public IP address needs to be associated with it. The VM will be named devops-vm, and the Static Public IP will be named devops-pip. This setup will help the Development Team to have a reliable and consistent access point for their application.

Create an Azure VM named devops-vm using any available Ubuntu image, with the VM size Standard_B1s.
Generate an SSH public key on the azure-client host and associate it with the VM for SSH access.
Associate a Static Public IP address named devops-pip with this VM.
Ensure the VM is accessible via SSH using the generated public key.

Use below given Azure Credentials: (You can run the showcreds command on the azure-client host to retrieve these credentials)

Start Time Wed Sep 03 06:51:32 UTC 2025
End Time Wed Sep 03 07:51:32 UTC 2025

Notes:

Perform all operations in the East US region."

You might have hit the Check button too soon. You need to wait until the EC2 is in an available state and running.

I checked the SSH login using a private key, and only after establishing the remote connection did I submit the button.