你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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 |