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

azure-arm builder does not allow subscription_id selection when using managed identity authentication #9140

Closed
dougbw opened this issue Apr 30, 2020 · 2 comments

Comments

@dougbw
Copy link

dougbw commented Apr 30, 2020

Overview of the Issue

Currently it is impossible to specify a subscription_id when using managed identity authentication, as when only subscription_id is provided packer assumes an interactive login is desired.

In our case we need the base images to be stored in a different subscription to on running our CI/CD pipeline build agents. A single managed identity can have access to many Azure subscriptions.

Reproduction Steps

  • Create a user assigned managed identity
  • Grant the identity Azure RBAC permissions to multiple subscriptions
  • Assign the managed identity to a vm
  • On the vm execute az login --identity and you should see output for multiple subscriptions
  • Provide a subscription_id to the azure-arm builder in packer and you will be stuck on an interactive login
@amarkulis
Copy link

Is there a work around for this? This makes using managed identities impossible because every result returns: "Cannot locate the managed image resource group"

@ghost
Copy link

ghost commented Apr 30, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-azure#29 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-azure#29.

@ghost ghost closed this as completed Apr 30, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants