Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.66 KB

configure-host-scaling-powershell.md

File metadata and controls

42 lines (31 loc) · 1.66 KB
title titleSuffix description services author ms.service ms.custom ms.topic ms.date ms.author
Add scale units for host scaling: PowerShell
Azure Bastion
Learn how to add more instances (scale units) to Azure Bastion using PowerShell
bastion
cherylmc
bastion
devx-track-azurepowershell
how-to
05/17/2023
cherylmc

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] 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.