Edit

Share via


Azure Machine Configuration extension

The Machine Configuration extension performs audit and configuration operations inside virtual machines (VMs).

To check policies inside VMs, such as Azure compute security baseline definitions for Linux and Windows, the Machine Configuration extension must be installed.

Prerequisites

To enable your VM to authenticate to the Machine Configuration service, your VM must have a system-assigned managed identity. You can satisfy the identity requirement for your VM by setting the "type": "SystemAssigned" property:

"identity": {
   "type": "SystemAssigned"
}

Operating systems

Operating system support for the Machine Configuration extension is the same as documented operating system support for the end-to-end solution.

Internet connectivity

The agent installed by the Machine Configuration extension must be able to reach content packages listed by guest configuration assignments, and report status to the Machine Configuration service. The VM can connect by using outbound HTTPS over TCP port 443, or a connection provided through private networking.

To learn more about private networking, see the following articles:

Install the extension

You can install and deploy the Azure Machine Configuration extension directly from the Azure portal, Azure CLI or PowerShell.

  1. Open the Azure portal.
  2. In the search box, enter Virtual machines and then select Virtual machines to display the list of available VMs.
  3. Select the virtual machines you want to use.
  4. In the search box of virtual machine page, enter Extensions+applications and then select it.
  5. Click on Add in the extensions page.
  6. In the search box of extension page, enter Azure Machine Configuration extension for Windows or Azure Machine Configuration extension for Linux based on the OS type and select it.
  7. Click Next and then select Review + create to install the extension.
  8. Once validation passes, select Create.
  9. Once installation finishes, you can see AzurePolicyforWindows or AzurePolicyforLinux extension installed in the extension page.