Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@

-->
## Upcoming Release
* Enhanced `Set-AzDiskSecurityProfile` cmdlet
- Added `SecureVMDiskEncryptionSet` parameter with logic to verify it is a resourceId and a string, and to set all its characters to lower case.
- Updated business logic of the cmdlet and parameters.
- Affected parameter sets: { INPUT HERE }
- Link to API tests: `{ ENTER LINK HERE }`
* Fixed `New-AzVmss` to correctly work when using `-EdgeZone` by creating the Load Balancer in the correct edge zone.
* Removed references to image aliases in `New-AzVM` and `New-AzVmss` to images that were removed.
* Fixed `New-AzVmss` to correctly work when using `-EdgeZone` by creating the Load Balancer in the correct edge zone.
* Removed references to image aliases in `New-AzVM` and `New-AzVmss` to images that were removed.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ----------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -52,6 +52,7 @@ public class SetAzDiskSecurityProfile : Microsoft.Azure.Commands.ResourceManager
Mandatory = false,
ValueFromPipelineByPropertyName = true,
HelpMessage = "ResourceId of the disk encryption set to use for enabling encryption at rest.")]
[ValidatePattern("^/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}$", ErrorMessage = "Invalid ResourceId format")]
public string SecureVMDiskEncryptionSet { get; set; }

protected override void ProcessRecord()
Expand Down Expand Up @@ -91,11 +92,12 @@ private void Run()
{
this.Disk.SecurityProfile = new DiskSecurityProfile();
}
this.Disk.SecurityProfile.SecureVMDiskEncryptionSetId = this.SecureVMDiskEncryptionSet;
this.Disk.SecurityProfile.SecureVMDiskEncryptionSetId = this.SecureVMDiskEncryptionSet.ToLower();
}

WriteObject(this.Disk);
}
}

}
}

2 changes: 1 addition & 1 deletion src/Compute/Compute/Generated/Models/PSDisk.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down