ComputeBatchModelFactory.DiskEncryptionConfiguration Method
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.
The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Azure Compute Gallery Image.
public static Azure.Compute.Batch.DiskEncryptionConfiguration DiskEncryptionConfiguration(Azure.Compute.Batch.DiskCustomerManagedKey customerManagedKey = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.DiskEncryptionTarget> targets = default);
static member DiskEncryptionConfiguration : Azure.Compute.Batch.DiskCustomerManagedKey * seq<Azure.Compute.Batch.DiskEncryptionTarget> -> Azure.Compute.Batch.DiskEncryptionConfiguration
Public Shared Function DiskEncryptionConfiguration (Optional customerManagedKey As DiskCustomerManagedKey = Nothing, Optional targets As IEnumerable(Of DiskEncryptionTarget) = Nothing) As DiskEncryptionConfiguration
Parameters
- customerManagedKey
- DiskCustomerManagedKey
The Customer Managed Key reference to encrypt the OS Disk. 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.
- targets
- IEnumerable<DiskEncryptionTarget>
The list of disk targets Batch Service will encrypt on the compute node. The list of disk targets Batch Service will encrypt on the compute node.
Returns
A new DiskEncryptionConfiguration instance for mocking.