Class VirtualMachineStorageOsDisk
Inheritance
Inherited Members
Namespace: Pulumi.Azure.Compute.Outputs
Assembly: Pulumi.Azure.dll
Syntax
public sealed class VirtualMachineStorageOsDisk
Fields
View SourceCaching
Specifies the caching requirements for the OS Disk. Possible values include None, ReadOnly and ReadWrite.
Declaration
public readonly string Caching
Field Value
| Type | Description |
|---|---|
| System.String |
CreateOption
Specifies how the OS Disk should be created. Possible values are Attach (managed disks only) and FromImage.
Declaration
public readonly string CreateOption
Field Value
| Type | Description |
|---|---|
| System.String |
DiskSizeGb
Specifies the size of the OS Disk in gigabytes.
Declaration
public readonly int? DiskSizeGb
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
ImageUri
Specifies the Image URI in the format publisherName:offer:skus:version. This field can also specify the VHD uri of a custom VM image to clone. When cloning a Custom (Unmanaged) Disk Image the os_type field must be set.
Declaration
public readonly string ImageUri
Field Value
| Type | Description |
|---|---|
| System.String |
ManagedDiskId
Specifies the ID of an existing Managed Disk which should be attached as the OS Disk of this Virtual Machine. If this is set then the create_option must be set to Attach.
Declaration
public readonly string ManagedDiskId
Field Value
| Type | Description |
|---|---|
| System.String |
ManagedDiskType
Specifies the type of Managed Disk which should be created. Possible values are Standard_LRS, StandardSSD_LRS or Premium_LRS.
Declaration
public readonly string ManagedDiskType
Field Value
| Type | Description |
|---|---|
| System.String |
Name
Specifies the name of the OS Disk.
Declaration
public readonly string Name
Field Value
| Type | Description |
|---|---|
| System.String |
OsType
Specifies the Operating System on the OS Disk. Possible values are Linux and Windows.
Declaration
public readonly string OsType
Field Value
| Type | Description |
|---|---|
| System.String |
VhdUri
Specifies the URI of the VHD file backing this Unmanaged OS Disk. Changing this forces a new resource to be created.
Declaration
public readonly string VhdUri
Field Value
| Type | Description |
|---|---|
| System.String |
WriteAcceleratorEnabled
Specifies if Write Accelerator is enabled on the disk. This can only be enabled on Premium_LRS managed disks with no caching and M-Series VMs. Defaults to false.
Declaration
public readonly bool? WriteAcceleratorEnabled
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |