仅通过Azure PowerShell获取企业应用程序

发布于 2025-01-30 10:41:32 字数 141 浏览 5 评论 0原文

我知道我可以运行get -azureadserviceprincipal -all $ true以获取应用程序列表,但它将返回所有应用程序类型,包括Microsoft Apps和托管身份。我只需要一个企业应用程序列表。我可以使用什么命令?

I know I can run Get-AzureADServicePrincipal -all $true to get a list of applications but it will return all application type including Microsoft apps and managed identities. I only want a list of Enterprise Applications only. What command I can use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轮廓§ 2025-02-06 10:41:32

尝试

Get-AzureADServicePrincipal -All:$true | ? {$_.Tags -eq "WindowsAzureActiveDirectoryIntegratedApp"}

如果您在门户网站上查看,则会看到“企业应用程序”的计数,如果您分配了该过滤器(默认为默认分配)。

通过运行上述内容,如果您这样做:

$noofentapps = Get-AzureADServicePrincipal -All:$true | ? {$_.Tags -eq "WindowsAzureActiveDirectoryIntegratedApp"} 

然后您进行了$ noofentApps.counts.count,您会看到数字应该匹配。

Try

Get-AzureADServicePrincipal -All:$true | ? {$_.Tags -eq "WindowsAzureActiveDirectoryIntegratedApp"}

If you look in the portal, you will see the count of 'Enterprise Applications' if you have that filter assigned (it is assigned by default).

By running the above, if you did:

$noofentapps = Get-AzureADServicePrincipal -All:$true | ? {$_.Tags -eq "WindowsAzureActiveDirectoryIntegratedApp"} 

and then you did $noofentapps.count, you would see that the numbers should match.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文