Skip to content

Commit b4550ef

Browse files
author
Kamran Khan
committed
On Windows, VolumeType should default to Data for disable
1 parent f8110d3 commit b4550ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/DisableAzureDiskEncryption.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,15 @@ public override void ExecuteCmdlet()
262262
// +---------+---------------+----------------------------+
263263
// | Windows | OS | Yes |
264264
// | Windows | Data | No |
265-
// | Windows | Not Specified | Yes |
265+
// | Windows | Not Specified | No |
266266
// | Linux | OS | N/A |
267267
// | Linux | Data | Yes |
268268
// | Linux | Not Specified | N/A |
269269
// +---------+---------------+----------------------------+
270270

271271
if (OperatingSystemTypes.Windows.Equals(currentOSType) &&
272-
VolumeType.Equals(AzureDiskEncryptionExtensionContext.VolumeTypeData, StringComparison.InvariantCultureIgnoreCase))
272+
(string.IsNullOrWhiteSpace(VolumeType) ||
273+
VolumeType.Equals(AzureDiskEncryptionExtensionContext.VolumeTypeData, StringComparison.InvariantCultureIgnoreCase)))
273274
{
274275
var result = Mapper.Map<PSAzureOperationResponse>(opExt);
275276
WriteObject(result);

0 commit comments

Comments
 (0)