Cannot connect to, restart, reapply, redeploy Azure VM

w Kon 11 Reputation points
2022-08-10T09:48:35.35+00:00

Hi,

I have an Azure VM (Linux, V1, agent version 2.7.3.0) running a Grafana Bitname Image.
The VM is running. I can access the Grafana page through its public IP address. Also, on the VM resource overview page it is showing 'running'.

However, I cannot connect to the VM. Not through Bastion, not through PuTTY and also not through the serial console.
I don't know whether I am using the right credentials, so I wanted to reset these through the 'Reset password' tab on the VM blade. However here it is giving the following notification:
"The virtual machine must be running before using VMAccess."
And I cannot reset anything.

Wanting to check if reapply/redeploy/restart would solve this issue. I get the following error:

restart:
Failed to restart the virtual machine 'vm-grafana-test'. Error: Cannot proceed with operation because resource rg-grafana-test/providers/Microsoft.Network/applicationGateways/ag-grafana-test/backendAddressPools/ag-grafana-test-pool'>ag-grafana-test/ag-grafana-test-pool used by resource /subscriptions/xxxxxxxxxxxxxxxxxxxx/resourceGroups/rg-grafana-test/providers/Microsoft.Network/networkInterfaces/vm-grafana-test24 is not in Succeeded state. Resource is in Failed state and the last operation that updated/is updating the resource is PutApplicationGatewayOperation.

Which means there is something wrong with the backend pool? But I have no clue how to fix this.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jackson Martins 10,621 Reputation points MVP Volunteer Moderator
    2022-08-10T12:30:42.867+00:00

    Hi @w Kon
    I faced a similar problem with NIC, but in your case need to PutApplicationGatewayOperation on manually
    To solve I used resource explorer.

    Go to https://resources.azure.com/

    Chante tab to read/write:
    229991-capture1.png

    On the left size, go to -> Subscription/ you subscription -> /resourceGroups/rg-grafana-test/providers/Microsoft.Network/networkInterfaces/vm-grafana-test24

    Click in edit button:
    229975-capture2.png

    So, click on the PUT button:

    229992-image.png

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.