{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-application-patchable-schema.json",
  "title": "ApplicationPatchable",
  "description": "Information about managed application.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-applications-api-openapi.yml#/components/schemas/ApplicationPatchable",
  "properties": {
    "properties": {
      "x-ms-client-flatten": true,
      "$ref": "#/$defs/ApplicationProperties",
      "description": "The managed application properties."
    },
    "plan": {
      "$ref": "#/$defs/PlanPatchable",
      "description": "The plan information."
    },
    "kind": {
      "type": "string",
      "description": "The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.",
      "pattern": "^[-\\w\\._,\\(\\)]+$"
    },
    "identity": {
      "$ref": "#/$defs/Identity",
      "description": "The identity of the resource."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/GenericResource"
    }
  ],
  "$defs": {
    "ApplicationArtifact": {
      "properties": {
        "name": {
          "$ref": "#/$defs/ApplicationArtifactName",
          "description": "The managed application artifact name."
        },
        "uri": {
          "type": "string",
          "description": "The managed application artifact blob uri."
        },
        "type": {
          "$ref": "#/$defs/ApplicationArtifactType",
          "description": "The managed application artifact type."
        }
      },
      "required": [
        "name",
        "type",
        "uri"
      ],
      "description": "Managed application artifact."
    },
    "ApplicationArtifactName": {
      "description": "The managed application artifact name.",
      "enum": [
        "NotSpecified",
        "ViewDefinition",
        "Authorizations",
        "CustomRoleDefinition"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "ApplicationArtifactName",
        "modelAsString": true
      }
    },
    "ApplicationArtifactType": {
      "description": "The managed application artifact type.",
      "enum": [
        "NotSpecified",
        "Template",
        "Custom"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "ApplicationArtifactType",
        "modelAsString": false
      }
    },
    "ApplicationAuthorization": {
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources."
        },
        "roleDefinitionId": {
          "type": "string",
          "description": "The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group."
        }
      },
      "required": [
        "principalId",
        "roleDefinitionId"
      ],
      "description": "The managed application provider authorization."
    },
    "ApplicationBillingDetailsDefinition": {
      "properties": {
        "resourceUsageId": {
          "type": "string",
          "description": "The managed application resource usage Id."
        }
      },
      "description": "Managed application billing details definition."
    },
    "ApplicationClientDetails": {
      "readOnly": true,
      "properties": {
        "oid": {
          "type": "string",
          "description": "The client Oid."
        },
        "puid": {
          "type": "string",
          "description": "The client Puid"
        },
        "applicationId": {
          "type": "string",
          "description": "The client application Id."
        }
      },
      "description": "The application client details to track the entity creating/updating the managed app resource."
    },
    "ApplicationJitAccessPolicy": {
      "properties": {
        "jitAccessEnabled": {
          "type": "boolean",
          "description": "Whether the JIT access is enabled."
        },
        "jitApprovalMode": {
          "$ref": "#/$defs/JitApprovalMode",
          "description": "JIT approval mode."
        },
        "jitApprovers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JitApproverDefinition"
          },
          "description": "The JIT approvers"
        },
        "maximumJitAccessDuration": {
          "type": "string",
          "description": "The maximum duration JIT access is granted. This is an ISO8601 time period value."
        }
      },
      "required": [
        "jitAccessEnabled"
      ],
      "description": "Managed application Jit access policy."
    },
    "ApplicationManagementMode": {
      "description": "The management mode.",
      "enum": [
        "NotSpecified",
        "Unmanaged",
        "Managed"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "ApplicationManagementMode",
        "modelAsString": true
      }
    },
    "ApplicationPackageContact": {
      "properties": {
        "contactName": {
          "type": "string",
          "description": "The contact name."
        },
        "email": {
          "type": "string",
          "description": "The contact email."
        },
        "phone": {
          "type": "string",
          "description": "The contact phone number."
        }
      },
      "required": [
        "email",
        "phone"
      ],
      "description": "The application package contact information."
    },
    "ApplicationPackageSupportUrls": {
      "properties": {
        "publicAzure": {
          "type": "string",
          "description": "The public azure support URL."
        },
        "governmentCloud": {
          "type": "string",
          "description": "The government cloud support URL."
        }
      },
      "description": "The appliance package support URLs."
    },
    "ApplicationProperties": {
      "properties": {
        "managedResourceGroupId": {
          "type": "string",
          "description": "The managed resource group Id."
        },
        "applicationDefinitionId": {
          "type": "string",
          "description": "The fully qualified path of managed application definition Id."
        },
        "parameters": {
          "type": "object",
          "description": "Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string."
        },
        "outputs": {
          "readOnly": true,
          "type": "object",
          "description": "Name and value pairs that define the managed application outputs."
        },
        "provisioningState": {
          "readOnly": true,
          "$ref": "#/$defs/ProvisioningState",
          "description": "The managed application provisioning state."
        },
        "billingDetails": {
          "readOnly": true,
          "$ref": "#/$defs/ApplicationBillingDetailsDefinition",
          "description": "The managed application billing details."
        },
        "jitAccessPolicy": {
          "$ref": "#/$defs/ApplicationJitAccessPolicy",
          "description": "The managed application Jit access policy."
        },
        "publisherTenantId": {
          "type": "string",
          "description": "The publisher tenant Id.",
          "readOnly": true
        },
        "authorizations": {
          "description": "The  read-only authorizations property that is retrieved from the application package.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ApplicationAuthorization"
          },
          "readOnly": true
        },
        "managementMode": {
          "$ref": "#/$defs/ApplicationManagementMode",
          "description": "The managed application management mode.",
          "readOnly": true
        },
        "customerSupport": {
          "$ref": "#/$defs/ApplicationPackageContact",
          "description": "The read-only customer support property that is retrieved from the application package.",
          "readOnly": true
        },
        "supportUrls": {
          "$ref": "#/$defs/ApplicationPackageSupportUrls",
          "description": "The read-only support URLs property that is retrieved from the application package.",
          "readOnly": true
        },
        "artifacts": {
          "description": "The collection of managed application artifacts.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ApplicationArtifact"
          },
          "readOnly": true
        },
        "createdBy": {
          "readOnly": true,
          "$ref": "#/$defs/ApplicationClientDetails",
          "description": "The client entity that created the JIT request."
        },
        "updatedBy": {
          "readOnly": true,
          "$ref": "#/$defs/ApplicationClientDetails",
          "description": "The client entity that last updated the JIT request."
        }
      },
      "description": "The managed application properties."
    },
    "GenericResource": {
      "properties": {
        "managedBy": {
          "type": "string",
          "description": "ID of the resource that manages this resource."
        },
        "sku": {
          "$ref": "#/$defs/Sku",
          "description": "The SKU of the resource."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ],
      "description": "Resource information."
    },
    "Identity": {
      "properties": {
        "principalId": {
          "readOnly": true,
          "type": "string",
          "description": "The principal ID of resource identity."
        },
        "tenantId": {
          "readOnly": true,
          "type": "string",
          "description": "The tenant ID of resource."
        },
        "type": {
          "type": "string",
          "description": "The identity type.",
          "enum": [
            "SystemAssigned",
            "UserAssigned",
            "SystemAssigned, UserAssigned",
            "None"
          ],
          "x-ms-enum": {
            "name": "ResourceIdentityType",
            "modelAsString": false
          }
        },
        "userAssignedIdentities": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/userAssignedResourceIdentity"
          },
          "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
        }
      },
      "description": "Identity for the resource."
    },
    "JitApprovalMode": {
      "description": "The Jit approval mode.",
      "enum": [
        "NotSpecified",
        "AutoApprove",
        "ManualApprove"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "JitApprovalMode",
        "modelAsString": true
      }
    },
    "JitApproverDefinition": {
      "properties": {
        "id": {
          "type": "string",
          "description": "The approver service principal Id."
        },
        "type": {
          "type": "string",
          "description": "The approver type.",
          "enum": [
            "user",
            "group"
          ],
          "x-ms-enum": {
            "name": "JitApproverType",
            "modelAsString": true
          }
        },
        "displayName": {
          "type": "string",
          "description": "The approver display name."
        }
      },
      "required": [
        "id"
      ],
      "description": "JIT approver definition."
    },
    "PlanPatchable": {
      "properties": {
        "name": {
          "type": "string",
          "description": "The plan name."
        },
        "publisher": {
          "type": "string",
          "description": "The publisher ID."
        },
        "product": {
          "type": "string",
          "description": "The product code."
        },
        "promotionCode": {
          "type": "string",
          "description": "The promotion code."
        },
        "version": {
          "type": "string",
          "description": "The plan's version."
        }
      },
      "description": "Plan for the managed application."
    },
    "ProvisioningState": {
      "description": "Provisioning status of the managed application.",
      "readOnly": true,
      "enum": [
        "NotSpecified",
        "Accepted",
        "Running",
        "Ready",
        "Creating",
        "Created",
        "Deleting",
        "Deleted",
        "Canceled",
        "Failed",
        "Succeeded",
        "Updating"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true
      }
    },
    "Resource": {
      "properties": {
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "Resource ID"
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Resource name"
        },
        "type": {
          "readOnly": true,
          "type": "string",
          "description": "Resource type"
        },
        "location": {
          "type": "string",
          "description": "Resource location"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Resource tags"
        }
      },
      "description": "Resource information.",
      "x-ms-azure-resource": true
    },
    "Sku": {
      "properties": {
        "name": {
          "type": "string",
          "description": "The SKU name."
        },
        "tier": {
          "type": "string",
          "description": "The SKU tier."
        },
        "size": {
          "type": "string",
          "description": "The SKU size."
        },
        "family": {
          "type": "string",
          "description": "The SKU family."
        },
        "model": {
          "type": "string",
          "description": "The SKU model."
        },
        "capacity": {
          "type": "integer",
          "format": "int32",
          "description": "The SKU capacity."
        }
      },
      "required": [
        "name"
      ],
      "description": "SKU for the resource."
    },
    "userAssignedResourceIdentity": {
      "properties": {
        "principalId": {
          "readOnly": true,
          "type": "string",
          "description": "The principal id of user assigned identity."
        },
        "tenantId": {
          "readOnly": true,
          "type": "string",
          "description": "The tenant id of user assigned identity."
        }
      },
      "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity"
    }
  }
}