Skip to content

Commit 16d9c00

Browse files
committed
Replace portal sectoin with stop/start
1 parent 200ff3c commit 16d9c00

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

articles/firewall/premium-migrate.md

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: vhorne
55
ms.service: firewall
66
services: firewall
77
ms.topic: how-to
8-
ms.date: 09/13/2021
8+
ms.date: 10/21/2021
99
ms.author: victorh
1010
ms.custom: devx-track-azurepowershell
1111
---
@@ -164,45 +164,50 @@ TransformPolicyToPremium -Policy $policy
164164
165165
```
166166

167-
## Migrate an existing standard firewall using the Azure portal
167+
## Migrate using stop/start
168168

169-
This example shows how to use the Azure portal to migrate a standard firewall (classic rules) to Azure Firewall Premium with a Premium policy.
169+
If you use Azure Firewall Standard SKU with Firewall Policy, you can use the Allocate/Deallocate method to migrate your Firewall SKU to Premium. This migration approach is supported on both VNet Hub and Secure Hub Firewalls. When you migrate a Secure Hub deployment, it will preserve the firewall public IP address.
170+
171+
### Migrate a VNET Hub Firewall
170172

171-
1. From the Azure portal, select your standard firewall. On the **Overview** page, select **Migrate to firewall policy**.
173+
- Deallocate the Standard Firewall
172174

173-
:::image type="content" source="media/premium-migrate/firewall-overview-migrate.png" alt-text="Migrate to firewall policy":::
175+
```azurepowershell
176+
$azfw = Get-AzFirewall -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>"
177+
$azfw.Deallocate()
178+
Set-AzFirewall -AzureFirewall $azfw
179+
```
174180

175-
1. On the **Migrate to firewall policy** page, select **Review + create**.
176-
1. Select **Create**.
177181

178-
The deployment takes a few minutes to complete.
179-
1. Use the `Transform-Policy.ps1` [Azure PowerShell script](#migrate-an-existing-policy-using-azure-powershell) to transform this new standard policy into a Premium policy.
180-
1. On the portal, select your standard firewall resource.
181-
1. Under **Automation**, select **Export template**. Keep this browser tab open. You'll come back to it later.
182-
> [!TIP]
183-
> To ensure you don't lose the template, download and save it in case your browser tab gets closed or refreshed.
184-
1. Open a new browser tab, navigate to the Azure portal, and open the resource group that contains your firewall.
185-
1. Delete the existing standard firewall instance.
182+
- Allocate Firewall Premium
186183

187-
This takes a few minutes to complete.
184+
```azurepowershell
185+
$azfw = Get-AzFirewall -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>"
186+
$azfw.Sku.Tier="Premium"
187+
$azfw.Allocate($vnet,$pip, $mgmtpip)
188+
Set-AzFirewall -AzureFirewall $azfw
189+
```
188190

189-
1. Return to the browser tab with the exported template.
190-
1. Select **Deploy**, then on the **Custom deployment** page select **Edit template**.
191-
1. Edit the template text:
192-
193-
1. Under the `Microsoft.Network/azureFirewalls` resource, under `Properties`, `sku`, change the `tier` from "Standard" to "Premium".
194-
1. Under the template `Parameters`, change `defaultValue` for the `firewallPolicies_FirewallPolicy_,<your policy name>_externalid` from:
195-
196-
`"/subscriptions/<subscription id>/resourceGroups/<your resource group>/providers/Microsoft.Network/firewallPolicies/FirewallPolicy_<your policy name>"`
191+
### Migrate a Secure Hub Firewall
197192

198-
to:
193+
The minimum Azure PowerShell version requirement is 6.5.0. For more information, see [Az 6.5.0](https://www.powershellgallery.com/packages/Az/6.5.0).
199194

200-
`"/subscriptions/<subscription id>/resourceGroups/<your resource group>/providers/Microsoft.Network/firewallPolicies/FirewallPolicy_<your policy name>_premium"`
201-
1. Select **Save**.
202-
1. Select **Review + Create**.
203-
1. Select **Create**.
195+
- Deallocate the Standard Firewall
204196

205-
When the deployment completes, you can now configure all the new Azure Firewall Premium features.
197+
```azurepowershell
198+
$azfw = Get-AzFirewall -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>"
199+
$azfw.Deallocate()
200+
Set-AzFirewall -AzureFirewall $azfw
201+
```
202+
203+
- Allocate Firewall Premium
204+
205+
```azurepowershell
206+
$azfw = Get-AzFirewall -Name -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>"
207+
$azfw.Sku.Tier="Premium"
208+
$azfw.Allocate($hub.id)
209+
Set-AzFirewall -AzureFirewall $azfw
210+
```
206211

207212
## Next steps
208213

0 commit comments

Comments
 (0)