Azure Automanage for virtual machines

This article covers information about Azure Automanage for virtual machines, which have the following benefits:

  • Intelligently onboards virtual machines to select best practices Azure services
  • Automatically configures each service per Azure best practices
  • Monitors for drift and corrects for it when detected
  • Provides a simple experience (point, click, set, forget)


Azure Automanage for virtual machines is a service that eliminates the need to discover, know how to onboard, and how to configure certain services in Azure that would benefit your virtual machine. These services help enhance reliability, security, and management for virtual machines and are considered to be Azure best practices services, such as Azure Update Management and Azure Backup - just to name a few.

After onboarding your virtual machines to Azure Automanage, it automatically configures each best practice service to its recommended settings. Best practices are different for each of the services. An example might be Azure Backup, where the best practice might be to back up the virtual machine once a day and have a retention period of six months.

Azure Automanage also automatically monitors for drift and corrects for it when detected. What this means is if your virtual machine is onboarded to Azure Automanage, we'll not only configure it per Azure best practices, but we'll monitor your machine to ensure that it continues to comply with those best practices across its entire lifecycle. If your virtual machine does drift or deviate from those practices, we will correct it and pull your machine back into the desired state.

Lastly, the experience is incredibly simple.


There are several prerequisites to consider before trying to enable Azure Automanage on your virtual machines.

  • Windows Server VMs only
  • VMs must be running
  • VMs must be in a supported region (see paragraph below)
  • User must have correct permissions (see paragraph below)
  • Automanage does not support Sandbox subscriptions at this time

It is also important to note that Automanage only supports Windows VMs located in the following regions: West Europe, East US, West US 2, Canada Central, West Central US, Japan East.

You must have the Contributor role on the resource group containing your VMs to enable Automanage on VMs using an existing Automanage Account. If you are enabling Automanage with a new Automanage Account, you need the following permissions on your subscription: Owner role or Contributor along with User Access Administrator roles.


If you want to use Automanage on a VM that is connected to a workspace in a different subscription, you must have the permissions described above on each subscription.

Participating services

Intelligently onboard services.

See Azure Automanage for Virtual Machines Best Practices for the complete list of participating Azure services, as well as their supported configuration profiles.

We will automatically onboard you to these participating services. They are essential to our best practices white paper, which you can find in our Cloud Adoption Framework.

For all of these services, we will auto-onboard, autoconfigure, monitor for drift, and mediate if drift is detected.

Enabling Automanage for VMs in Azure portal

In the Azure portal, you can enable Automanage on an existing virtual machine or when you are creating a new virtual machine. For concise steps to this process, check out the Automanage for virtual machines quickstart.

If it is your first time enabling Automanage for your VM, you can search in the Azure portal for Automanage – Azure virtual machine best practices. Click Enable on existing VM, select the VMs you would like to onboard, click Select, click Enable, and you're done.

The only time you might need to interact with this VM to manage these services is in the event we attempted to remediate your VM, but failed to do so. If we successfully remediate your VM, we will bring it back into compliance without even alerting you.

Configuration profiles

When you are enabling Automanage for your virtual machine, a configuration profile is required. Configuration profiles are the foundation of this service. They define exactly which services we onboard your machines to and to some extent what the configuration of those services would be.

Default configuration profiles

There are two configuration profiles currently available.

  • Azure virtual machine best practices - Dev/Test configuration profile is designed for Dev/Test machines.
  • Azure virtual machine best practices - Production configuration profile is for production.

The reason for this differentiator is because certain services are recommended based on the workload running. For instance, in a Production machine we will automatically onboard you to Azure Backup. However, for a Dev/Test machine, a backup service would be an unnecessary cost, since Dev/Test machines are typically lower business impact.

Customizing a configuration profile using preferences

In addition to the standard services we onboard you to, we allow you to configure a certain subset of preferences. These preferences are allowed within a range of configuration options that do not breach our best practices. For example, in the case of Azure Backup we will allow you to define the frequency of the backup and which day of the week it occurs on. However, we will not allow you to switch off Azure Backup completely.


