{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-arc/json-schema/microsoft-azure-arc-vm-application-update-schema.json",
  "title": "VmApplicationUpdate",
  "description": "The update request for a VM application.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-arc-vmapplications-api-openapi.yml#/components/schemas/VmApplicationUpdate",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "properties": {
      "$ref": "#/$defs/VmApplicationUpdateProperties",
      "description": "The resource-specific properties for this resource."
    }
  },
  "$defs": {
    "VmApplicationUpdateProperties": {
      "type": "object",
      "description": "The updatable properties of the VmApplication.",
      "properties": {
        "order": {
          "type": "integer",
          "format": "int32",
          "description": "The order in which the application is installed."
        },
        "packageReferenceId": {
          "type": "string",
          "format": "arm-id",
          "description": "The resource ID of the gallery application version. The version name can be `latest` or a specific version. This property is mutually exclusive with sharedGalleryApplicationId and communityGalleryApplicationId.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Compute/galleries/applications/versions"
              }
            ]
          }
        },
        "sharedGalleryApplicationId": {
          "type": "string",
          "description": "The identifier of a direct shared gallery application version. Use `/sharedGalleries/{sharedGalleryUniqueName}/applications/{applicationName}/versions/{versionName}`, where the version name can be `latest` or a specific version. This property is mutually exclusive with packageReferenceId and communityGalleryApplicationId."
        },
        "communityGalleryApplicationId": {
          "type": "string",
          "description": "The identifier of a community gallery application version. Use `/communityGalleries/{communityGalleryPublicName}/applications/{applicationName}/versions/{versionName}`, where the version name can be `latest` or a specific version. This property is mutually exclusive with packageReferenceId and sharedGalleryApplicationId."
        },
        "configurationReference": {
          "type": "string",
          "format": "uri",
          "description": "The URI of configuration data that replaces the package's default configuration."
        },
        "treatFailureAsDeploymentFailure": {
          "type": "boolean",
          "description": "Indicates whether an application operation failure causes the deployment to fail."
        }
      }
    }
  }
}