你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzSystemAssignedIdentity
获取在指定的 RP 范围内可用的 systemAssignedIdentity。
语法
Get-AzSystemAssignedIdentity
-Scope <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取在指定的 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 |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Scope
资源的资源提供程序范围。 由托管标识扩展的父资源。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |