【发布时间】:2014-11-25 03:19:40
【问题描述】:
我正在使用 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 azure-active-directory