【发布时间】:2022-12-01 15:30:19
【问题描述】:
I know how to get the tenant id of Azure AD. But i have registred an APP in Azure AD using microsoft graph powershell and i want to obtain tenant id of this registred app using microsoft graph powershell. I tried to get it using the variable i used to create the app registration:
$APP = New-MgApplication -displayName $AppName `
-RequiredResourceAccess @{ ResourceAppId = $GraphResourceId; ResourceAccess = @($resourceAccess) } `
-SignInAudience $SignInAudience `
-PublicClient @{ RedirectUris = $URL }
If i use the variable $App and try to get a property called tenantid, there is nth called like this. $App | Select * did not show any tenantid aswell.
Anyone know how to read the tenantid of this registred azure app using microsoft graph powershell?
【问题讨论】:
标签: azure-active-directory microsoft-graph-sdks