gpt4 book ai didi

azure - 使用 'Single Page Application' 作为平台 PowerShell 脚本的 AAD 应用程序

转载 作者:行者123 更新时间:2023-12-03 06:20:35 24 4
gpt4 key购买 nike

我需要创建一个 Azure Active Directory (AAD) 应用程序。这是我使用的命令:

$uiApp = New-AzADApplication    -DisplayName $uiAppDisplayName `
-AvailableToOtherTenants $false `
-ReplyUrls $replyUrls `
-RequiredResourceAccess $requiredResourceAccess

如何更新脚本以创建以“单页应用程序”为平台的应用程序?

enter image description here

最佳答案

要创建以“单页应用程序”为平台的应用程序,您需要将 -SPARedirectUri $uri 添加到现有脚本中。

我尝试在我的环境中重现相同的结果并得到以下结果:

我使用以下命令创建了以“单页应用程序”为平台的应用程序,如下所示:

Connect-AzAccount -tenant <tenantID>
$uiAppDisplayName = "SriGraphApp"
$uri = "http://localhost:3000"
$uiApp = New-AzADApplication -DisplayName $uiAppDisplayName `
-AvailableToOtherTenants $false `
-SPARedirectUri $uri

回应:

enter image description here

当我在 Portal 中检查相同内容时,SriGraphApp'单页应用程序' 作为成功创建的平台,如下所示:

enter image description here

关于azure - 使用 'Single Page Application' 作为平台 PowerShell 脚本的 AAD 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75933966/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com