Get-MgApplication is not recognized as the name of a cmdlet - Power Shell RRS feed

  • Question

  • I am trying to run Contoso Monetization Code Sample Web App provided by Microsoft as a starting point for moving from paid add-in to SaaS offering. I am stuck at the very end where I am meant to be updating the Azure Active Directory Applications. I get this error

    Get-MgApplication : The term 'Get-MgApplication' 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. + $webApp = Get-MgApplication -top 400|Where-Object {$_.DisplayName -eq ...+ CategoryInfo : ObjectNotFound: (Get-MgApplication:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

    Please help 

    Saturday, February 22, 2020 10:09 PM