为 AzureAD 集成应用程序寻求等效的 Microsoft Graph 命令

问题描述 投票:0回答:1

我目前正在从使用 AzureAD PowerShell 模块过渡到使用 Microsoft Graph PowerShell SDK 来管理 Azure 资源。我遇到了一个特定的用例,我无法在 Microsoft Graph PowerShell SDK 中找到等效的命令。

在 AzureAD 模块中,我使用以下命令列出标记为与 Azure AD 集成的应用程序的所有服务主体:

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

此命令帮助我识别 Azure AD 集成应用程序,特别标记为“WindowsAzureActiveDirectoryIntegratedApp”。我正在 Microsoft Graph PowerShell SDK 中寻找等效方法或解决方法来检索相同的信息。 Graph SDK 中对此有何建议或命令?

谢谢你,

powershell graph command-line azure-active-directory
1个回答
0
投票

当我运行下面的 Azure AD 命令来列出标记为集成应用程序的所有服务主体时,我得到了如下响应

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

回复:

enter image description here

您可以使用以下等效 Microsoft Graph PowerShell 命令来检索相同的信息:

Import-Module Microsoft.Graph.Applications
Get-MgServicePrincipal -Filter "tags/any(tag:tag eq 'WindowsAzureActiveDirectoryIntegratedApp')"

回复:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.