When you no longer need an instance of the VM-Series firewall, you can free up all active licenses—subscription licenses, VM-Capacity licenses, and support entitlements— using the web interface, CLI, or the XML API on the firewall or Panorama. The licenses are credited back to your account and you can use the same authorization codes on a different instance of the VM-Series firewall.
Deactivating a VM removes all the licenses/entitlements and places the VM-Series firewall in an unlicensed state; the firewall will not have a serial number and can support only a minimal number of sessions. Because the configuration on the firewall is left intact, you can re-apply a set of licenses and restore complete functionality on the firewall, if needed.
Make sure to deactivate licenses before you delete the VM-Series firewall. If you delete the firewall before deactivating the licenses you have two options: If the device was managed by Panorama, you can deactivate the license from Panorama. If the device was not managed by Panorama, you must contact Palo Alto Networks Customer Support.
Deactivate VM
From the firewall Log into the web interface and select Device > Licenses. Select Deactivate VM in the License Management section. Verify the list of licenses/entitlements that will be deactivated on the firewall. Pick one of the following options to start deactivating the VM: Click Continue, if the firewall can communicate directly with the Palo Alto Networks Licensing server. You will be prompted to reboot the firewall; on reboot the licenses are deactivated. Click Complete Manually, if the firewall does not have internet access. Click the Export license token link to save the token file to your local computer. For example, the token filename is 20150128_1307_dact_lic.01282015.130737.tok. You will be prompted to reboot the firewall; on reboot the licenses are deactivated. (For the manual process only) Complete the following tasks to register the changes with the Licensing server: Log into the Palo Alto Networks Customer Support web site. Click the Deactivate License(s) link on the Assets tab. While logged in to the Palo Alto Networks Customer Support web site, upload the token file to complete the deactivation.
From Panorama Log in to the Panorama web interface and select Panorama > Device Deployment > Licenses. Click Deactivate VMs, and select the VM-Series firewall that you want to deactivate.
Pick one of the following options to deactivate the VM: Click Continue, if Panorama can communicate directly with the Palo Alto Networks Licensing servers and can register the changes. To verify that the licenses have been deactivated on the firewall, click Refresh on Panorama > Device Deployment > Licenses. The firewall is automatically rebooted. Click Complete Manually, if Panorama does not have internet access. Panorama generates a token file. Click the Export license token link to save the token file to your local computer. The successful completion message is displayed on-screen, and the firewall will be automatically rebooted.
(For the manual process only) To use the token file register the changes with the licensing server, see step 5 above.
Remove the deactivated VM-Series firewall as a managed device on Panorama. Select Panorama > Managed Devices. Select the firewall that you deactivated from the list of managed devices, and click Delete. Instead of deleting the firewalls, if you prefer, you can create a separate device group and assign the deactivated VM-Series firewalls to this device group.

Related Documentation