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

Wrong endpoint when use chroot in AzureChinaCloud #8806

Closed
bg2s0r opened this issue Feb 27, 2020 · 2 comments
Closed

Wrong endpoint when use chroot in AzureChinaCloud #8806

bg2s0r opened this issue Feb 27, 2020 · 2 comments

Comments

@bg2s0r
Copy link

bg2s0r commented Feb 27, 2020

Overview of the Issue

I set the "cloud_environment_name": "china" in my builders, but packer still request the wrong ResourceManagerEndpoint

I can get token when I do this

curl 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.chinacloudapi.cn/' -H Metadata:true

Packer version

tested most versions

Operating system and Environment details

Ubuntu 18.04 amd64

Log Fragments and crash.log files

Build 'azure-chroot' errored: error retieving latest version of "credativ:Debian:9:latest": compute.VirtualMachineImagesClient#List: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="SubscriptionNotFound" Message="The subscription 'dc6f24f5-ff36-4029-b603-ddb144490348' could not be found."

@SwampDragons
Copy link
Contributor

Thanks for opening an issue -- to help you, we really do need the things requested in the issue template:

  • Full debug log output from PACKER_LOG=1 packer build template.json.
    Please paste this in a gist https://gist.github.com
  • The simplest complete example template and scripts needed to reproduce the bug.
    Include these in your gist https://gist.github.com

@ghost
Copy link

ghost commented Apr 30, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-azure#32 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#32.

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