You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run Packer with interactive authentication but after I input the code in the device login screen and select the account to use (which has Owner role on the Azure subscription specified in my Packer template), I get the screen below, which suggests Packer is trying to do something in AzureAD. But my user is not allowed to register applications there, and I don't see why Packer would need to do anything in AureAD to work when using interactive authentication (in fact the same template works in the nightly build of Packer 1.6.6 if I add "use_azure_cli_auth": true and remove the "subscription_id" property in the builder).
Reproduction Steps
(These instructions are for Powershell, minor adjustments might be required for other environments)
Run packer build -var 'subscription_id=<your-subscription-id>' .\<template-file-name>.json with the template file below.
When prompted for which account to log in as, select one that has Owner role on the Azure subscription, but no permissions to register applications in AzureAD.
See the prompt shown above.
At this point I can make no more progress and have to let Packer timeout. Ctrl-C will make the "Cancelling build after receiving interrupt" message appear, but it doesn't stop it until the natural timeout occurs.
@alexvy86 Just ran into the same issue - swapping to "use_azure_cli_auth": true and removing "subscription_id" as you suggested worked out as well. This was run with packer v1.6.6
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Overview of the Issue
I'm trying to run Packer with interactive authentication but after I input the code in the device login screen and select the account to use (which has Owner role on the Azure subscription specified in my Packer template), I get the screen below, which suggests Packer is trying to do something in AzureAD. But my user is not allowed to register applications there, and I don't see why Packer would need to do anything in AureAD to work when using interactive authentication (in fact the same template works in the nightly build of Packer 1.6.6 if I add
"use_azure_cli_auth": true
and remove the"subscription_id"
property in the builder).Reproduction Steps
(These instructions are for Powershell, minor adjustments might be required for other environments)
packer build -var 'subscription_id=<your-subscription-id>' .\<template-file-name>.json
with the template file below.At this point I can make no more progress and have to let Packer timeout.
Ctrl-C
will make the "Cancelling build after receiving interrupt" message appear, but it doesn't stop it until the natural timeout occurs.Packer version
1.6.5 and 1.6.6
Simplified Packer Buildfile
Operating system and Environment details
Windows 10 Enterprise build 18363 (64 bit)
Log Fragments and crash.log files
N/A
The text was updated successfully, but these errors were encountered: