< Back
Add-UserAssignedIdentityToVmss
Post
NAME Add-UserAssignedIdentityToVmss
SYNOPSIS
Assigns a user-assigned managed identity to a VM scale set.
SYNTAX
Add-UserAssignedIdentityToVmss [-item <PSVirtualMachineScaleSet>] [-UserAssignedIdentityId] <String>
[<CommonParameters>]
DESCRIPTION
Assigns the specified user-assigned managed identity to the specified VM scale set.
PARAMETERS
-item <PSVirtualMachineScaleSet>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-UserAssignedIdentityId <String>
The ID of the user-assigned managed identity.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
VM scale sets which user-assigned identity list should have modified
OUTPUTS
NOTES
This function assumes you are connected to ARM (Login-AzAccount) and that you are already in the right
subscription on ARM.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Assigns the tooling-ci-id user-assigned managed identity to the tooling-vmss scale set in the tooling-rg
resource group.
Add-UserAssignedIdentityToVmss tooling-rg tooling-vmss /subscriptions/11111111-2222-3333-4444-555555555555/resource
groups/example-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/tooling-ci-id
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Add-UserToKeyVault; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Add-UserToKeyVault [-KeyvaultName] <string> [-Username] <string> [<CommonParameters>]
ModuleName : DevOpsFlex.Automation.PowerShell
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Add-UserToKeyVault
Category : Function
Component :
Role :
Functionality :
SYNOPSIS
Assigns a user-assigned managed identity to a VM scale set.
SYNTAX
Add-UserAssignedIdentityToVmss [-item <PSVirtualMachineScaleSet>] [-UserAssignedIdentityId] <String>
[<CommonParameters>]
DESCRIPTION
Assigns the specified user-assigned managed identity to the specified VM scale set.
PARAMETERS
-item <PSVirtualMachineScaleSet>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-UserAssignedIdentityId <String>
The ID of the user-assigned managed identity.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
VM scale sets which user-assigned identity list should have modified
OUTPUTS
NOTES
This function assumes you are connected to ARM (Login-AzAccount) and that you are already in the right
subscription on ARM.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Assigns the tooling-ci-id user-assigned managed identity to the tooling-vmss scale set in the tooling-rg
resource group.
Add-UserAssignedIdentityToVmss tooling-rg tooling-vmss /subscriptions/11111111-2222-3333-4444-555555555555/resource
groups/example-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/tooling-ci-id
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Add-UserToKeyVault; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Add-UserToKeyVault [-KeyvaultName] <string> [-Username] <string> [<CommonParameters>]
ModuleName : DevOpsFlex.Automation.PowerShell
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Add-UserToKeyVault
Category : Function
Component :
Role :
Functionality :