Skip to content

Plan/Apply fails with "Device is unspecified" #488

@ao-haki

Description

@ao-haki

Describe the bug

I am new to terraform. I am looking at utilizing it.
I have been going through the documentation on pan.dev and registry.terraform.
All the code examples work before 2.0.2 after 2.0.2 i get the following erorr.

"Device is unspecified"

Expected behavior

I'd expect the terraform plan to complete succesfully

Current behavior

errors when trying to perform terraform apply

Possible solution

Steps to reproduce

This is the current code i am attempting to plan in versions greater than 2.0.2

terraform {
  required_providers {
    panos = {
      source = "PaloAltoNetworks/panos"
      version = "2.0.4"
    }
  }
}

provider "panos" {
  hostname = "redacted"
  username = "redacted"
  password = "redacted"
  skip_verify_certificate = true 
}

resource "panos_dns_settings" "example" {
  location = {
    system = {}
  }

  dns_settings = {
    servers = {
      primary   = "8.8.8.8"
      secondary = "1.1.1.1"
    }
  }
}

Screenshots

Working with PANOS v >2.0.2
Image

Working with PANOS v <2.0.1

Image

Context

Your Environment

Unmanaged PA-440

  • Version used: Terraform v1.12.2 on darwin_arm64 + provider registry.terraform.io/paloaltonetworks/panos v2.0.4
  • Operating System and version (desktop or mobile): Mac OS Sequoia 15.6
  • Link to your project:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions