Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start-AzureRm with two factor authentication enabled #3

Open
LRomano72 opened this issue Oct 31, 2017 · 0 comments
Open

Start-AzureRm with two factor authentication enabled #3

LRomano72 opened this issue Oct 31, 2017 · 0 comments

Comments

@LRomano72
Copy link

Hi, Thanks for the great tool and just trying to figure it out but when I run the Start-AzureRm with our login's set to require two factor auth, it throws errors:
PS C:> start-azurerm;
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Add-AzureRmAccount : AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use
multi-factor authentication to access 'XXXXXX'.
Trace ID: 5e4d501d-5c3c-4657-8595-8fbf4dc84400
Correlation ID: 0f686039-dcb4-49cc-a514-a0c20e08dad0
Timestamp: 2017-10-31 15:44:54Z: The remote server returned an error: (400) Bad Request.
At C:\Users\XXXX\Documents\WindowsPowerShell\Modules\AzureExt\0.2.5.83\Functions\Public\Start-AzureRm.ps1:23 char:25

  • ... $AzureProfile = Add-AzureRmAccount -Credential (Get-Credential);
  •                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : CloseError: (:) [Add-AzureRmAccount], AadAuthenticationFailedException
    • FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.AddAzureRMAccountCommand

Save-AzureRmProfile : The term 'Save-AzureRmProfile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\XXXXX\Documents\WindowsPowerShell\Modules\AzureExt\0.2.5.83\Functions\Public\Start-AzureRm.ps1:24 char:9

  •     Save-AzureRmProfile -Path $script:AzureProfilePath -Profile $ ...
    
  •     ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Save-AzureRmProfile:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Not sure if this is an issue but providing as much detail as possible.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant