{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-storage-profile-schema.json",
  "title": "StorageProfile",
  "description": "Specifies the storage settings for the virtual machine disks.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-virtualmachinescalesetvms-api-openapi.yml#/components/schemas/StorageProfile",
  "type": "object",
  "properties": {
    "imageReference": {
      "$ref": "#/$defs/ImageReference",
      "description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations."
    },
    "osDisk": {
      "$ref": "#/$defs/OSDisk",
      "description": "Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview)."
    },
    "dataDisks": {
      "type": "array",
      "description": "Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).",
      "items": {
        "$ref": "#/$defs/DataDisk"
      },
      "x-ms-identifiers": [
        "lun"
      ]
    },
    "diskControllerType": {
      "$ref": "#/$defs/DiskControllerTypes",
      "description": "Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01."
    },
    "alignRegionalDisksToVMZone": {
      "type": "boolean",
      "description": "Specifies whether the regional disks should be aligned/moved to the VM zone. This is applicable **only** for VMs with placement.zonePlacementPolicy set to **Any**. Please note that this change is irreversible. Minimum api-version: 2024-11-01."
    },
    "diskApiVersion": {
      "$ref": "#/$defs/DiskApiVersion",
      "description": "Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\")."
    }
  },
  "$defs": {
    "AdditionalDiskProperties": {
      "type": "object",
      "description": "Specifies additional properties for a managed disk that can be set at the time of implicit creation of the disk.",
      "properties": {
        "managedDiskProperties": {
          "$ref": "#/$defs/ManagedDiskProperties",
          "description": "Specifies the managed disk properties that can be set at the time of implicit creation of the disk."
        }
      }
    },
    "ApiEntityReference": {
      "type": "object",
      "description": "The API entity reference.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/..."
        }
      }
    },
    "AvailabilityPolicyDiskDelay": {
      "type": "string",
      "description": "Determines how to handle disks with slow I/O.",
      "enum": [
        "None",
        "AutomaticReattach"
      ],
      "x-ms-enum": {
        "name": "AvailabilityPolicyDiskDelay",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "Defaults to behavior without availability policy specified, which is VM restart upon slow disk I/O."
          },
          {
            "name": "AutomaticReattach",
            "value": "AutomaticReattach",
            "description": "Upon a disk I/O failure or slow response, try detaching then reattaching the disk."
          }
        ]
      }
    },
    "CachingTypes": {
      "type": "string",
      "description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage**",
      "enum": [
        "None",
        "ReadOnly",
        "ReadWrite"
      ],
      "x-ms-enum": {
        "name": "CachingTypes",
        "modelAsString": false
      }
    },
    "Common.OperatingSystemTypes": {
      "type": "string",
      "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**",
      "enum": [
        "Windows",
        "Linux"
      ],
      "x-ms-enum": {
        "name": "OperatingSystemTypes",
        "modelAsString": false
      }
    },
    "DataDisk": {
      "type": "object",
      "description": "Describes a data disk.",
      "properties": {
        "lun": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM."
        },
        "name": {
          "type": "string",
          "description": "The disk name."
        },
        "vhd": {
          "$ref": "#/$defs/VirtualHardDisk",
          "description": "The virtual hard disk."
        },
        "image": {
          "$ref": "#/$defs/VirtualHardDisk",
          "description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist."
        },
        "caching": {
          "$ref": "#/$defs/CachingTypes",
          "description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**"
        },
        "writeAcceleratorEnabled": {
          "type": "boolean",
          "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk."
        },
        "createOption": {
          "$ref": "#/$defs/DiskCreateOptionTypes",
          "description": "Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine data disk. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. **Empty:** This value is used when creating an empty data disk. **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point."
        },
        "diskSizeGB": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023."
        },
        "storageFaultDomainAlignment": {
          "$ref": "#/$defs/StorageFaultDomainAlignmentType",
          "description": "Specifies the storage fault domain alignment type for the disk."
        },
        "managedDisk": {
          "$ref": "#/$defs/ManagedDiskParameters",
          "description": "The managed disk parameters."
        },
        "sourceResource": {
          "$ref": "#/$defs/ApiEntityReference",
          "description": "The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk."
        },
        "toBeDetached": {
          "type": "boolean",
          "description": "Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset"
        },
        "diskIOPSReadWrite": {
          "type": "integer",
          "format": "int64",
          "description": "Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS."
        },
        "diskMBpsReadWrite": {
          "type": "integer",
          "format": "int64",
          "description": "Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS."
        },
        "detachOption": {
          "$ref": "#/$defs/DiskDetachOptionTypes",
          "description": "Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'."
        },
        "deleteOption": {
          "$ref": "#/$defs/DiskDeleteOptionTypes",
          "description": "Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**."
        }
      },
      "required": [
        "lun",
        "createOption"
      ]
    },
    "DiffDiskOptions": {
      "type": "string",
      "description": "Specifies the ephemeral disk option for operating system disk.",
      "enum": [
        "Local"
      ],
      "x-ms-enum": {
        "name": "DiffDiskOptions",
        "modelAsString": true,
        "values": [
          {
            "name": "Local",
            "value": "Local"
          }
        ]
      }
    },
    "DiffDiskPlacement": {
      "type": "string",
      "description": "Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e, cache disk, resource disk or nvme disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. Minimum api-version for NvmeDisk: 2024-03-01.",
      "enum": [
        "CacheDisk",
        "ResourceDisk",
        "NvmeDisk"
      ],
      "x-ms-enum": {
        "name": "DiffDiskPlacement",
        "modelAsString": true,
        "values": [
          {
            "name": "CacheDisk",
            "value": "CacheDisk"
          },
          {
            "name": "ResourceDisk",
            "value": "ResourceDisk"
          },
          {
            "name": "NvmeDisk",
            "value": "NvmeDisk"
          }
        ]
      }
    },
    "DiffDiskSettings": {
      "type": "object",
      "description": "Describes the parameters of ephemeral disk settings that can be specified for operating system disk. **Note:** The ephemeral disk settings can only be specified for managed disk.",
      "properties": {
        "option": {
          "$ref": "#/$defs/DiffDiskOptions",
          "description": "Specifies the ephemeral disk settings for operating system disk."
        },
        "placement": {
          "$ref": "#/$defs/DiffDiskPlacement",
          "description": "Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk,** **NvmeDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** or **NvmeDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version for NvmeDisk: 2024-03-01."
        },
        "enableFullCaching": {
          "type": "boolean",
          "description": "Specifies whether or not to enable full caching for this VM which will cache the OS disk locally on the host and make this VM more resilient to storage outages"
        }
      }
    },
    "DiskApiVersion": {
      "type": "string",
      "description": "Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD.",
      "enum": [
        "2025-01-02",
        "2026-03-02"
      ],
      "x-ms-enum": {
        "name": "DiskApiVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "2025-01-02",
            "value": "2025-01-02",
            "description": "The 2025-01-02 Disk RP API version."
          },
          {
            "name": "2026-03-02",
            "value": "2026-03-02",
            "description": "The 2026-03-02 Disk RP API version."
          }
        ]
      }
    },
    "DiskAvailabilityPolicy": {
      "type": "object",
      "description": "In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.",
      "properties": {
        "actionOnDiskDelay": {
          "$ref": "#/$defs/AvailabilityPolicyDiskDelay",
          "description": "Determines how to handle disks with slow I/O."
        }
      }
    },
    "DiskControllerTypes": {
      "type": "string",
      "description": "Specifies the disk controller type configured for the VM and VirtualMachineScaleSet. This property is only supported for virtual machines whose operating system disk and VM sku supports Generation 2 (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please check the HyperVGenerations capability returned as part of VM sku capabilities in the response of Microsoft.Compute SKUs api for the region contains V2 (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more information about Disk Controller Types supported please refer to https://aka.ms/azure-diskcontrollertypes.",
      "enum": [
        "SCSI",
        "NVMe"
      ],
      "x-ms-enum": {
        "name": "DiskControllerTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "SCSI",
            "value": "SCSI"
          },
          {
            "name": "NVMe",
            "value": "NVMe"
          }
        ]
      }
    },
    "DiskCreateOptionTypes": {
      "type": "string",
      "description": "Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. **Empty:** This value is used when creating an empty data disk. **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point.",
      "enum": [
        "FromImage",
        "Empty",
        "Attach",
        "Copy",
        "Restore"
      ],
      "x-ms-enum": {
        "name": "DiskCreateOptionTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "FromImage",
            "value": "FromImage"
          },
          {
            "name": "Empty",
            "value": "Empty"
          },
          {
            "name": "Attach",
            "value": "Attach"
          },
          {
            "name": "Copy",
            "value": "Copy"
          },
          {
            "name": "Restore",
            "value": "Restore"
          }
        ]
      }
    },
    "DiskDeleteOptionTypes": {
      "type": "string",
      "description": "Specifies the behavior of the managed disk when the VM gets deleted, for example whether the managed disk is deleted or detached. Supported values are: **Delete.** If this value is used, the managed disk is deleted when VM gets deleted. **Detach.** If this value is used, the managed disk is retained after VM gets deleted. Minimum api-version: 2021-03-01.",
      "enum": [
        "Delete",
        "Detach"
      ],
      "x-ms-enum": {
        "name": "DiskDeleteOptionTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Delete",
            "value": "Delete"
          },
          {
            "name": "Detach",
            "value": "Detach"
          }
        ]
      }
    },
    "DiskDetachOptionTypes": {
      "type": "string",
      "description": "Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.",
      "enum": [
        "ForceDetach"
      ],
      "x-ms-enum": {
        "name": "DiskDetachOptionTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "ForceDetach",
            "value": "ForceDetach"
          }
        ]
      }
    },
    "DiskEncryptionSetParameters": {
      "type": "object",
      "description": "Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.",
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "DiskEncryptionSettings": {
      "type": "object",
      "description": "Describes a Encryption Settings for a Disk",
      "properties": {
        "diskEncryptionKey": {
          "$ref": "#/$defs/KeyVaultSecretReference",
          "description": "Specifies the location of the disk encryption key, which is a Key Vault Secret."
        },
        "keyEncryptionKey": {
          "$ref": "#/$defs/KeyVaultKeyReference",
          "description": "Specifies the location of the key encryption key in Key Vault."
        },
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether disk encryption should be enabled on the virtual machine."
        }
      }
    },
    "ImageReference": {
      "type": "object",
      "description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.",
      "properties": {
        "publisher": {
          "type": "string",
          "description": "The image publisher."
        },
        "offer": {
          "type": "string",
          "description": "Specifies the offer of the platform image or marketplace image used to create the virtual machine."
        },
        "sku": {
          "type": "string",
          "description": "The image SKU."
        },
        "version": {
          "type": "string",
          "description": "Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input."
        },
        "exactVersion": {
          "type": "string",
          "description": "Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.",
          "readOnly": true
        },
        "sharedGalleryImageId": {
          "type": "string",
          "description": "Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call."
        },
        "communityGalleryImageId": {
          "type": "string",
          "description": "Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "KeyVaultKeyReference": {
      "type": "object",
      "description": "Describes a reference to Key Vault Key",
      "properties": {
        "keyUrl": {
          "type": "string",
          "description": "The URL referencing a key encryption key in Key Vault."
        },
        "sourceVault": {
          "$ref": "#/$defs/SubResource",
          "description": "The relative URL of the Key Vault containing the key."
        }
      },
      "required": [
        "keyUrl",
        "sourceVault"
      ]
    },
    "KeyVaultSecretReference": {
      "type": "object",
      "description": "Describes a reference to Key Vault Secret",
      "properties": {
        "secretUrl": {
          "type": "string",
          "description": "The URL referencing a secret in a Key Vault."
        },
        "sourceVault": {
          "$ref": "#/$defs/SubResource",
          "description": "The relative URL of the Key Vault containing the secret."
        }
      },
      "required": [
        "secretUrl",
        "sourceVault"
      ]
    },
    "ManagedDiskParameters": {
      "type": "object",
      "description": "The parameters of a managed disk.",
      "properties": {
        "storageAccountType": {
          "$ref": "#/$defs/StorageAccountTypes",
          "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk."
        },
        "diskEncryptionSet": {
          "$ref": "#/$defs/DiskEncryptionSetParameters",
          "description": "Specifies the customer managed disk encryption set resource id for the managed disk."
        },
        "securityProfile": {
          "$ref": "#/$defs/VMDiskSecurityProfile",
          "description": "Specifies the security profile for the managed disk."
        },
        "additionalDiskProperties": {
          "$ref": "#/$defs/AdditionalDiskProperties",
          "description": "Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ]
    },
    "ManagedDiskProperties": {
      "type": "object",
      "description": "Specifies the properties of a managed disk that can be set at the time of implicit creation of the disk.",
      "properties": {
        "tier": {
          "type": "string",
          "description": "Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks."
        },
        "burstingEnabled": {
          "type": "boolean",
          "description": "Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks."
        },
        "performancePlus": {
          "type": "boolean",
          "description": "Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled."
        },
        "optimizedForFrequentAttach": {
          "type": "boolean",
          "description": "Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine."
        },
        "availabilityPolicy": {
          "$ref": "#/$defs/DiskAvailabilityPolicy",
          "description": "In the case of an availability or connectivity issue with the disk, specify the behavior of your VM."
        },
        "maxShares": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.",
          "minimum": 1
        },
        "networkAccessPolicy": {
          "$ref": "#/$defs/NetworkAccessPolicy",
          "description": "Policy for accessing the disk via network."
        },
        "diskAccessId": {
          "type": "string",
          "description": "Azure resource Id of the DiskAccess resource for using private endpoints on disks."
        },
        "diskIOPSReadOnly": {
          "type": "integer",
          "format": "int64",
          "description": "The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes."
        },
        "diskMBpsReadOnly": {
          "type": "integer",
          "format": "int64",
          "description": "The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10."
        },
        "logicalSectorSize": {
          "type": "integer",
          "format": "int32",
          "description": "Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default."
        }
      }
    },
    "NetworkAccessPolicy": {
      "type": "string",
      "description": "Policy for accessing the disk via network.",
      "enum": [
        "AllowAll",
        "AllowPrivate",
        "DenyAll"
      ],
      "x-ms-enum": {
        "name": "NetworkAccessPolicy",
        "modelAsString": true,
        "values": [
          {
            "name": "AllowAll",
            "value": "AllowAll",
            "description": "The disk can be exported or uploaded from any network."
          },
          {
            "name": "AllowPrivate",
            "value": "AllowPrivate",
            "description": "The disk can be exported or uploaded using a DiskAccess resource's private endpoints."
          },
          {
            "name": "DenyAll",
            "value": "DenyAll",
            "description": "The disk cannot be exported."
          }
        ]
      }
    },
    "OSDisk": {
      "type": "object",
      "description": "Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).",
      "properties": {
        "osType": {
          "$ref": "#/$defs/Common.OperatingSystemTypes",
          "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**"
        },
        "encryptionSettings": {
          "$ref": "#/$defs/DiskEncryptionSettings",
          "description": "Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15."
        },
        "name": {
          "type": "string",
          "description": "The disk name."
        },
        "vhd": {
          "$ref": "#/$defs/VirtualHardDisk",
          "description": "The virtual hard disk."
        },
        "image": {
          "$ref": "#/$defs/VirtualHardDisk",
          "description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist."
        },
        "caching": {
          "$ref": "#/$defs/CachingTypes",
          "description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**"
        },
        "writeAcceleratorEnabled": {
          "type": "boolean",
          "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk."
        },
        "diffDiskSettings": {
          "$ref": "#/$defs/DiffDiskSettings",
          "description": "Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine."
        },
        "createOption": {
          "$ref": "#/$defs/DiskCreateOptionTypes",
          "description": "Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described."
        },
        "diskSizeGB": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023."
        },
        "storageFaultDomainAlignment": {
          "$ref": "#/$defs/StorageFaultDomainAlignmentType",
          "description": "Specifies the storage fault domain alignment type for the disk."
        },
        "managedDisk": {
          "$ref": "#/$defs/ManagedDiskParameters",
          "description": "The managed disk parameters."
        },
        "deleteOption": {
          "$ref": "#/$defs/DiskDeleteOptionTypes",
          "description": "Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk."
        }
      },
      "required": [
        "createOption"
      ]
    },
    "SecurityEncryptionTypes": {
      "type": "string",
      "description": "Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. **Note:** It can be set for only Confidential VMs.",
      "enum": [
        "VMGuestStateOnly",
        "DiskWithVMGuestState",
        "NonPersistedTPM"
      ],
      "x-ms-enum": {
        "name": "SecurityEncryptionTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "VMGuestStateOnly",
            "value": "VMGuestStateOnly"
          },
          {
            "name": "DiskWithVMGuestState",
            "value": "DiskWithVMGuestState"
          },
          {
            "name": "NonPersistedTPM",
            "value": "NonPersistedTPM"
          }
        ]
      }
    },
    "StorageAccountTypes": {
      "type": "string",
      "description": "Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS can only be used with data disks. It cannot be used with OS Disk. Standard_LRS uses Standard HDD. StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. Premium_ZRS uses Premium SSD zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant storage. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for Linux Virtual Machines, refer to https://docs.microsoft.com/azure/virtual-machines/linux/disks-types",
      "enum": [
        "Standard_LRS",
        "Premium_LRS",
        "StandardSSD_LRS",
        "UltraSSD_LRS",
        "Premium_ZRS",
        "StandardSSD_ZRS",
        "PremiumV2_LRS"
      ],
      "x-ms-enum": {
        "name": "StorageAccountTypes",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard_LRS",
            "value": "Standard_LRS"
          },
          {
            "name": "Premium_LRS",
            "value": "Premium_LRS"
          },
          {
            "name": "StandardSSD_LRS",
            "value": "StandardSSD_LRS"
          },
          {
            "name": "UltraSSD_LRS",
            "value": "UltraSSD_LRS"
          },
          {
            "name": "Premium_ZRS",
            "value": "Premium_ZRS"
          },
          {
            "name": "StandardSSD_ZRS",
            "value": "StandardSSD_ZRS"
          },
          {
            "name": "PremiumV2_LRS",
            "value": "PremiumV2_LRS"
          }
        ]
      }
    },
    "StorageFaultDomainAlignmentType": {
      "type": "string",
      "description": "Specifies the storage fault domain alignment type for the disk.",
      "enum": [
        "Aligned",
        "BestEffortAligned"
      ],
      "x-ms-enum": {
        "name": "StorageFaultDomainAlignmentType",
        "modelAsString": true,
        "values": [
          {
            "name": "Aligned",
            "value": "Aligned",
            "description": "Disk Storage Fault Domains are mapped to Compute Fault Domains. Deployment fails if disk does not support enough Fault Domains."
          },
          {
            "name": "BestEffortAligned",
            "value": "BestEffortAligned",
            "description": "Attempt to map Storage Fault Domains to Compute Fault Domains. Disks are unaligned if disk does not support enough Fault Domains."
          }
        ]
      }
    },
    "SubResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource Id"
        }
      }
    },
    "VMDiskSecurityProfile": {
      "type": "object",
      "description": "Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs.",
      "properties": {
        "securityEncryptionType": {
          "$ref": "#/$defs/SecurityEncryptionTypes",
          "description": "Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. **Note:** It can be set for only Confidential VMs."
        },
        "diskEncryptionSet": {
          "$ref": "#/$defs/DiskEncryptionSetParameters",
          "description": "Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob."
        }
      }
    },
    "VirtualHardDisk": {
      "type": "object",
      "description": "Describes the uri of a disk.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Specifies the virtual hard disk's uri."
        }
      }
    }
  }
}