The virtualHardDisks resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.AzureStackHCI/virtualHardDisks resource, add the following JSON to your template.
{
"type": "Microsoft.AzureStackHCI/virtualHardDisks",
"apiVersion": "2023-09-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"extendedLocation": {
"name": "string",
"type": "CustomLocation"
},
"properties": {
"blockSizeBytes": "int",
"containerId": "string",
"diskFileFormat": "string",
"diskSizeGB": "int",
"dynamic": "bool",
"hyperVGeneration": "string",
"logicalSectorBytes": "int",
"physicalSectorBytes": "int"
}
}
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.AzureStackHCI/virtualHardDisks' |
apiVersion | The resource api version | '2023-09-01-preview' |
name | The resource name | string (required) |
location | The geo-location where the resource lives | string (required) |
tags | Resource tags. | Dictionary of tag names and values. See Tags in templates |
extendedLocation | The extendedLocation of the resource. | ExtendedLocation |
properties | Properties under the virtual hard disk resource | VirtualHardDiskProperties |
Name | Description | Value |
---|---|---|
name | The name of the extended location. | string |
type | The type of the extended location. | 'CustomLocation' |
Name | Description | Value |
---|---|---|
blockSizeBytes | int | |
containerId | Storage ContainerID of the storage container to be used for VHD | string |
diskFileFormat | The format of the actual VHD file [vhd, vhdx] | 'vhd' 'vhdx' |
diskSizeGB | Size of the disk in GB | int |
dynamic | Boolean for enabling dynamic sizing on the virtual hard disk | bool |
hyperVGeneration | The hypervisor generation of the Virtual Machine [V1, V2] | 'V1' 'V2' |
logicalSectorBytes | int | |
physicalSectorBytes | int |