Open erichrockman opened 3 years ago
the panos_licensing resource does not delicense the firewalls. Consider the code below.
the licensing works fine when doing a tf apply. However, the authcodes are not released in the PA support portal when doing a tf destroy.
terraform { required_providers { panos = { source = "paloaltonetworks/panos"
}
} }
#########################################
resource "panos_license_api_key" "fw_license_api_key" { key = var.fwLicenseApiKey retain_key = true }
resource "panos_licensing" "fw_license" { auth_codes = var.fwAuthCodes delicense = true }
variable "fwAuthCodes" { default= ["xxxxxxx"] }
the panos_licensing resource does not delicense the firewalls. Consider the code below.
the licensing works fine when doing a tf apply. However, the authcodes are not released in the PA support portal when doing a tf destroy.
Require panos provider
terraform { required_providers { panos = { source = "paloaltonetworks/panos"
version = "1.8.2"
} }
#########################################
Licensing settings
#########################################
Set the api key. This must be created from the PA support site prior to use.
https://registry.terraform.io/providers/PaloAltoNetworks/panos/latest/docs/resources/license_api_key
resource "panos_license_api_key" "fw_license_api_key" { key = var.fwLicenseApiKey retain_key = true }
License the firewall using the auth codes
https://registry.terraform.io/providers/PaloAltoNetworks/panos/latest/docs/resources/licensing
resource "panos_licensing" "fw_license" { auth_codes = var.fwAuthCodes delicense = true }
variable "fwAuthCodes" { default= ["xxxxxxx"] }