共用方式為


ImageDataDisk 類別

描述資料磁片。

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.compute.v2021_11_01.models._models_py3.ImageDisk
ImageDataDisk

建構函式

ImageDataDisk(*, lun: int, 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, disk_encryption_set: _models.DiskEncryptionSetParameters | None = None, **kwargs: Any)

Keyword-Only Parameters

snapshot
SubResource

快照集。

managed_disk
SubResource

managedDisk。

blob_uri
str

虛擬硬碟。

caching
strCachingTypes

指定快取需求。 <br>``<br>可能的值為: <br>``<br><br>``<br>ReadOnly<br>``<br>ReadWrite<br>``<br> 預設值:標準儲存體的 None。進階儲存體的 ReadOnly。 已知值為:「None」、「ReadOnly」 和 「ReadWrite」。

disk_size_gb
int

指定以 GB 為單位的空白資料磁片大小。 此元素可用來覆寫虛擬機器映射中的磁片名稱。 <br>``<br> 此值不能大於 1023 GB。

storage_account_type
strStorageAccountTypes

指定受控磁片的儲存體帳戶類型。 注意:UltraSSD_LRS只能與資料磁片搭配使用,因此無法與 OS 磁片搭配使用。 已知值為:「Standard_LRS」、「Premium_LRS」、「StandardSSD_LRS」、「UltraSSD_LRS」、「Premium_ZRS」 和 「StandardSSD_ZRS」。

disk_encryption_set
DiskEncryptionSetParameters

指定受控映射磁片的客戶受控磁片加密集資源識別碼。

lun
int

指定資料磁片的邏輯單元編號。 這個值是用來識別 VM 內的資料磁片,因此對於連結至 VM 的每個資料磁片都必須是唯一的。 必要。

變數

snapshot
SubResource

快照集。

managed_disk
SubResource

managedDisk。

blob_uri
str

虛擬硬碟。

caching
strCachingTypes

指定快取需求。 <br>``<br>可能的值為: <br>``<br><br>``<br>ReadOnly<br>``<br>ReadWrite<br>``<br> 預設值:標準儲存體的 None。進階儲存體的 ReadOnly。 已知值為:「None」、「ReadOnly」 和 「ReadWrite」。

disk_size_gb
int

指定以 GB 為單位的空白資料磁片大小。 此元素可用來覆寫虛擬機器映射中的磁片名稱。 <br>``<br> 此值不能大於 1023 GB。

storage_account_type
strStorageAccountTypes

指定受控磁片的儲存體帳戶類型。 注意:UltraSSD_LRS只能與資料磁片搭配使用,因此無法與 OS 磁片搭配使用。 已知值為:「Standard_LRS」、「Premium_LRS」、「StandardSSD_LRS」、「UltraSSD_LRS」、「Premium_ZRS」 和 「StandardSSD_ZRS」。

disk_encryption_set
DiskEncryptionSetParameters

指定受控映射磁片的客戶受控磁片加密集資源識別碼。

lun
int

指定資料磁片的邏輯單元編號。 這個值是用來識別 VM 內的資料磁片,因此對於連結至 VM 的每個資料磁片都必須是唯一的。 必要。