Breyta

Deila með


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.

Configuration steps

  1. Get the target Bastion resource. Use the following example, modifying the values as needed.

    $bastion = Get-AzBastion -Name bastion -ResourceGroupName bastion-rg
    
  2. 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
    
  3. Confirm "Y" to overwrite the resource. After the resource is overwritten, the specified value is shown in the output for "Scale Units".

    Note

    Host scaling instance count requires Standard SKU tier or higher. Any changes to the host scale units will disrupt active bastion connections. s

Next steps

For more information about configuration settings, see Azure Bastion configuration settings.