共用方式為


Get-AzSystemAssignedIdentity

取得指定的 RP 範圍下可用的 systemAssignedIdentity。

Syntax

Get-AzSystemAssignedIdentity
   -Scope <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

取得指定的 RP 範圍下可用的 systemAssignedIdentity。

範例

範例 1:取得指定 RP 範圍下可用的系統指派身分識別

Get-AzSystemAssignedIdentity -Scope "/subscriptions/00000000-0000-0000-00000000000/resourcegroups/lucas-rg-test/providers/Microsoft.Web/sites/functionportal01"

Name            Location ResourceGroupName
----            -------- -----------------
ubuntu-portal01 eastus   azure-rg-test

此命令會取得指定之 RP 範圍下可用的系統指派身分識別。

參數

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-Scope

資源的資源提供者範圍。 受控識別所擴充的父資源。

類型:String
Position:Named
預設值:None
必要:True
Accept pipeline input:False
Accept wildcard characters:False

輸出

ISystemAssignedIdentity