Configure host scaling using Azure PowerShell
This article helps you add additional scale units (instances) to Azure Bastion to accommodate additional concurrent client connections using PowerShell. For more information about host scaling, see Configuration settings.
Configuration steps
Get the target Bastion resource. Use the example below, modifying the values as needed.
$bastion = Get-AzBastion -Name bastion -ResourceGroupName bastion-rgSet the target scale unit, also known as "instance count". In the following example, we set the scale units to 5.
$bastion.ScaleUnit = 5 Set-AzBastion -InputObject $bastionConfirm "Y" to overwrite the resource. After the resource is overwritten, the specified value is shown in the output for "Scale Units".
Note
Any changes to the host scale units will disrupt active bastion connections.
Next steps
For more information about configuration settings, see Azure Bastion configuration settings.