Create a custom preference in Azure Automanage for VMs
Azure Automanage for virtual machine best practices has default configuration profiles that can be adjusted if needed. This article will explain how you can set your own configuration profile preferences when you enable automanagement on a new or existing VM.
You cannot change the configuration profile or preference 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.
If you don't have an Azure subscription, create an account before you begin.
Free trial accounts do not have access to the virtual machines used in this tutorial. Please upgrade to a Pay-As-You-Go subscription.
The following Azure RBAC permission is needed to enable Automanage: Owner role, or Contributor along with User Access Administrator roles.
Sign in to Azure
Sign in to the Azure portal.
Enable Automanage for VMs on an existing VM
In the search bar, search for and select Automanage – Azure virtual machine best practices.
Select the Enable on existing VM.
On the Select machines blade:
- Filter the VMs list by your Subscription and Resource group.
- Check the checkbox of each virtual machine you want to onboard.
- Click the Select button.
Under Configuration profile, click Browse and change profiles and preferences.
On the Select configuration profile + preferences blade, select a profile on left hand side: Dev/Test for testing, Prod for production.
On the chosen profile, under Configuration preferences there is a dropdown where you can adjust for certain services.
- Click Create new preferences.
- In the Create a configuration preference blade, fill out the Basics tab:
- Resource group
- Preference name
Go to the Preferences tab and adjust the configuration preferences you want.
Only adjustments that still fit within our best practices upper and lower bounds will be allowed when changing profile configurations.
Review your configuration profile.
Click the Create button.
Click the Enable button.
Disable Automanage for VMs
Quickly stop using Azure Automanage for virtual machines by disabling automanagement.
- 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.
- Click on the Disable automanagent button.
- Read carefully through the messaging in the resulting pop-up before agreeing to Disable.
Clean up resources
If you created a new resource group to try Azure Automanage for virtual machines and no longer need it, you can delete the resource group. Deleting the group also deletes the VM and all of the resources in the resource group.
Azure Automanage creates default resource groups to store resources in. Check resource groups that have the naming convention "DefaultResourceGroupRegionName" and "AzureBackupRGRegionName" to clean up all resources.
- Select the Resource group.
- On the page for the resource group, select Delete.
- When prompted, confirm the name of the resource group and then select Delete.
Get the most frequently asked questions answered in our FAQ.