azure: device login for US Gov

This commit is contained in:
Christopher Boumenot 2018-04-04 10:14:38 -07:00
parent 12046fc6b9
commit 80a096cadd
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,8 @@ import (
var (
// AD app id for packer-azure driver.
clientIDs = map[string]string{
azure.PublicCloud.Name: "04cc58ec-51ab-4833-ac0d-ce3a7912414b",
azure.PublicCloud.Name: "04cc58ec-51ab-4833-ac0d-ce3a7912414b",
azure.USGovernmentCloud.Name: "a1479822-da77-46a7-abd0-6edacc8a8fac",
}
)

View File

@ -44,7 +44,7 @@ There are three pieces of information you must provide to enable device login mo
> Device login mode is enabled by not setting client\_id and client\_secret.
> Device login mode is for the public cloud only, and Linux VMs only.
> Device login mode is for the Public and US Gov clouds only, and Linux VMs only.
The device login flow asks that you open a web browser, navigate to <http://aka.ms/devicelogin>, and input the supplied
code. This authorizes the Packer for Azure application to act on your behalf. An OAuth token will be created, and stored