Skip to content

Commit 437b22d

Browse files
committed
add breaking change instructions
1 parent e4cb1dc commit 437b22d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/ResourceManager/Resources/Commands.Resources/RoleDefinitions/GetAzureRoleDefinitionCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@ public class GetAzureRoleDefinitionCommand : ResourcesBaseCmdlet
4848

4949
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.RoleDefinitionName, HelpMessage = "If specified, displays the the roles at and below scope.")]
5050
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.RoleDefinitionCustom, HelpMessage = "If specified, displays the the roles at and below scope.")]
51+
[Obsolete("GEt-AzureRmRoleDefinition: The parameter \"AtScopeAndBelow\" is being removed in an upcoming breaking change release.")]
5152
public SwitchParameter AtScopeAndBelow { get; set; }
5253

5354
public override void ExecuteCmdlet()
5455
{
5556
FilterRoleDefinitionOptions options = new FilterRoleDefinitionOptions
5657
{
5758
CustomOnly = Custom.IsPresent ? true : false,
59+
#pragma warning disable 0618
5860
ScopeAndBelow = AtScopeAndBelow.IsPresent ? true : false,
61+
#pragma warning restore 0618
5962
Scope = Scope,
6063
ResourceIdentifier = new ResourceIdentifier
6164
{

src/ResourceManager/Resources/documentation/upcoming-breaking-changes.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,18 @@
2525
https://github.com/Azure/azure-powershell/blob/dev/documentation/breaking-changes/breaking-change-template.md
2626
-->
2727

28-
# Upcoming Breaking Changes
28+
# Upcoming Breaking Changes
29+
30+
The following cmdlets were affected this release:
31+
32+
**Get-AzureRmRoleDefinition**
33+
- Parameter "AtScopeAndBelow" is being removed.
34+
35+
```powershell
36+
37+
# Old
38+
# Get-AzureRmRoleDefinition [other required parameters] -AtScopeAndBelow
39+
40+
# New
41+
# Get-AzureRmRoleDefinition [other required parameters]
42+
```

0 commit comments

Comments
 (0)