hashicorp / hashicorp/packer-plugin-azure

Using Packer in Azure Gov Environment always points to Public Cloud

Open
#217 4 comments 0 reactions 0 assignees View on GitHub
gov-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?
![image](https://user-images.githubusercontent.com/40362361/181018289-e9f65a48-c7cf-4cea-a7a7-d90fc963dd58.png)

When I perform the build, the device code flow is only pointing to the commercial cloud by default.

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.