In the Dev/Test configuration profile, we will not backup the VM at all.

You can adjust the settings of a default configuration profile through preferences. Learn how to create a preference here.


You cannot change the configuration profile on your VM while Automanage is enabled. You will need to disable Automanage for that VM and then re-enable Automanage with the desired configuration profile and preferences.

Automanage Account

The Automanage Account is the security context or the identity under which the automated operations occur. Typically, the Automanage Account option is unnecessary for you to select, but if there was a delegation scenario where you wanted to divide the automated management of your resources (perhaps between two system administrators), this option allows you to define an Azure identity for each of those administrators.

In the Azure portal experience, when you are enabling Automanage on your VMs, there is an Advanced dropdown on the Enable Azure VM best practice blade that allows you to assign or manually create the Automanage Account.

The Automanage Account will be granted both Contributor and Resource Policy Contributor roles to the subscription(s) containing the machine(s) you onboard to Automanage. You may use the same Automanage Account on machines across multiple subscriptions, which will grant that Automanage Account Contributor and Resource Policy Contributor permissions on all subscriptions.

If your VM is connected to a Log Analytics workspace in another subscription, the Automanage Account will be granted both Contributor and Resource Policy Contributor in that other subscription as well.

If you are enabling Automanage with a new Automanage Account, you need the following permissions on your subscription: Owner role or Contributor along with User Access Administrator roles.

If you are enabling Automanage with an existing Automanage Account, you need to have the Contributor role on the resource group containing your VMs.


When you disable Automanage Best Practices, the Automanage Account's permissions on any associated subscriptions will remain. Manually remove the permissions by going to the subscription's IAM page or delete the Automanage Account. The Automanage Account cannot be deleted if it is still managing any machines.

Status of VMs

In the Azure portal, go to the Automanage – Azure virtual machine best practices page which lists all of your auto-managed VMs. Here you will see the overall status of each virtual machine.

List of configured virtual machines.

For each listed VM, the following details are displayed: Name, Configuration profile, Configuration preference, Status, Account, Subscription, and Resource group.

The Status column can display the following states:

  • In-progress - the VM was just enabled and is being configured
  • Configured - the VM is configured and no drift is detected
  • Failed - the VM has drifted and we were unable to remediate
  • Pending - the VM is currently not running, and Automanage will attempt to onboard or remediate the VM when it is next running

If you see the Status as Failed, you can troubleshoot the deployment through the Resource Group your VM is located in. Go to Resource groups, select your resource group, click on Deployments and see the Failed status there along with error details.

Disabling Automanage for VMs

You may decide one day to disable Automanage on certain VMs. For instance, your machine is running some super sensitive secure workload and you need to lock it down even further than Azure would have done naturally, so you need to configure the machine outside of Azure best practices.

To do that in the Azure portal, go to the Automanage – Azure virtual machine best practices page that lists all of your auto-managed VMs. Select the checkbox next to the virtual machine you want to disable from Automanage, then click on the Disable automanagment button.

Disabling Automanage on a virtual machine.

Read carefully through the messaging in the resulting pop-up before agreeing to Disable.


Disabling automanagement in a VM results in the following behavior:

  • The configuration of the VM and the services it is onboarded to don't change.
  • Any charges incurred by those services remain billable and continue to be incurred.
  • Any Automanage behaviors immediately stop.

First and foremost, we will not off-board the virtual machine from any of the services that we onboarded it to and configured. So any charges incurred by those services will continue to remain billable. You will need to off-board if necessary. Any Automanage behavior will stop immediately. For example, we will no longer monitor the VM for drift.

Next steps

In this article, you learned that Automanage for virtual machines provides a means for which you can eliminate the need for you to know of, onboard to, and configure best practices Azure services. In addition, if a machine you onboarded to Automanage for virtual machines drifts from the configuration profiles set up, we will automatically bring it back into compliance.

Try enabling Automanage for virtual machines in the Azure portal.