Giter Club home page Giter Club logo

azure-powershell-extensions's Issues

Start-AzureRm with two factor authentication enabled

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!

Is dependency on TabExpension++ still needed

Couple things

  • TabExpansionPlusPlus is the newer version of the module. It's available in PSGallery. This dependency can be pulled in with gallery dependency mechanism.
  • In PowerShell v5 cmdlet Register-ArgumentCompleter is part of Microsoft.PowerShell.Core.

With the former, maybe external dependency can be completely avoided?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.