hashicorp / hashicorp/packer-plugin-azure
Using Packer in Azure Gov Environment always points to Public Cloud
- Dominant language
- Go
- Stars
- 63
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
I am using packer to build image on Azure Gov. I am using Azure CLI to authenticate as mentioned in the doc, but it seems like it's not taking the context that is passed into Azure CLI.
The doc mentions to use "use_azure_cli_auth: true". Can someone please provide me a sample on how to implement it properly?

When I perform the build, the device code flow is only pointing to the commercial cloud by default.
Contributor guide
Research direction
Start by reviewing the Azure CLI authentication documentation and the plugin's handling of the use_azure_cli_auth option, then reproduce the build in an Azure Government environment. Done means device-code authentication uses the Government cloud context rather than defaulting to the commercial cloud, with a documented configuration example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, go
- Domain
- authentication, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100