Skip to content

add breaking change instructions for Get-AzureRmRoleDefinition #5676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2018
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ public class GetAzureRoleDefinitionCommand : ResourcesBaseCmdlet

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

public override void ExecuteCmdlet()
{
FilterRoleDefinitionOptions options = new FilterRoleDefinitionOptions
{
CustomOnly = Custom.IsPresent ? true : false,
#pragma warning disable 0618
ScopeAndBelow = AtScopeAndBelow.IsPresent ? true : false,
#pragma warning restore 0618
Scope = Scope,
ResourceIdentifier = new ResourceIdentifier
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,18 @@
https://github.com/Azure/azure-powershell/blob/dev/documentation/breaking-changes/breaking-change-template.md
-->

# Upcoming Breaking Changes
# Upcoming Breaking Changes

The following cmdlets were affected this release:

**Get-AzureRmRoleDefinition**
- Parameter "AtScopeAndBelow" is being removed.

```powershell

# Old
# Get-AzureRmRoleDefinition [other required parameters] -AtScopeAndBelow

# New
# Get-AzureRmRoleDefinition [other required parameters]
```