语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmBatchModelFactory.BatchDiskEncryptionConfiguration Method

Definition

The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Virtual Machine Image or Azure Compute Gallery Image.

public static Azure.ResourceManager.Batch.Models.BatchDiskEncryptionConfiguration BatchDiskEncryptionConfiguration(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Batch.Models.BatchDiskEncryptionTarget> targets = default, Azure.ResourceManager.Batch.Models.BatchDiskCustomerManagedKey customerManagedKey = default);
static member BatchDiskEncryptionConfiguration : seq<Azure.ResourceManager.Batch.Models.BatchDiskEncryptionTarget> * Azure.ResourceManager.Batch.Models.BatchDiskCustomerManagedKey -> Azure.ResourceManager.Batch.Models.BatchDiskEncryptionConfiguration
Public Shared Function BatchDiskEncryptionConfiguration (Optional targets As IEnumerable(Of BatchDiskEncryptionTarget) = Nothing, Optional customerManagedKey As BatchDiskCustomerManagedKey = Nothing) As BatchDiskEncryptionConfiguration

Parameters

targets
IEnumerable<BatchDiskEncryptionTarget>

On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.

customerManagedKey
BatchDiskCustomerManagedKey

Customer Managed Key will encrypt OS Disk by EncryptionAtRest, and by default we will encrypt the data disk as well. It can be used only when the pool is configured with an identity and OsDisk is set as one of the targets of DiskEncryption.

Returns

A new BatchDiskEncryptionConfiguration instance for mocking.

Applies to