ImageOSDisk Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ImageOSDisk() |
Initializes a new instance of the ImageOSDisk class. |
ImageOSDisk(OperatingSystemTypes, OperatingSystemStateTypes, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, String, DiskEncryptionSetParameters) |
Initializes a new instance of the ImageOSDisk class. |
ImageOSDisk()
Initializes a new instance of the ImageOSDisk class.
public ImageOSDisk ();
Public Sub New ()
Applies to
ImageOSDisk(OperatingSystemTypes, OperatingSystemStateTypes, SubResource, SubResource, String, Nullable<CachingTypes>, Nullable<Int32>, String, DiskEncryptionSetParameters)
Initializes a new instance of the ImageOSDisk class.
public ImageOSDisk (Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes osType, Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes osState, Microsoft.Azure.Management.Compute.Models.SubResource snapshot = default, Microsoft.Azure.Management.Compute.Models.SubResource managedDisk = default, string blobUri = default, Microsoft.Azure.Management.Compute.Models.CachingTypes? caching = default, int? diskSizeGB = default, string storageAccountType = default, Microsoft.Azure.Management.Compute.Models.DiskEncryptionSetParameters diskEncryptionSet = default);
new Microsoft.Azure.Management.Compute.Models.ImageOSDisk : Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes * Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * string * Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> * Nullable<int> * string * Microsoft.Azure.Management.Compute.Models.DiskEncryptionSetParameters -> Microsoft.Azure.Management.Compute.Models.ImageOSDisk
Public Sub New (osType As OperatingSystemTypes, osState As OperatingSystemStateTypes, Optional snapshot As SubResource = Nothing, Optional managedDisk As SubResource = Nothing, Optional blobUri As String = Nothing, Optional caching As Nullable(Of CachingTypes) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional storageAccountType As String = Nothing, Optional diskEncryptionSet As DiskEncryptionSetParameters = Nothing)
Parameters
- osType
- OperatingSystemTypes
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.. Possible values include: 'Windows', 'Linux'
- osState
- OperatingSystemStateTypes
The OS State. For managed images, use Generalized. Possible values include: 'Generalized', 'Specialized'
- snapshot
- SubResource
The snapshot.
- managedDisk
- SubResource
The managedDisk.
- blobUri
- String
The Virtual Hard Disk.
- caching
- Nullable<CachingTypes>
Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
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.
- 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. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS', 'PremiumV2_LRS'
- diskEncryptionSet
- DiskEncryptionSetParameters
Specifies the customer managed disk encryption set resource id for the managed image disk.
Applies to
Azure SDK for .NET