如何使用Azure Powershell检索Azure AppService应用或功能应用系统分配的对象ID

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

我正在使用Azure Powershell 3.8.0

我正在尝试获取在此屏幕上可以看到的对象ID:

Identity

我尝试使用以下内容:

PS> (Get-AzResource -Name  "func-example").Identity.PrincipalId

但是与对象ID不匹配。

然后也是:

PS> (Get-AzWebApp -Name  "func-example" -ResourceGroupName RGNAME).Identity

但也不匹配

有人知道如何使用Azure Powershell来获取该ID吗?

azure powershell azure-web-sites azure-powershell
1个回答
1
投票

您可以执行this

Get-AzADServicePrincipal -DisplayName 'func-example'
© www.soinside.com 2019 - 2024. All rights reserved.