< Back

Set-AzureRmVmss

Tue Jan 29, 2019 9:40 pm

NAME Set-AzureRmVmss



SYNOPSIS

Sets specific actions on a specified VMSS.





SYNTAX

Set-AzureRmVmss [-ResourceGroupName] <String> [-VMScaleSetName] <String> [[-InstanceId] <String[]>] [-AsJob] [-DefaultProfile

<IAzureContextContainer>] -Reimage [-Confirm] [-WhatIf] [<CommonParameters>]



Set-AzureRmVmss [-ResourceGroupName] <String> [-VMScaleSetName] <String> [[-InstanceId] <String[]>] [-AsJob] [-DefaultProfile

<IAzureContextContainer>] -ReimageAll [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmVmss cmdlet sets specific actions on the Virtual Machine Scale Set (VMSS). The only action this cmdlet supports is Reimage.





PARAMETERS

-AsJob [<SwitchParameter>]

Run cmdlet in the background and return a Job to track progress.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InstanceId <String[]>

The instance ID of the virtual machine.



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Reimage [<SwitchParameter>]

Indicates that the cmdlet reimages the VMSS.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ReimageAll [<SwitchParameter>]

Indicates that the cmdlet reimages all the disks in the VMSS.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group of the VMSS.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VMScaleSetName <String>

Species the name of the VMSS for which this cmdlet sets actions on.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

This cmdlet does not generate any output.







NOTES









Example 1: Reimage a VMSS



PS C:\\> Set-AzureRmVmss -Reimage -ResourceGroupName "ContosoGroup" -VMScaleSetName "ContosoVMSS"



This command reimages the VMSS named ContosoVMSS that belongs to the resource group named ContosoGroup.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... zurermvmss

Get-AzureRmVmssDiskEncryption

New-AzureRmVmss

Remove-AzureRmVmss

Restart-AzureRmVmss

Restart-AzureRmVmss

Stop-AzureRmVmss

Update-AzureRmVmss