Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.compute; import com.microsoft.azure.AzureEnvironment; import com.microsoft.azure.management.apigeneration.LangDefinition;
Type representing encryption settings to be applied to a Linux virtual machine.
/** * Type representing encryption settings to be applied to a Linux virtual machine. */
@LangDefinition public class LinuxVMDiskEncryptionConfiguration extends VirtualMachineEncryptionConfiguration<LinuxVMDiskEncryptionConfiguration> {
Creates LinuxVMDiskEncryptionSettings.
Params:
  • keyVaultId – the resource ID of the KeyVault to store the disk encryption key
  • aadClientId – client ID of an AAD application which has permission to the KeyVault
  • aadSecret – client secret corresponding to the client ID
/** * Creates LinuxVMDiskEncryptionSettings. * * @param keyVaultId the resource ID of the KeyVault to store the disk encryption key * @param aadClientId client ID of an AAD application which has permission to the KeyVault * @param aadSecret client secret corresponding to the client ID */
public LinuxVMDiskEncryptionConfiguration(String keyVaultId, String aadClientId, String aadSecret) { super(keyVaultId, null, aadClientId, aadSecret, null); }
Creates LinuxVMDiskEncryptionSettings.
Params:
  • keyVaultId – the resource ID of the KeyVault to store the disk encryption key
  • vaultUri – URI of the key vault data-plane endpoint
  • aadClientId – client ID of an AAD application which has permission to the KeyVault
  • aadSecret – client secret corresponding to the client ID
/** * Creates LinuxVMDiskEncryptionSettings. * * @param keyVaultId the resource ID of the KeyVault to store the disk encryption key * @param vaultUri URI of the key vault data-plane endpoint * @param aadClientId client ID of an AAD application which has permission to the KeyVault * @param aadSecret client secret corresponding to the client ID */
public LinuxVMDiskEncryptionConfiguration(String keyVaultId, String vaultUri, String aadClientId, String aadSecret) { super(keyVaultId, vaultUri, aadClientId, aadSecret, null); }
Creates LinuxVMDiskEncryptionSettings.
Params:
  • keyVaultId – the resource ID of the KeyVault to store the disk encryption key
  • aadClientId – client ID of an AAD application which has permission to the KeyVault
  • aadSecret – client secret corresponding to the client ID
  • azureEnvironment – Azure environment
/** * Creates LinuxVMDiskEncryptionSettings. * * @param keyVaultId the resource ID of the KeyVault to store the disk encryption key * @param aadClientId client ID of an AAD application which has permission to the KeyVault * @param aadSecret client secret corresponding to the client ID * @param azureEnvironment Azure environment */
public LinuxVMDiskEncryptionConfiguration(String keyVaultId, String aadClientId, String aadSecret, AzureEnvironment azureEnvironment) { super(keyVaultId, null, aadClientId, aadSecret, azureEnvironment); }
Creates LinuxVMDiskEncryptionSettings.
Params:
  • keyVaultId – the resource ID of the KeyVault to store the disk encryption key
/** * Creates LinuxVMDiskEncryptionSettings. * * @param keyVaultId the resource ID of the KeyVault to store the disk encryption key */
public LinuxVMDiskEncryptionConfiguration(String keyVaultId) { super(keyVaultId, null, null); }
Creates LinuxVMDiskEncryptionSettings.
Params:
  • keyVaultId – the resource ID of the KeyVault to store the disk encryption key
  • vaultUri – URI of the key vault data-plane endpoint
/** * Creates LinuxVMDiskEncryptionSettings. * * @param keyVaultId the resource ID of the KeyVault to store the disk encryption key * @param vaultUri URI of the key vault data-plane endpoint */
public LinuxVMDiskEncryptionConfiguration(String keyVaultId, String vaultUri) { super(keyVaultId, vaultUri, null); }
Creates LinuxVMDiskEncryptionSettings.
Params:
  • keyVaultId – the resource ID of the KeyVault to store the disk encryption key
  • azureEnvironment – Azure environment
/** * Creates LinuxVMDiskEncryptionSettings. * * @param keyVaultId the resource ID of the KeyVault to store the disk encryption key * @param azureEnvironment Azure environment */
public LinuxVMDiskEncryptionConfiguration(String keyVaultId, AzureEnvironment azureEnvironment) { super(keyVaultId, null, azureEnvironment); } @Override public OperatingSystemTypes osType() { return OperatingSystemTypes.LINUX; }
Specifies the pass phrase for encrypting Linux OS or data disks.
Params:
  • passPhrase – the pass phrase
Returns:LinuxVMDiskEncryptionSettings
/** * Specifies the pass phrase for encrypting Linux OS or data disks. * * @param passPhrase the pass phrase * @return LinuxVMDiskEncryptionSettings */
public LinuxVMDiskEncryptionConfiguration withPassPhrase(String passPhrase) { this.passPhrase = passPhrase; return this; } }