編集

次の方法で共有


Get-AzSystemAssignedIdentity

Gets the systemAssignedIdentity available under the specified RP scope.

Syntax

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

Description

Gets the systemAssignedIdentity available under the specified RP scope.

Examples

Example 1: Gets the system assigned identity available under the specified RP scope

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

This command gets the system assigned identity available under the specified RP scope.

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Scope

The resource provider scope of the resource. Parent resource being extended by Managed Identities.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ISystemAssignedIdentity