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, 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 = null);
abstract member EnableAsync : Microsoft.Azure.Management.Compute.Fluent.LinuxVMDiskEncryptionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor>

Parameters

encryptionSettings
LinuxVMDiskEncryptionConfiguration

Encryption settings for windows virtual machine.

cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<IDiskVolumeEncryptionMonitor>

Remarks

(Beta: This functionality is in preview and as such is subject to change in non-backwards compatible ways in future releases, including removal, regardless of any compatibility expectations set by the containing library version number.).

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 = null);
abstract member EnableAsync : Microsoft.Azure.Management.Compute.Fluent.WindowsVMDiskEncryptionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor>

Parameters

encryptionSettings
WindowsVMDiskEncryptionConfiguration

Encryption settings for windows virtual machine.

cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<IDiskVolumeEncryptionMonitor>

Remarks

(Beta: This functionality is in preview and as such is subject to change in non-backwards compatible ways in future releases, including removal, regardless of any compatibility expectations set by the containing library version number.).

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 = null);
abstract member EnableAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IDiskVolumeEncryptionMonitor>

Parameters

keyVaultId
System.String

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

aadClientId
System.String

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

aadSecret
System.String

Client secret corresponding to the aadClientId.

cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<IDiskVolumeEncryptionMonitor>

Remarks

(Beta: This functionality is in preview and as such is subject to change in non-backwards compatible ways in future releases, including removal, regardless of any compatibility expectations set by the containing library version number.).

Applies to