question

CarlosLozano-6201 avatar image
0 Votes"
CarlosLozano-6201 asked CarlosLozano-6201 answered

Azure VM failed to install Azure VM Agent

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ManuPhilip avatar image
0 Votes"
ManuPhilip answered

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--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CarlosLozano-6201 avatar image
0 Votes"
CarlosLozano-6201 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.