Skip to content

Commit

Permalink
Fix NullReferenceException in New-AzRoleAssignment (#19806)
Browse files Browse the repository at this point in the history
  • Loading branch information
dingmeng-xue authored Oct 15, 2022
1 parent 9f172c1 commit 6c713f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/Resources/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Fixed NullReferenceException issue in `New-AzRoleAssignment` [#19793]

## Version 6.3.0
* Removed unused reference to resource identifier in role assignment create cmdlet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ public override void ExecuteCmdlet()
Id = ObjectId,
ObjectType = ObjectType,
},
ResourceIdentifier = new ResourceIdentifier() {
ParentResource = ParentResource,
ResourceGroupName = ResourceGroupName,
ResourceName = ResourceName,
ResourceType = ResourceType,
Subscription = DefaultProfile.DefaultContext.Subscription.Id,
},
CanDelegate = AllowDelegation.IsPresent ? true : false,
Description = Description,
Condition = Condition,
Expand Down

0 comments on commit 6c713f9

Please sign in to comment.