File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
src/ResourceManager/Resources Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## 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.
21
23
22
24
## Version 4.3.1
23
25
Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ Remove-AzureRmRoleAssignment -ServicePrincipalName <String> [-Scope <String>] -R
81
81
[-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
82
82
```
83
83
84
+ ### RoleAssignmentParameterSet
85
+ ```
86
+ Remove-AzureRmRoleAssignment [-InputObject] <PSRoleAssignment> [<CommonParameters>]
87
+ ```
88
+
84
89
## DESCRIPTION
85
90
Use the Remove-AzureRmRoleAssignment commandlet to revoke access to any principal at given scope and given role.
86
91
@@ -117,6 +122,14 @@ PS C:\> Remove-AzureRmRoleAssignment -ObjectId 36f81fc3-b00f-48cd-8218-3879f51ff
117
122
Removes the role assignment to the group principal identified by the ObjectId and assigned to the Reader role.
118
123
Defaults to using the current subscription as the scope to find the assignment to be deleted.
119
124
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
+
120
133
## PARAMETERS
121
134
122
135
### -ObjectId
@@ -299,6 +312,21 @@ Accept pipeline input: True (ByPropertyName)
299
312
Accept wildcard characters : False
300
313
` ` `
301
314
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
+
302
330
### -Confirm
303
331
Prompts you for confirmation before running the cmdlet.
304
332
You can’t perform that action at this time.
0 commit comments