Skip to content

Commit 9d86e4a

Browse files
authored
Added breaking change warning message for parameter EnableRbacAuthorization for Update-AzKeyVault (#24424)
1 parent d625ad0 commit 9d86e4a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/KeyVault/KeyVault/ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
-->
2020
## Upcoming Release
2121
* Formatted the output of Azure Key Vault certificate in removed state. [#24333]
22-
* [Upcoming Breaking Change] Added breaking change warning message for parameter `EnableRbacAuthorization` of `New-AzKeyVault`.
22+
* [Upcoming Breaking Change] Added breaking change warning message for parameter `EnableRbacAuthorization` of `New-AzKeyVault` and `Update-AzKeyVault`.
2323
- RBAC will be enabled by default during the process of key vault creation. To disable RBAC authorization, please use parameter 'DisableRbacAuthorization'.
2424
- Parameter `EnableRbacAuthorization` is expected to be removed in Az.KeyVault 6.0.0 and Az 12.0.0.
2525
- Parameter `EnableRbacAuthorization` is expected to be replaced by `DisableRbacAuthorization`.

src/KeyVault/KeyVault/Commands/UpdateAzureKeyVault.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Microsoft.Azure.Commands.KeyVault.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using Microsoft.WindowsAzure.Commands.Utilities.Common;
1920
using System;
2021
using System.Collections;
@@ -51,6 +52,7 @@ public class UpdateTopLevelResourceCommand : KeyVaultManagementCmdletBase
5152
[Parameter(Mandatory = false, HelpMessage = "Enable the purge protection functionality for this key vault. Once enabled it cannot be disabled. It requires soft-delete to be turned on.")]
5253
public SwitchParameter EnablePurgeProtection { get; set; }
5354

55+
[CmdletParameterBreakingChangeWithVersion(nameof(EnableRbacAuthorization), "12.0.0", "6.0.0", ReplaceMentCmdletParameterName = "DisableRbacAuthorization", ChangeDescription = "RBAC will be enabled by default during the process of key vault creation. To disable RBAC authorization, please use parameter 'DisableRbacAuthorization'.")]
5456
[Parameter(Mandatory = false, HelpMessage = "Enable or disable this key vault to authorize data actions by Role Based Access Control (RBAC).")]
5557
public bool? EnableRbacAuthorization { get; set; }
5658

0 commit comments

Comments
 (0)