Adding managed device in Panorama via terraform panos provider

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Adding managed device in Panorama via terraform panos provider

L0 Member

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?
1 accepted solution

Accepted Solutions

L5 Sessionator

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...?

View solution in original post

1 REPLY 1

L5 Sessionator

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...?

  • 1 accepted solution
  • 3383 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!