Share via


IVirtualMachineEncryption.EnableAsync Method

Definition

Overloads

EnableAsync(LinuxVMDiskEncryptionConfiguration, CancellationToken)

Enable encryption for Linux virtual machine disks.

EnableAsync(WindowsVMDiskEncryptionConfiguration, CancellationToken)

Enable encryption for Windows virtual machine disks.

EnableAsync(String, CancellationToken)

Enable encryption for virtual machine disks.

EnableAsync(String, String, String, CancellationToken)

Enable encryption for virtual machine disks.

EnableAsync(LinuxVMDiskEncryptionConfiguration, CancellationToken)

Enable encryption for Linux virtual machine disks.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor> EnableAsync (Microsoft.Azure.Management.Compute.Fluent.LinuxVMDiskEncryptionConfiguration encryptionSettings, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableAsync : Microsoft.Azure.Management.Compute.Fluent.LinuxVMDiskEncryptionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor>
Public Function EnableAsync (encryptionSettings As LinuxVMDiskEncryptionConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDiskVolumeEncryptionMonitor)

Parameters

encryptionSettings
LinuxVMDiskEncryptionConfiguration

Encryption settings for windows virtual machine.

cancellationToken
CancellationToken

Returns

Applies to

EnableAsync(WindowsVMDiskEncryptionConfiguration, CancellationToken)

Enable encryption for Windows virtual machine disks.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor> EnableAsync (Microsoft.Azure.Management.Compute.Fluent.WindowsVMDiskEncryptionConfiguration encryptionSettings, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableAsync : Microsoft.Azure.Management.Compute.Fluent.WindowsVMDiskEncryptionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor>
Public Function EnableAsync (encryptionSettings As WindowsVMDiskEncryptionConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDiskVolumeEncryptionMonitor)

Parameters

encryptionSettings
WindowsVMDiskEncryptionConfiguration

Encryption settings for windows virtual machine.

cancellationToken
CancellationToken

Returns

Applies to

EnableAsync(String, CancellationToken)

Enable encryption for virtual machine disks.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor> EnableAsync (string keyVaultId, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor>
Public Function EnableAsync (keyVaultId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDiskVolumeEncryptionMonitor)

Parameters

keyVaultId
String

Resource ID of the key vault to store the disk encryption key.

cancellationToken
CancellationToken

Returns

Applies to

EnableAsync(String, String, String, CancellationToken)

Enable encryption for virtual machine disks.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor> EnableAsync (string keyVaultId, string aadClientId, string aadSecret, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor>
Public Function EnableAsync (keyVaultId As String, aadClientId As String, aadSecret As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDiskVolumeEncryptionMonitor)

Parameters

keyVaultId
String

Resource ID of the key vault to store the disk encryption key.

aadClientId
String

Client ID of an AAD application which has permission to the key vault.

aadSecret
String

Client secret corresponding to the aadClientId.

cancellationToken
CancellationToken

Returns

Applies to