ArmComputeModelFactory.DiskEncryption Method

Definition

public static Azure.ResourceManager.Compute.Models.DiskEncryption DiskEncryption(Azure.Core.ResourceIdentifier diskEncryptionSetId = default, Azure.ResourceManager.Compute.Models.ComputeEncryptionType? encryptionType = default);
static member DiskEncryption : Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.Compute.Models.ComputeEncryptionType> -> Azure.ResourceManager.Compute.Models.DiskEncryption
Public Shared Function DiskEncryption (Optional diskEncryptionSetId As ResourceIdentifier = Nothing, Optional encryptionType As Nullable(Of ComputeEncryptionType) = Nothing) As DiskEncryption

Parameters

diskEncryptionSetId
ResourceIdentifier

ResourceId of the disk encryption set to use for enabling encryption at rest.

encryptionType
Nullable<ComputeEncryptionType>

The type of key used to encrypt the data of the disk.

Returns

A new DiskEncryption instance for mocking.

Applies to