Configure host scaling using Azure PowerShell
This article helps you add more scale units (instances) to Azure Bastion to accommodate additional concurrent client connections. The steps in this article use PowerShell. For more information about host scaling, see Configuration settings. You can also configure host scaling using the Azure portal.
Get the target Bastion resource. Use the following example, modifying the values as needed.
$bastion = Get-AzBastion -Name bastion -ResourceGroupName bastion-rg
Set 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 $bastion
Confirm "Y" to overwrite the resource. After the resource is overwritten, the specified value is shown in the output for "Scale Units".
Any changes to the host scale units will disrupt active bastion connections.
For more information about configuration settings, see Azure Bastion configuration settings.