Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable-AzureRmVmssDiskEncryption fails if there is any other extension other than ‘AzureDiskEncryption’ extension on VMSS #5038

Closed
v-viban opened this issue Nov 28, 2017 · 3 comments · Fixed by #9523
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute - VMSS Service Attention This issue is responsible by Azure service team.

Comments

@v-viban
Copy link

v-viban commented Nov 28, 2017

Cmdlet(s)

Disable-AzureRmVmssDiskEncryption

PowerShell Version

Instructions: to get PowerShell version, type $PSVersionTable and look for the value associated with PSVersion

PSVersion            - 5.1.16299.15

Module Version

OS Version

BuildVersion         - 10.0.16299.15  

Description

Disable-AzureRmVmssDiskEncryption fails if there is any other extension other than ‘AzureDiskEncryption’ extension on VMSS (Windows OS)

Debug Output

Instructions: to get Debug Output, set $DebugPreference="Continue" and then execute the cmdlet or script causing the issue
Also debug log file attached here.
DisableVMSSDELogs.txt

PS D:\>>> Disable-AzureRmVmssDiskEncryption -ResourceGroupName 'VMMSEnableDETestRG' -VMScaleSetName 'nt1vm' -Debug -Verbose *>&1 | foreach-object {$_.ToString()} | Out-File 'DisableDELogs.txt' 
Disable-AzureRmVmssDiskEncryption : Extension, AzureDiskEncryption,  is not installed in the VM Scale Set.
At line:1 char:1
+ Disable-AzureRmVmssDiskEncryption -ResourceGroupName 'VMMSEnableDETes ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Disable-AzureRmVmssDiskEncryption], ArgumentException
    + FullyQualifiedErrorId : InvalidArgument,Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.RemoveAzureVmssDiskEncryptionCommand

Script/Steps for Reproduction

  1. Deploy Windows Cluster to Azure
  2. Enable VMSS Disk Encryiption using Set-AzureRmVmssDiskEncryptionExtension
  3. Wait for completion
  4. Verify if disk encryption enables for OS volume
  5. Now to try disable disk encryption using Disable-AzureRmVmssDiskEncryption
    it says - Disable-AzureRmVmssDiskEncryption : Extension, AzureDiskEncryption, is not installed in the VM Scale Set.
    It seems it didn't work if there is any other extension other than ‘AzureDiskEncryption’ extension on VMSS.
@v-viban
Copy link
Author

v-viban commented Nov 28, 2017

Please assign this to @hyonholee
Thanks

@cormacpayne
Copy link
Member

@ejarvi Hey Eric, would you mind taking a look at this issue?

@ejarvi
Copy link
Contributor

ejarvi commented Jul 6, 2018

investigating

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
@mjconnection mjconnection added bug This issue requires a change to an existing behavior in the product in order to be resolved. and removed Compute labels Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute - VMSS Service Attention This issue is responsible by Azure service team.
Projects
None yet
6 participants