Skip to content
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

Export-BicepChildResource throws with "access denied" to list roleAssignment #323

Open
SebastianClaesson opened this issue Nov 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@SebastianClaesson
Copy link

SebastianClaesson commented Nov 9, 2023

Describe the bug
Export-BicepChildResource throws an error saying the credentials used do not have access to list roleAssignments.
Refreshed credentials in both Az CLI and PowerShell, after checking out appropriate role.

image
image

To Reproduce
Steps to reproduce the behavior:
Run the Export-BicepChildResource with a subscription or resource group as the ParentResourceId.

Such as:
Export-BicepChildResource -ParentResourceId "/subscriptions/c5f27640-57b7-79f1-9896-cb4b49217632"
Export-BicepChildResource -ParentResourceId "/subscriptions/c5f27640-57b7-79f1-9896-cb4b49217632/resourceGroups/rg-test-infra"

Expected behavior
Return all Child resources from that subscription or resource group.

@SebastianClaesson SebastianClaesson added the bug Something isn't working label Nov 9, 2023
@PalmEmanuel
Copy link
Member

Related to the work planned for #258 where we would likely take a dependency on AzAuth and rework the current authentication implementation which isn't very transparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants