Technical Tip: Recovering FortiGate from a bad OS disk after a failed upgrade in Azure
| Description | The article describes how to swap the OS disk of a FortiGate in Azure and restore the backup configuration file in the event of a failed upgrade or disk corruption. |
| Scope | FortiGate-VM in Azure. |
| Solution | In rare instances, the FortiGate OS (Operating System) Disk in Azure's Public Cloud may become corrupted after an upgrade.
execute shutdown
Note: Depending on the deployment time, the FortiGate could have been deployed as a Gen1 (Generation 1) VM. It is important to create the new FortiGate in the same VM Generation as the non-working one. Otherwise, restoring a Gen2 VM snapshot to a Gen1 deployment will not be possible.
When deploying a new FortiGate from the Azure store on the v7.4 or v7.6 branch, Azure will not provide the option to select a Generation 1 VM type.
If the non-working VM is running v7.4 or v7.6 and using the Generation 1 VM type, the workaround is to deploy a FortiGate for the v7.2 branch, upgrade it to the same version as the non-working VM, and then proceed with the snapshot procedure.
Detailed information regarding VM Generation support in Azure is available at the following link: Support for Generation 2 VMs on Azure
This guide also applies when migrating from Azure unmanaged disks to managed disks, providing an alternative method to preserve the firewall state in case of issues during migration. Note that the native Azure Backup feature does not support FortiGate VMs. Only Azure-approved distributions are supported: |




