Skip to content

Commit 742391a

Browse files
author
Abdullah Bell
committed
updated steps
1 parent cca554b commit 742391a

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

articles/bastion/upgrade-sku.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ To compare SKU features and determine which tier is right for you, see [Choose t
2626

2727
Before upgrading your Azure Bastion SKU, verify the following requirements:
2828

29+
- **Azure CLI**: If using Azure CLI, install the [bastion extension](/cli/azure/network/bastion). The extension installs automatically the first time you run an `az network bastion` command. Requires Azure CLI version 2.62.0 or higher.
2930
- **Permissions**: You need Contributor or Owner role on the resource group containing your Bastion host.
3031
- **Subnet requirements** (Developer SKU upgrade only): A subnet named **AzureBastionSubnet** with a prefix of /26 or larger (/25, /24, etc.) must exist in your virtual network or be created before upgrading.
3132
- **Public IP** (Developer SKU upgrade only): A Standard SKU public IP address with static allocation is required unless you're deploying Premium SKU with private-only configuration.
@@ -57,6 +58,9 @@ Run the following command to view your current Bastion SKU:
5758
az network bastion show --name <bastion-name> --resource-group <resource-group-name> --query sku.name --output tsv
5859
```
5960

61+
> [!IMPORTANT]
62+
> When using `az network bastion update`, you must include the `--location` parameter matching the region of your existing Bastion host. If omitted, the CLI may default to a different region, resulting in an `InvalidResourceLocation` error.
63+
6064
---
6165

6266
## Upgrade from Developer SKU
@@ -107,15 +111,23 @@ The upgrade takes approximately 10 minutes to complete.
107111

108112
1. **Upgrade the Bastion host**:
109113

114+
The `az network bastion update` command can't add the IP configuration required for dedicated infrastructure. Delete the Developer SKU Bastion host and create a new one with the target SKU:
115+
110116
```azurecli
111-
az network bastion update \
117+
az network bastion delete \
112118
--name <bastion-name> \
113-
--resource-group <resource-group-name> \
114-
--sku <Standard|Premium>
119+
--resource-group <resource-group-name>
115120
```
116121

117-
> [!NOTE]
118-
> If the update command fails when upgrading from Developer SKU, delete and recreate the Bastion host with the new SKU. The Developer to dedicated infrastructure transition isn't always supported via CLI update.
122+
```azurecli
123+
az network bastion create \
124+
--name <bastion-name> \
125+
--resource-group <resource-group-name> \
126+
--vnet-name <vnet-name> \
127+
--public-ip-address <public-ip-name> \
128+
--sku <Basic|Standard|Premium> \
129+
--location <location>
130+
```
119131

120132
---
121133

@@ -141,7 +153,8 @@ Run the following command to upgrade your Bastion SKU:
141153
az network bastion update \
142154
--name <bastion-name> \
143155
--resource-group <resource-group-name> \
144-
--sku <Standard|Premium>
156+
--location <location> \
157+
--sku name=<Standard|Premium>
145158
```
146159

147160
To enable features during the upgrade, add the appropriate parameters. For example, to enable native client support and IP-based connection:
@@ -150,7 +163,8 @@ To enable features during the upgrade, add the appropriate parameters. For examp
150163
az network bastion update \
151164
--name <bastion-name> \
152165
--resource-group <resource-group-name> \
153-
--sku Standard \
166+
--location <location> \
167+
--sku name=Standard \
154168
--enable-tunneling true \
155169
--enable-ip-connect true
156170
```

0 commit comments

Comments
 (0)