Azure VM failed to install Azure VM Agent

Carlos Lozano 21 Reputation points
2022-06-22T21:46:24.967+00:00

I just created an Azure VM from a specialized disk. The VM boots up and looks to run OK, but can't rdp. After researching looks to be related to the VM Agent.
executed Get-azVM on Azure PS and displayed the information at the bottom. Notice under VMAgent it shows: Code : ProvisioningState/Unavailable

So looks it failed to install the VM Agent when the VM was created. I guess because it is using an specialized disk. Found a post about fixing it offline. That will mean installing the agent on premises and uploading the disk again. Is there a way to explore the disk content and install ofline in Azure? Am trying to avoid uploading again.

Thanks,

Carlos

---- Get-azVM info --------

ResourceGroupName : XXXXXXX
Name : vm-xxxx-xxxx
HyperVGeneration : V2
BootDiagnostics :
Disks[0] :
Name : c_disk
Statuses[0] :
Code : ProvisioningState/succeeded
Level : Info
DisplayStatus : Provisioning succeeded
Time : 6/22/2022 9:03:53 PM
Disks[1] :
Name : d_disk
Statuses[0] :
Code : ProvisioningState/succeeded
Level : Info
DisplayStatus : Provisioning succeeded
Time : 6/22/2022 9:03:53 PM
Extensions[0] :
Name : Microsoft.Insights.VMDiagnosticsSettings
VMAgent :
VmAgentVersion : Unknown
Statuses[0] :
Code : ProvisioningState/Unavailable
Level : Warning
DisplayStatus : Not Ready
Message : VM status blob is found but not yet populated.
Time : 6/22/2022 9:33:25 PM
Statuses[0] :
Code : ProvisioningState/succeeded
Level : Info
DisplayStatus : Provisioning succeeded
Time : 6/22/2022 9:29:11 PM
Statuses[1] :
Code : PowerState/running
Level : Info
DisplayStatus : VM running

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,202 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 16,991 Reputation points MVP
    2022-06-23T15:26:00.88+00:00

    I think, you can try installing the vm agent in offline mode: For this, you have to create a different VM and attach the special disk as a secondary disk to the new VM. There is a troubleshooting step to be followed as explained in below documentation:

    install-vm-agent-offline

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Carlos Lozano 21 Reputation points
    2022-06-23T21:19:05.003+00:00

    Yes, did that. I didn't find an option to do with the VM in online mode. Will test later tonight.

    0 comments No comments