你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ImageOSDisk Class
Describes an Operating System disk.
All required parameters must be populated in order to send to server.
Constructor
ImageOSDisk(*, os_type: str | _models.OperatingSystemTypes, os_state: str | _models.OperatingSystemStateTypes, snapshot: _models.SubResource | None = None, managed_disk: _models.SubResource | None = None, blob_uri: str | None = None, caching: str | _models.CachingTypes | None = None, disk_size_gb: int | None = None, storage_account_type: str | _models.StorageAccountTypes | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
os_type
|
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. |
os_state
|
The OS State. Required. Known values are: "Generalized" and "Specialized". |
snapshot
|
The snapshot. Default value: None
|
managed_disk
|
The managedDisk. Default value: None
|
blob_uri
|
The Virtual Hard Disk. Default value: None
|
caching
|
str or
CachingTypes
Specifies the caching requirements. Default value: None
|
disk_size_gb
|
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. Default value: None
|
storage_account_type
|
Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: "Standard_LRS" and "Premium_LRS". Default value: None
|
Variables
Name | Description |
---|---|
os_type
|
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. |
os_state
|
The OS State. Required. Known values are: "Generalized" and "Specialized". |
snapshot
|
The snapshot. |
managed_disk
|
The managedDisk. |
blob_uri
|
The Virtual Hard Disk. |
caching
|
str or
CachingTypes
Specifies the caching requirements. |
disk_size_gb
|
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. |
storage_account_type
|
Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: "Standard_LRS" and "Premium_LRS". |