|
| 1 | +--- |
| 2 | +title: Migrate to Azure Firewall Premium using Stop/Start |
| 3 | +description: Learn how to migrate from Azure Firewall Standard to Azure Firewall Premium using the Stop/Start method. |
| 4 | +author: vhorne |
| 5 | +ms.service: firewall |
| 6 | +services: firewall |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 10/21/2021 |
| 9 | +ms.author: victorh |
| 10 | +ms.custom: devx-track-azurepowershell |
| 11 | +--- |
| 12 | + |
| 13 | +# Migrate to Azure Firewall Premium using Stop/Start |
| 14 | + |
| 15 | +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. |
| 16 | + |
| 17 | +## Migrate a VNET Hub Firewall |
| 18 | + |
| 19 | +- Deallocate the Standard Firewall |
| 20 | + |
| 21 | + ```azurepowershell |
| 22 | + $azfw = Get-AzFirewall -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>" |
| 23 | + $azfw.Deallocate() |
| 24 | + Set-AzFirewall -AzureFirewall $azfw |
| 25 | + ``` |
| 26 | + |
| 27 | + |
| 28 | +- Allocate Firewall Premium |
| 29 | + |
| 30 | + ```azurepowershell |
| 31 | + $azfw = Get-AzFirewall -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>" |
| 32 | + $azfw.Sku.Tier="Premium" |
| 33 | + $azfw.Allocate($vnet,$pip, $mgmtpip) |
| 34 | + Set-AzFirewall -AzureFirewall $azfw |
| 35 | + ``` |
| 36 | + |
| 37 | +## Migrate a Secure Hub Firewall |
| 38 | + |
| 39 | +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). |
| 40 | + |
| 41 | +- Deallocate the Standard Firewall |
| 42 | + |
| 43 | + ```azurepowershell |
| 44 | + $azfw = Get-AzFirewall -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>" |
| 45 | + $azfw.Deallocate() |
| 46 | + Set-AzFirewall -AzureFirewall $azfw |
| 47 | + ``` |
| 48 | + |
| 49 | +- Allocate Firewall Premium |
| 50 | + |
| 51 | + ```azurepowershell |
| 52 | + $azfw = Get-AzFirewall -Name -Name "<firewall-name>" -ResourceGroupName "<resource-group-name>" |
| 53 | + $azfw.Sku.Tier="Premium" |
| 54 | + $azfw.Allocate($hub.id) |
| 55 | + Set-AzFirewall -AzureFirewall $azfw |
| 56 | + ``` |
| 57 | + |
| 58 | +## Next steps |
| 59 | + |
| 60 | +- [Learn more about Azure Firewall Premium features](premium-features.md) |
0 commit comments