Start-AzVMss
Starts virtual machine scale set (VMSS) instances.
SYNTAX
Start-AzVmss
    [-ResourceGroupName] <String>
    [-VMScaleSetName] <String>
    [-InstanceId <String[]>]
    [-Force]
    [-AsJob]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
                DESCRIPTION
The Start-AzVmss cmdlet starts the virtual machine scale set (VMSS) instances. You can start all instances in a VMSS or specify instances by using the InstanceId parameter.
-InstanceId parameter with the instance ID.
                PARAMETERS
| Name | Type | Description | 
|---|---|---|
| -ResourceGroupName | String | Specifies the name of the resource group that the virtual machine scale set belongs to. | 
| -VMScaleSetName | String | Specifies the name of the virtual machine scale set. | 
| -InstanceId | String[] | Specifies an array of instance IDs to start. If not specified, all instances in the VMSS will be started. | 
| -Force | SwitchParameter | Forces the command to run without asking for user confirmation. | 
| -AsJob | SwitchParameter | Runs the cmdlet as a background job. | 
| -DefaultProfile | IAzureContextContainer | The credentials, account, tenant, and subscription that are used for communication with Azure. | 
| -WhatIf | SwitchParameter | Shows what would happen if the cmdlet runs. The cmdlet is not run. | 
| -Confirm | SwitchParameter | Prompts you for confirmation before running the cmdlet. | 
EXAMPLES
Example 1: Start all instances in a virtual machine scale set
Start-AzVmss -ResourceGroupName "Group001" -VMScaleSetName "VMSS001"This command starts all virtual machine instances in the VMSS named "VMSS001" within the resource group "Group001".
Example 2: Start specific instances in a virtual machine scale set
Start-AzVmss -ResourceGroupName "Group001" -VMScaleSetName "VMSS001" -InstanceId "0", "1", "3"This command starts instances with IDs "0", "1", and "3" in the specified virtual machine scale set.
Example 3: Start a virtual machine scale set without confirmation
Start-AzVmss -ResourceGroupName "Group001" -VMScaleSetName "VMSS001" -ForceThis command starts all instances in the VMSS without prompting for confirmation.
INPUTS
Microsoft.Azure.Commands.Compute.Models.VirtualMachineScaleSet
You can pipe a virtual machine scale set object to this cmdlet.
OUTPUTS
None
NOTES
Keywords: azure, azurerm, compute, vmss, virtual machine, scale set, start