From ac0148b293e192317d4c3d2e45b4a216bd83e6a2 Mon Sep 17 00:00:00 2001 From: Emma Zhu Date: Mon, 24 Mar 2025 10:57:16 +0800 Subject: [PATCH 1/2] Add warning message for breaking in account migration cmdlet --- .../Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 | 1 + src/Storage/Storage.Management/ChangeLog.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 b/src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 index 935acd0f5f4f..cd91578fa838 100644 --- a/src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 +++ b/src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 @@ -64,6 +64,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storage/start-azstorageaccountmigration #> function Start-AzStorageAccountMigration { +[Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.GenericBreakingChangeAttribute("A prompt that needs users' confirmation will be added when converting the account's redundancy configuration. Suppress it with -Force.", "14.0.0", "9.0.0", "2025/05/19")] [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='CustomerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 79145633318d..38b92159916a 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -20,6 +20,8 @@ ## Upcoming Release * Add warning message for upcoming breaking change on upload Azure file - `Set-AzStorageFileContent` +* Added warning messages for an upcoming breaking change when converting the account's redundancy configuration + - `Start-AzStorageAccountMigration` ## Version 8.2.0 * Supported new SkuName when create/update Storage account for Files Provisioned v2 account type: "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", "StandardV2_GZRS", "PremiumV2_LRS", "PremiumV2_ZRS" From ad58bda8c93822d28473ec14d9a98eaf7482b373 Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Mon, 24 Mar 2025 11:09:05 +0800 Subject: [PATCH 2/2] Fix typo in ChangeLog.md entry --- src/Storage/Storage.Management/ChangeLog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 38b92159916a..ee53d70041fc 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,7 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release -* Add warning message for upcoming breaking change on upload Azure file +* Added warning message for upcoming breaking change on upload Azure file - `Set-AzStorageFileContent` * Added warning messages for an upcoming breaking change when converting the account's redundancy configuration - `Start-AzStorageAccountMigration`