How to grant permission to AAD native app in PowerShell 6?

234 Views Asked by At

I registered a native application on Azure Active Directory via powershell 6 (module AzureAD.Standard.Preview) and I need to grant the permissions with powershell 6 code (Settings > Required permissions> Grant permissions). I'm using the AZ modules.

I tried with this solution http://www.lieben.nu/liebensraum/2018/04/how-to-grant-oauth2-permissions-to-an-azure-ad-application-using-powershell-unattended-silently but this use powershell 5 and the old AzureRM module. It doesn't work with AZ module because the refresh token doesn't exist.

How is it possible to grant permission to a native app registered on AAD with PowerShell 6 and the AZ module?

0

There are 0 best solutions below