Managing applications in Azure Active Directory using PowerShell

Sign in to queue

The Discussion

  • User profile image
    hari

    i tried to do same as given modules got installed, but when i run "Connect-AzureAD" i am getting following error
    Connect-AzureAD : The term 'Connect-AzureAD' 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:\Hari\ProjectDocs\Load test Environment\myscripts\Script samples.ps1:7 char:1
    + Connect-AzureAD
    + ~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (Connect-AzureAD:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • User profile image
    ChristiaanB

    @hari:If you haven't already run "Import-Module AzureAD" the command will not be available.  If AzureAD is not installed look at "Install-Module AzureAD" (from elevated session) that will pull the package from the PowerShell Gallery and install locally (assuming the PowerShellGet module is present on your system - most recent Windows OS's do).

  • User profile image
    driberif

    Great video thanx for putting this together.  Couple interesting things I've found with these cmdlets for AD is the switch -all.

    You have to pass the switch with -all $true... Very odd compared to the other azure cmdlets

     

    Get-AzureADApplication -All $true

Add Your 2 Cents