profile for Hannel on Stack Exchange, a network of free, community-driven Q&A sites
Project Work Hours
Sat & Sun 6am - 9am
Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.


This article covers the steps to install an Azure Virtual Machine Agent (VMAgent) and Extension on an Azure Windows Virtual Machine that was create from image without the VMAgent. During the deployment of an Azure Virtual Machine (VM) from image, using any other means besides the portal, you can specified whether or not to provision the Azure VMAgent.

If the Azure VMAgent is not provisioned or installed on an Azure VM, you will not be able to use any extensions with that VM, this includes managing post deployment operations in the VM like password reset.

Follow steps below to install VMAgent and Enable VM Extensions:

First, validate that option to provision Azure VMAgent was not set on VM deployment. You can do that by using PowerShell commands below;

 $vm = Get-AzureRmVM -ResourceGroupName Repro -Name Repro-VMD-VM4
Check VMAgent provisioning

Then, download and install the Azure VMAgent on the Azure VM, article below covers the process;

After installation confirm Azure VMAgent was installed and is running on the Azure VM.

Check VMAgent installed and running

Next is to enable extensions operation. Since the Azure VMAgent was not provisioned on deployment and the Azure VMAgent is needed for extensions, the option to allow extension operations is not enable. You can enable this option by using PowerShell commands below;

$vm.OSProfile.AllowExtensionOperations = $true
$vm | Update-AzureRmVM
Enable extension operation

Once the option is enable you should now be able to install and use extensions on the Azure VM.

Install extension

Watch it all unfold:

Azure Series