{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-managed-instance-vulnerability-assessment-schema.json",
  "title": "ManagedInstanceVulnerabilityAssessment",
  "description": "A managed instance vulnerability assessment.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-managedinstancevulnerabilityassessments-api-openapi.yml#/components/schemas/ManagedInstanceVulnerabilityAssessment",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ManagedInstanceVulnerabilityAssessmentProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "ManagedInstanceVulnerabilityAssessmentProperties": {
      "type": "object",
      "description": "Properties of a managed instance vulnerability assessment.",
      "properties": {
        "storageContainerPath": {
          "type": "string",
          "description": "A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).",
          "x-ms-mutability": [
            "update",
            "create"
          ]
        },
        "storageContainerSasKey": {
          "type": "string",
          "description": "A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall",
          "x-ms-mutability": [
            "update",
            "create"
          ]
        },
        "storageAccountAccessKey": {
          "type": "string",
          "description": "Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall",
          "x-ms-mutability": [
            "update",
            "create"
          ]
        },
        "recurringScans": {
          "$ref": "#/$defs/VulnerabilityAssessmentRecurringScansProperties",
          "description": "The recurring scans settings"
        }
      },
      "required": [
        "storageContainerPath"
      ]
    },
    "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
    },
    "VulnerabilityAssessmentRecurringScansProperties": {
      "type": "object",
      "description": "Properties of a Vulnerability Assessment recurring scans.",
      "properties": {
        "isEnabled": {
          "type": "boolean",
          "description": "Recurring scans state."
        },
        "emailSubscriptionAdmins": {
          "type": "boolean",
          "description": "Specifies that the schedule scan notification will be is sent to the subscription administrators.",
          "default": true
        },
        "emails": {
          "type": "array",
          "description": "Specifies an array of e-mail addresses to which the scan notification is sent.",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}