Edit

Share via


Manage Azure VM Applications

This article talks about how to monitor, update, and delete the published VM Application and the deployed VM application resource on Azure Virtual Machine (VM) or Virtual Machine Scale Sets.

View the published VM Applications

To view the properties of a published VM Application in the Azure portal:

  1. Sign in to the Azure portal.
  2. Search for Azure Compute Gallery.
  3. Select the gallery that contains your VM Application.
  4. Click the VM Application Name you want to view.
  5. The Overview/Properties blade displays information about the VM Application.
  6. The Overview/Versions blade displays all published versions and its basic properties like Target Regions, Provisioning state, and Replication state.
  7. Select a specific version to view all its details.

Screenshot showing VM Application properties & all versions in the Azure portal.

Screenshot showing VM Application version properties in the Azure portal.

Monitor the deployed VM Applications

To show the VM application status, go to the Extensions + applications tab/settings and check the status of the VMAppExtension:

Screenshot showing VM application status.

To show the VM application status for a scale set, go to the Azure portal Virtual Machine Scale Sets page. In the Instances section, select one of the scales sets listed, then go to VMAppExtension:

Screenshot showing virtual machine scale sets application status.

Remove the VM Application from Azure VM or VMSS

  1. Open the Azure portal and go to the target virtual machine (VM) or Virtual Machine Scale Set.
  2. In Settings, select Extensions + applications, then select the VM Applications tab.
  3. Click uninstall button on the VM Application and Save.
  4. Track progress in Notifications or check Instance view for the VMAppExtension status.

Screenshot showing how to Uninstall VM application from a VM.

To delete the VM Application resource, you need to first delete all its versions. Deleting the application version causes deletion of the application version resource from Azure Compute Gallery and all its replicas. The application blob in Storage Account used to create the application version is unaffected.

Warning

  • Deleting the application version causes subsequent PUT operations on VMs using that version to fail. Use latest keyword as the version number in the applicationProfile instead of hard coding the version number to address this failure.

  • Deleting the VM application that is referenced by any VM or VMSS causes subsequent PUT operations on those resources to fail (for example, update, scale, or reimage). Before deleting, ensure all VMs/VMSS instances stop using the application by removing it from their applicationProfile.

  • To prevent accidental deletion, set safetyProfile/allowDeletionOfReplicatedLocations to false while publishing the version and apply an Azure Resource Manager lock (CanNotDelete or ReadOnly) on the VM application resource.

  1. Sign in to the Azure portal.
  2. Search for Azure Compute Gallery and open the target gallery.
  3. Select the VM application you want to remove.
  4. Select one or more versions, which you want to delete.
  5. To delete the VM application, first delete all the versions. Then click delete (on top of the blade).
  6. Monitor Notifications for completion. If deletion is blocked, remove any locks and ensure no VM or scale set references the application.

Screenshot showing deletion of a VM application and its versions in the Azure portal.

Next steps

Learn more about Azure VM Applications.

Learn to create Azure VM applications.