Skip to content

Authorization: Changes to the Get-AzureRoleAssignment commandlet to also display classic admins and perform group expansion for users#846

Merged
jianghaolu merged 21 commits intoAzure:devfrom
namratab:roleassignmentmerge
Sep 16, 2015
Merged

Authorization: Changes to the Get-AzureRoleAssignment commandlet to also display classic admins and perform group expansion for users#846
jianghaolu merged 21 commits intoAzure:devfrom
namratab:roleassignmentmerge

Conversation

@namratab
Copy link
Copy Markdown
Contributor

@namratab namratab commented Sep 3, 2015

Authorization: Changes to the Get-AzureRoleAssignment commandlet to also display classic admins and perform group expansion for users

@azurecla
Copy link
Copy Markdown

azurecla commented Sep 3, 2015

Hi @namratab, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (nbaliga). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@markcowl
Copy link
Copy Markdown
Member

markcowl commented Sep 3, 2015

@namratab tests failed. Also, the dev branch is closed until mid next week. You can still make the 0.9.8 release, if you target this at the release-0.9.8 branch - we have pushed out code complete until Friday.

@namratab
Copy link
Copy Markdown
Contributor Author

namratab commented Sep 3, 2015

Thanks, I will send out a new PR against the release branch

@namratab
Copy link
Copy Markdown
Contributor Author

I've used a custom recordmatcher to exclude api versions for matching the Microsoft.authorization permissions api calls across different RPs. The API contract is exactly the same and only change is to go from a "preview" version to non-preview.
The current combining of Authorization and Resources projects in Powershell is what caused issues in updating only the Authorization package version for RBAC commandlets only - build/test errors due to multiple versions of Authorization dll showing up due to most projects taking a dll dependency on Commands.Resources as well.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could u move this code to RMTestBase instead of duplicating it everywhere in the code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used only for a few of the test projects which depend on authorization RP. Not needed for all tests. Is there benefit in moving it there? Keeping it here also makes it explicit that en exclusion is added for particular test projects only.

…gnmentmerge

Conflicts:
	src/ResourceManager/Resources/Commands.Resources/Models.Authorization/AuthorizationClient.cs
	src/ResourceManager/Resources/Commands.Resources/Models.Authorization/FilterRoleAssignmentsOptions.cs
	src/ResourceManager/Resources/Commands.Resources/RoleAssignments/GetAzureRoleAssignmentCommand.cs
	src/ResourceManager/Resources/Commands.Resources/RoleAssignments/RemoveAzureRoleAssignmentCommand.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants