Skip to content

Commit 5750bc6

Browse files
committed
Use the extension type instead of the name when disabling vmss disk encryption
1 parent d47d4e3 commit 5750bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compute/Compute/Extension/VmssDiskEncryption/DisableAzureVmssDiskEncryption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public override void ExecuteCmdlet()
127127
bool extensionFound = false;
128128
foreach (var ext in vmss.VirtualMachineProfile.ExtensionProfile.Extensions)
129129
{
130-
if (ext.Name.Equals(this.ExtensionName))
130+
if (ext.Type.Equals(this.ExtensionName))
131131
{
132132
ext.Settings = GetDisalbeEncryptionSetting();
133133
ext.ProtectedSettings = null;

0 commit comments

Comments
 (0)