Backup configuration of a Palo Alto Firewall With Powershell!

Here’s a quick script to backup the configuration of a PA Firewall using the API to a XML file, Similar to a few other scripts online, but a little cleaner. Modify the following to suit your environment

$uri ="https://10.255.254.249/api/"
$username = "deviceusername"
$password = "devicepassword"

 

Share this content:

1 thought on “Backup configuration of a Palo Alto Firewall With Powershell!”

  1. Thanks for this, my current issue is that there isn’t an API for the Panorama bundle. Using this script I’d have to connect to every single firewall individually. Panorama has the Schedule Config export natively via GUI and you can do it via the cli with “scp export config-bundle to”, but this is no API for that.

Leave a Comment

Your email address will not be published. Required fields are marked *