< Back
Remove-AzureRmVMDiskEncryptionExtension
Post
NAME Remove-AzureRmVMDiskEncryptionExtension
SYNOPSIS
Removes the disk encryption extension from a virtual machine.
SYNTAX
Remove-AzureRmVMDiskEncryptionExtension [-ResourceGroupName] <String> [-VMName] <String> [[-Name] <String>] [-DefaultProfile
<IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmVMDiskEncryptionExtension cmdlet removes the disk encryption extension from a virtual machine. If no extension name is
specified, this cmdlet removes the extension with default name AzureDiskEncryption for virtual machines that run the Windows operating system or
AzureDiskEncryptionForLinux for Linux based virtual machines. This cmdlet does not disable encryption on the virtual machine. It removes the
extension and the associated extension configuration from the virtual machine.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Forces the command to run without asking for user confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the Azure Resource Manager resource that represents the extension. The Set-AzureRmVMDiskEncryptionExtension cmdlet sets
this name to AzureDiskEncryption for virtual machines that run the Windows operating system and AzureDiskEncryptionForLinux for Linux virtual
machines. Specify this parameter only if you changed the default name in the Set-AzureRmVMDiskEncryptionExtension cmdlet or used a different
resource name in a Resource Manager template.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group for the virtual machine.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VMName <String>
Specifies the name of the virtual machine.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse
NOTES
Example 1: Remove the disk encryption extension from a virtual machine.
PS C:\\> Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName "MyResourceGroup" -VMName "MyTestVM"
This command removes the extension with default name AzureDiskEncryption for a virtual machine that runs the Windows operating system or
AzureDiskEncryptionForLinux for Linux based virtual machine named MyTestVM.
Example 2: Remove a specific disk encryption extension from a virtual machine.
PS C:\\> Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName "MyResourceGroup" -VMName "MyTestVM" -Name "MyDiskEncryptionExtension"
This command removes the encryption extension named MyDiskEncryptionExtension from the virtual machine named MyTestVM.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... nextension
Get-AzureRmVMDiskEncryptionStatus
Set-AzureRmVMDiskEncryptionExtension
SYNOPSIS
Removes the disk encryption extension from a virtual machine.
SYNTAX
Remove-AzureRmVMDiskEncryptionExtension [-ResourceGroupName] <String> [-VMName] <String> [[-Name] <String>] [-DefaultProfile
<IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmVMDiskEncryptionExtension cmdlet removes the disk encryption extension from a virtual machine. If no extension name is
specified, this cmdlet removes the extension with default name AzureDiskEncryption for virtual machines that run the Windows operating system or
AzureDiskEncryptionForLinux for Linux based virtual machines. This cmdlet does not disable encryption on the virtual machine. It removes the
extension and the associated extension configuration from the virtual machine.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Forces the command to run without asking for user confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the Azure Resource Manager resource that represents the extension. The Set-AzureRmVMDiskEncryptionExtension cmdlet sets
this name to AzureDiskEncryption for virtual machines that run the Windows operating system and AzureDiskEncryptionForLinux for Linux virtual
machines. Specify this parameter only if you changed the default name in the Set-AzureRmVMDiskEncryptionExtension cmdlet or used a different
resource name in a Resource Manager template.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group for the virtual machine.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VMName <String>
Specifies the name of the virtual machine.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse
NOTES
Example 1: Remove the disk encryption extension from a virtual machine.
PS C:\\> Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName "MyResourceGroup" -VMName "MyTestVM"
This command removes the extension with default name AzureDiskEncryption for a virtual machine that runs the Windows operating system or
AzureDiskEncryptionForLinux for Linux based virtual machine named MyTestVM.
Example 2: Remove a specific disk encryption extension from a virtual machine.
PS C:\\> Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName "MyResourceGroup" -VMName "MyTestVM" -Name "MyDiskEncryptionExtension"
This command removes the encryption extension named MyDiskEncryptionExtension from the virtual machine named MyTestVM.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... nextension
Get-AzureRmVMDiskEncryptionStatus
Set-AzureRmVMDiskEncryptionExtension