Skip to content

Commit 2244bc2

Browse files
authored
Merge pull request #9523 from danwkennedy/master
Fix: Use the extension type instead of the name when disabling vmss disk encryption
2 parents d774472 + 5a7501a commit 2244bc2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
## Version 2.4.0
2424
* Add HyperVGeneration parameter to New-AzImageConfig
25+
* Use the extension type instead of the name when disabling vmss disk encryption
2526

2627
## Version 2.3.0
2728
* New-AzVm and New-AzVmss simple parameter sets now accept the `ProximityPlacementGroup` parameter.

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)