Deploy VM applications on Azure Arc-enabled servers (preview)

VM Applications let you deploy versioned application packages from Azure Compute Gallery to your Azure Arc-enabled servers. This article guides you through the deployment process.

Before you begin, prepare and publish your VM Application. The preparation and publishing process is the same for Azure VMs and Arc-enabled servers.

Prerequisites

Before deploying your VM Application to your Azure Arc-enabled server, ensure you have the following prerequisites:

Get the package reference ID

The deployment references a specific gallery application version. Find its resource ID by using the Azure portal, Azure CLI, or PowerShell.

  1. In the Azure portal, search for and select Azure Compute Galleries.
  2. Open the gallery that contains your VM Application.
  3. On the gallery's Overview page, under Definitions, select your VM Application.
  4. Select the version you want to deploy.
  5. On the version's Overview page, select JSON View and copy the Resource ID. Copy the version's resource ID.

Note

Use the full resource ID as the package reference ID when you deploy the application. It has the following format:

/subscriptions/{subscription-id}/resourceGroups/{gallery-resource-group}/providers/Microsoft.Compute/galleries/{gallery-name}/applications/{application-name}/versions/{version}

Deploy the VM application

After you create your VM Application and gather the necessary information, deploy it to your Arc-enabled server. The server downloads the application package and runs the installation command defined for that version.

Deploy to a single machine

Deploy a VM application from the Arc-enabled server's resource page.

  1. In the Azure portal, search for and select Azure Arc.
  2. Select Machines, and then select your Arc-enabled server.
  3. In the resource menu, select VM applications.
  4. On the toolbar, select Add/Create, and then select Add application.
  5. Select the application you want to deploy, and then select Save.

Deploy to multiple machines

Deploy one or more VM applications to multiple Arc-enabled servers from the machines list.

  1. In the Azure portal, search for and select Azure Arc.
  2. Select Machines, and then select the checkboxes for the servers you want to deploy applications to.
  3. On the toolbar, select Add applications.
  4. Confirm the selected machines, and then select Next: Add applications >.
  5. Select one or more applications, and then select Next: Review >.
  6. Review your selections, and then select Review + Add.

Important

When deploying multiple applications, use the VM Application order property to define the installation order. Don't use the ARM template dependsOn property as the application installation ordering mechanism.

Verify the VM application deployment

After deployment, use one of the following methods to retrieve the application resource and check its provisioning state.

  1. In the Azure portal, search for and select Azure Arc.
  2. Select Machines, and then select your Arc-enabled server.
  3. In the resource menu, select VM applications.
  4. On the toolbar, select Refresh.
  5. Find your application in the list and check its Provisioning state.

Review the returned provisioning state for the status of the Azure resource operation. To check the installed version and the results of operations on the Arc-enabled server, retrieve the application's instance view.

Difference in deployment process between Azure virtual machines and Arc-enabled servers

For Azure virtual machines (VMs) and Virtual Machine Scale Sets (VMSS), the application is added to the applicationProfile within the VM or VMSS profile. For Arc-enabled servers, the application is an external resource that's referenced and added to the machine. This enables event tracking and logging through Azure Activity Logs for control plane operations.

Next steps