我正在尝试使用 Azure AD PowerShell 生成邀请链接。我正在使用 New-AzureADMSInvitation 方法(https://docs.microsoft.com/en-us/powershell/module/azuread/new-azureadmsinvitation?view=azureadps-2.0)。
我在云外壳中运行它并收到以下错误:
PS Azure:\> New-AzureADMSInvitation
cmdlet New-AzureADMSInvitation at command pipeline position 1
Supply values for the following parameters:
InvitedUserEmailAddress: "**@**.com"
InviteRedirectUrl: "**.com"
New-AzureADMSInvitation : Object reference not set to an instance of an object.
At line:1 char:1
+ New-AzureADMSInvitation
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzureADMSInvitation], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Open.MSGraphV10.PowerShell.NewAzureADMSInvitation
我试过重新启动 shell,不包括输入中的引号,但没有运气。任何人都能够解决这个问题?