New-AzServiceLinkerUserAssignedIdentityAuthInfoObject
为 UserAssignedIdentityAuthInfo 创建内存中对象。
语法
New-AzServiceLinkerUserAssignedIdentityAuthInfoObject
[-ClientId <String>]
[-Role <String[]>]
[-SubscriptionId <String>]
[-UserName <String>]
[<CommonParameters>]
说明
为 UserAssignedIdentityAuthInfo 创建内存中对象。
示例
示例 1:使用用户分配的标识类型创建链接器身份验证信息
New-AzServiceLinkerUserAssignedIdentityAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -SubscriptionId 00000000-0000-0000-0000-000000000000
AuthType ClientId SubscriptionId
-------- -------- --------------
userAssignedIdentity 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-0000…
使用用户分配的标识类型创建链接器身份验证信息
参数
-ClientId
userAssignedIdentity 的客户端 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Role
可选,此值指定要分配的 Azure 角色。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
userAssignedIdentity 的订阅 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-UserName
在映射到 AAD 用户的数据库中创建的用户名。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |