Installing the VM Agent

Download the VM Agent from Microsoft.

Open an elevated cmd and go to the folder where you saved the file.

Start the installtion of the VM Agent with the following command:


Install the VM Agent.

Let Azure know the VM Agent is installed

Start Windows Azure Powershell.

Login to your Azure account


Select the Azure Subscription where the VM resides

Select-AzureSubscription “YourAzureSubscriptionName”

Define parameters for Cloudservice name, and VM name of the VM

$cloudService = “YourCloudServiceName”
$vmName = “YourVMName”

Get the VM

$vm = Get-AzureVM –ServiceName $cloudService –Name $vmName

Tell Azure the Agent is installed

$vm.VM.ProvisionGuestAgent = $true

Update the VM to make changes take effect

Update-AzureVM -ServiceName $cloudService -Name $vmName -VM $vm.VM

Check the status to verify the changes

$vm = Get-AzureVM –ServiceName $cloudService –Name $vmName

If everything went according to plan the status should say Ready.

If it is says Not Ready you might need to reboot the VM, and then check again.


Manually Installing the Azure Guest Agent on an Existing VM - Zach Millis
Install the VM Agent on an existing Azure VM - Craig Landis