0

我通过powershell 6(模块AzureAD.Standard.Preview)在Azure Active Directory上注册了一个本机应用程序,我需要使用powershell 6代码授予权限(设置>所需权限>授予权限)。我正在使用 AZ 模块。

我尝试使用此解决方案http://www.lieben.nu/liebensraum/2018/04/how-to-grant-oauth2-permissions-to-an-azure-ad-application-using-powershell-unattended-silently但这使用 powershell 5 和旧的 AzureRM 模块。它不适用于 AZ 模块,因为刷新令牌不存在。

如何向使用 PowerShell 6 和 AZ 模块在 AAD 上注册的本机应用程序授予权限?

4

0 回答 0