Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

MFA login #18

Open
thomaschillipepper opened this issue Mar 3, 2020 · 3 comments
Open

MFA login #18

thomaschillipepper opened this issue Mar 3, 2020 · 3 comments

Comments

@thomaschillipepper
Copy link

It seems that it fails to login when one is attempting to provide credentials with MFA.
The module doesn't request the code which generates the following code:
[Exception][Authorize-Tenant][407]:Exception calling "GetResult" with "0" argument(s): "Failed to acquire token silently as no token was found in the cache. Call method AcquireToken"

@matth3wq
Copy link

matth3wq commented Apr 6, 2021

same issue... any soluiton

@roy-wh
Copy link

roy-wh commented May 31, 2021

same

@asomsi
Copy link

asomsi commented Nov 22, 2021

Not a solution but a workaround that worked (at least for me). You can use the following command before running Azucar to perform a MFA authentication:

Connect-AzAccount -Tenant <TENANT_ID>

Azucar should then use the generated token from the cache instead of performing a new authentication.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants