From 70336057fc1d23a73d3e94cee55036f53c3827f9 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 25 Mar 2024 16:12:45 +0000 Subject: [PATCH] Autogen code --- src/Compute/Compute/ChangeLog.md | 7 +++++++ .../Generated/Disk/Config/SetAzDiskSecurityProfile.cs | 8 +++++--- src/Compute/Compute/Generated/Models/PSDisk.cs | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index c9aee39449a1..5620c8ad9f73 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -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. diff --git a/src/Compute/Compute/Generated/Disk/Config/SetAzDiskSecurityProfile.cs b/src/Compute/Compute/Generated/Disk/Config/SetAzDiskSecurityProfile.cs index 47e72f79c7d6..3f171a56cf22 100644 --- a/src/Compute/Compute/Generated/Disk/Config/SetAzDiskSecurityProfile.cs +++ b/src/Compute/Compute/Generated/Disk/Config/SetAzDiskSecurityProfile.cs @@ -1,4 +1,4 @@ -// ---------------------------------------------------------------------------------- +// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); @@ -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() @@ -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); } } -} \ No newline at end of file +} + diff --git a/src/Compute/Compute/Generated/Models/PSDisk.cs b/src/Compute/Compute/Generated/Models/PSDisk.cs index d257855adaae..fbc18b433486 100644 --- a/src/Compute/Compute/Generated/Models/PSDisk.cs +++ b/src/Compute/Compute/Generated/Models/PSDisk.cs @@ -1,4 +1,4 @@ -// + // // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License");