{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-web-app-service-plan-v2-schema.json",
  "title": "WebAppServicePlanV2",
  "description": "Assessed Web app web model class.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-migrate-webappserviceplanv2operations-api-openapi.yml#/components/schemas/WebAppServicePlanV2",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/WebAppServicePlanV2Properties",
      "description": "The resource-specific properties for this resource.",
      "x-ms-client-flatten": true,
      "x-ms-mutability": [
        "read",
        "create"
      ]
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "AzureWebAppTargetType": {
      "type": "string",
      "enum": [
        "Unknown",
        "AzureAppService",
        "AzureAppServiceContainer"
      ],
      "x-ms-enum": {
        "name": "AzureWebAppTargetType",
        "modelAsString": true
      }
    },
    "CostComponent": {
      "type": "object",
      "description": "Class to represent the component of the cost.",
      "properties": {
        "name": {
          "$ref": "#/$defs/CostComponentName",
          "description": "Gets the name of the component.",
          "readOnly": true
        },
        "value": {
          "type": "number",
          "format": "float",
          "description": "The value of the component."
        },
        "description": {
          "type": "string",
          "description": "The textual description of the component."
        }
      }
    },
    "CostComponentName": {
      "type": "string",
      "description": "Enum to represent component name.",
      "enum": [
        "Unknown",
        "MonthlyAzureHybridCostSavings",
        "MonthlySecurityCost",
        "MonthlyPremiumV2StorageCost",
        "MonthlyLinuxAzureHybridCostSavings",
        "MonthlyAvsNodeCost",
        "MonthlyAvsExternalStorageCost",
        "MonthlyAvsNetworkCost",
        "MonthlyVcfByolCostDifference"
      ],
      "x-ms-enum": {
        "name": "CostComponentName",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown",
            "description": "Default Cost Component name represented by Unknown."
          },
          {
            "name": "MonthlyAzureHybridCostSavings",
            "value": "MonthlyAzureHybridCostSavings",
            "description": "Cost Savings due to Windows Azure Hybrid on monthly basis."
          },
          {
            "name": "MonthlySecurityCost",
            "value": "MonthlySecurityCost",
            "description": "Monthly security cost."
          },
          {
            "name": "MonthlyPremiumV2StorageCost",
            "value": "MonthlyPremiumV2StorageCost",
            "description": "Monthly PremiumV2 Storage Cost."
          },
          {
            "name": "MonthlyLinuxAzureHybridCostSavings",
            "value": "MonthlyLinuxAzureHybridCostSavings",
            "description": "Cost Savings due to Linux Azure Hybrid on monthly basis."
          },
          {
            "name": "MonthlyAvsNodeCost",
            "value": "MonthlyAvsNodeCost",
            "description": "Monthly AVS Node cost"
          },
          {
            "name": "MonthlyAvsExternalStorageCost",
            "value": "MonthlyAvsExternalStorageCost",
            "description": "Monthly AVS External Storage cost"
          },
          {
            "name": "MonthlyAvsNetworkCost",
            "value": "MonthlyAvsNetworkCost",
            "description": "Monthly AVS Network cost"
          },
          {
            "name": "MonthlyVcfByolCostDifference",
            "value": "MonthlyVcfByolCostDifference",
            "description": "Monthly compute cost difference between VCF BYOL and non VCF BYOL SKUs"
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "WebAppServicePlanV2Properties": {
      "type": "object",
      "description": "Assessed Web app database properties web model.",
      "properties": {
        "webAppType": {
          "$ref": "#/$defs/WebAppType",
          "description": "Gets or sets the web app type.",
          "readOnly": true
        },
        "webAppTargetType": {
          "$ref": "#/$defs/AzureWebAppTargetType",
          "description": "Gets or sets the target specific result.",
          "readOnly": true
        },
        "webAppServicePlanName": {
          "type": "string",
          "description": "Gets or sets the app service plan name.",
          "readOnly": true
        },
        "numberOfWebApps": {
          "type": "integer",
          "format": "int32",
          "description": "Gets the machine name.",
          "readOnly": true
        },
        "monthlyCost": {
          "type": "number",
          "format": "float",
          "description": "Gets or sets the server ARM Id.",
          "readOnly": true
        },
        "storage": {
          "type": "number",
          "format": "double",
          "description": "Gets or sets the web server name.",
          "readOnly": true
        },
        "scaleOutInstances": {
          "type": "integer",
          "format": "int32",
          "description": "Gets or sets web app name.",
          "readOnly": true
        },
        "cores": {
          "type": "integer",
          "format": "int32",
          "description": "Gets the discovered web app ID.",
          "readOnly": true
        },
        "ram": {
          "type": "number",
          "format": "double",
          "description": "Machine arm id.",
          "readOnly": true
        },
        "webAppSkuName": {
          "type": "string",
          "description": "Web app sku name.",
          "readOnly": true
        },
        "webAppSkuSize": {
          "type": "string",
          "description": "Web app sku size.",
          "readOnly": true
        },
        "createdTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "When was assessed SQL database first created.",
          "readOnly": true
        },
        "updatedTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "When was assessed Web app database last updated.",
          "readOnly": true
        },
        "costComponents": {
          "type": "array",
          "description": "Cost components.",
          "items": {
            "$ref": "#/$defs/CostComponent"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        }
      },
      "required": [
        "webAppServicePlanName",
        "numberOfWebApps"
      ]
    },
    "WebAppType": {
      "type": "string",
      "description": "Web App Type.",
      "enum": [
        "Unknown",
        "IIS",
        "Tomcat"
      ],
      "x-ms-enum": {
        "name": "WebAppType",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown",
            "description": "Unknown. Indicates Missing Data."
          },
          {
            "name": "IIS",
            "value": "IIS",
            "description": "ASP.NET Web App."
          },
          {
            "name": "Tomcat",
            "value": "Tomcat",
            "description": "Java Web App."
          }
        ]
      }
    }
  }
}