- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-23-2021 02:58 PM - edited 04-23-2021 02:59 PM
Using the panos terraform provider, I'm able to grab the serial, and then add it to the resource which adds it to a device group, however, it errors out because it is unable to find the serial. If I add the serial as a managed device in panorama, and run the same tf again, then it works. But there is nowhere I can find on how to do this in tf...
resource "panos_panorama_device_group_entry" "add_to_dg" {
provider = panos.co_pano
device_group = var.device_group
serial = data.panos_system_info.config_panvm.info.serial
}
It creates the correct resource in the output:
# panos_panorama_device_group_entry.add_to_dg will be created
+ resource "panos_panorama_device_group_entry" "add_to_dg" {
+ device_group = "VPN-UE1"
+ id = (known after apply)
+ serial = "123456789"
I don't want to create a device group, I just want to add to it, and that's why this was recommended over panos_panorama_device_group
Anyone doing this through TF at all, or would I need to do this through the (rest)API?
05-06-2021 08:46 AM
Adding a serial number as a managed device in Panorama is currently missing from the Terraform provider. I don't think there's a github issue open for this right now...?
05-06-2021 08:46 AM
Adding a serial number as a managed device in Panorama is currently missing from the Terraform provider. I don't think there's a github issue open for this right now...?
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!