Q. How do I manually tell the Azure fabric the Azure VM Agent has been installed in a VM?
A. If you upload a VM to Azure or create your own template that does not have the Azure VM Agent installed it can be manually installed by downloading from http://go.microsoft.com/fwlink/?LinkID=394789 and then telling the Azure fabric that the VM Agent is installed in the VM. To do this with ARM perform the following:
$vm = Get-AzureRmVM -ResourceGroupName $rg -Name $name
$vm.OSProfile.windowsConfiguration.provisionVMAgent = $True
Update-AzureRmVM -ResourceGroupName $rg -VM $vm
0 comments
Hide comments