Skip to content

Commit bc5546e

Browse files
committed
update help and changelog
1 parent 7f69b0a commit bc5546e

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/ResourceManager/Resources/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Add Support for removal of roleassignment using PSRoleAssignment object
22+
- Users can now use PSRoleassignmnet inputobject with Remove-AzureRMRoleAssignment commandlet to remove the roleassignment.
2123

2224
## Version 4.3.1
2325

src/ResourceManager/Resources/Commands.Resources/help/Remove-AzureRmRoleAssignment.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ Remove-AzureRmRoleAssignment -ServicePrincipalName <String> [-Scope <String>] -R
8181
[-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
8282
```
8383

84+
### RoleAssignmentParameterSet
85+
```
86+
Remove-AzureRmRoleAssignment [-InputObject] <PSRoleAssignment> [<CommonParameters>]
87+
```
88+
8489
## DESCRIPTION
8590
Use the Remove-AzureRmRoleAssignment commandlet to revoke access to any principal at given scope and given role.
8691

@@ -117,6 +122,14 @@ PS C:\> Remove-AzureRmRoleAssignment -ObjectId 36f81fc3-b00f-48cd-8218-3879f51ff
117122
Removes the role assignment to the group principal identified by the ObjectId and assigned to the Reader role.
118123
Defaults to using the current subscription as the scope to find the assignment to be deleted.
119124

125+
### -------------------------- Example 3 --------------------------
126+
```
127+
PS C:\> $roleassignment = Get-AzureRmRoleAssignment |Select-Object -First 1 -Wait
128+
PS C:\> Remove-AzureRmRoleAssignment -InputObject $roleassignment
129+
```
130+
131+
Removes the first role assignment object which is fetched from the Get-AzureRmRoleAssignment commandlet.
132+
120133
## PARAMETERS
121134

122135
### -ObjectId
@@ -299,6 +312,21 @@ Accept pipeline input: True (ByPropertyName)
299312
Accept wildcard characters: False
300313
```
301314
315+
### -InputObject
316+
Role Assignment object.
317+
318+
```yaml
319+
Type: PSRoleAssignment
320+
Parameter Sets: RoleAssignmentParameterSet
321+
Aliases:
322+
323+
Required: True
324+
Position: 0
325+
Default value: None
326+
Accept pipeline input: True
327+
Accept wildcard characters: False
328+
```
329+
302330
### -Confirm
303331
Prompts you for confirmation before running the cmdlet.
304332

0 commit comments

Comments
 (0)