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:

.\WindowsAzureVmAgent.2.3.1198.670.rd_art_stable.140328-0941.fre.msi

Install the VM Agent.

Let Azure know the VM Agent is installed

Start Windows Azure Powershell.

Login to your Azure account

Add-AzureAccount

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
$vm.GuestAgentStatus

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.

References

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