使用 New-MsolServicePrincipal 创建的应用程序未显示在 Azure 门户中



我正在使用PowerShell在Azure AD中注册应用程序:

New-MsolServicePrincipal `
-DisplayName $appDisplayName `
-Addresses $addys `
-ServicePrincipalNames @($spn)

该命令成功完成,并显示以下输出:

The following symmetric key was created as one was not supplied 7JEl99ZJ1ZWDS...
DisplayName           : My App
ServicePrincipalNames : {https://blah.com/myapp, db286381-a896-4290-8179-...}
ObjectId              : 0a197d26-49b8-4e9b-8739-...
AppPrincipalId        : db286381-a896-4290-8179-...
TrustedForDelegation  : False
AccountEnabled        : True
Addresses             : {Microsoft.Online.Administration.RedirectUri}
KeyType               : Symmetric
KeyId                 : c3a709e5-7d23-4d1a-842b-...
StartDate             : 11/24/2014 6:30:19 PM
EndDate               : 11/24/2015 6:30:19 PM
Usage                 : Verify

我还可以使用 Get-MsolServicePrincipal 来验证服务主体现在是否存在。 但是,当我转到 https://manage.windowsazure.com 并在"应用程序"下查看我的 Azure AD 租户时,它不存在。 我是否应该无法在门户中看到该应用?

在门户中看到的应用程序是目录中应用程序实体的投影。我相信通过Powershell创建的应用程序只是服务主体。有关两者之间区别的详细说明,请参阅 http://msdn.microsoft.com/en-us/library/azure/dn132633.aspx

最新更新