Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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:
- Ensure the server is Arc-enabled and not expired. For more information, see Azure Arc-enabled servers overview.
- Ensure the Azure Connected Machine agent is on version 1.69 or later. For more information, see Manage and maintain the Connected Machine agent.
- For Azure Arc-enabled Linux servers, ensure OpenSSL version 1.1.1 or later is installed.
- Add
*.blob.core.windows.netto your allow list. For more information, see Azure Arc network requirements. - Ensure the VM application is replicated to the region to which the Azure Arc-enabled server is connected. For more information, see Create the VM Application.
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.
- In the Azure portal, search for and select Azure Compute Galleries.
- Open the gallery that contains your VM Application.
- On the gallery's Overview page, under Definitions, select your VM Application.
- Select the version you want to deploy.
- 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.
- In the Azure portal, search for and select Azure Arc.
- Select Machines, and then select your Arc-enabled server.
- In the resource menu, select VM applications.
- On the toolbar, select Add/Create, and then select Add application.
- 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.
- In the Azure portal, search for and select Azure Arc.
- Select Machines, and then select the checkboxes for the servers you want to deploy applications to.
- On the toolbar, select Add applications.
- Confirm the selected machines, and then select Next: Add applications >.
- Select one or more applications, and then select Next: Review >.
- 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.
- In the Azure portal, search for and select Azure Arc.
- Select Machines, and then select your Arc-enabled server.
- In the resource menu, select VM applications.
- On the toolbar, select Refresh.
- 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.