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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure PowerShell