Package version:

Interface ImageOSDisk

Describes an Operating System disk.

interface ImageOSDisk {
    blobUri?: string;
    caching?: CachingTypes;
    diskEncryptionSet?: DiskEncryptionSetParameters;
    diskSizeGB?: number;
    managedDisk?: SubResource;
    osState: OperatingSystemStateTypes;
    osType: OperatingSystemTypes;
    snapshot?: SubResource;
    storageAccountType?: string;
}

Hierarchy (view full)

Properties

blobUri?: string

The Virtual Hard Disk.

caching?: CachingTypes

Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.

diskEncryptionSet?: DiskEncryptionSetParameters

Specifies the customer managed disk encryption set resource id for the managed image disk.

diskSizeGB?: number

Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB.

managedDisk?: SubResource

The managedDisk.

The OS State. For managed images, use Generalized.

This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. Possible values are: Windows, Linux.

snapshot?: SubResource

The snapshot.

storageAccountType?: string

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.