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

Unable to reference bicep modules in an acr in different subscription in a different tenant #10665

Closed
gsuttie opened this issue May 10, 2023 · 2 comments

Comments

@gsuttie
Copy link

gsuttie commented May 10, 2023

Bicep version
Bicep CLI version 0.16.2 (de7fdd2)

Unable to reference bicep modules in an acr in different subscription in a different tenant

To Reproduce
Try to reference bicep modules in an acr (which you have owner access too) in a different tenant and a different subscription.

Additional context
Error BCP192: Unable to restore the module with reference "br:.azurecr.io/bicep/modules/microsoft.resources/resourcegroups:v1": Service request failed.
Status: 401 (Unauthorized)

Content:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information."}]}

Any ideas on how to solve this issue?

@PixelRobots
Copy link

Currently I believe Azure Lighthouse is the only way. Hopefully with #4947 we can use acr tokens instead of light house.

@stephaniezyen stephaniezyen added this to the Committed Backlog milestone May 17, 2023
@stephaniezyen stephaniezyen added Needs: Upvote This issue requires more votes to be considered and removed Needs: Triage 🔍 labels May 17, 2023
@majastrz
Copy link
Member

Closing as a duplicate of #5030.

@github-project-automation github-project-automation bot moved this from Todo to Done in Bicep May 17, 2023
@majastrz majastrz removed their assignment May 17, 2023
@majastrz majastrz removed the Needs: Upvote This issue requires more votes to be considered label May 17, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants