Spin up Palo Alto firewall VM in Azure via Terraform

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

Spin up Palo Alto firewall VM in Azure via Terraform

L0 Member

Hello Team,
I am trying to spin up vm series palo in azure via terraform. 
I am creating a linux virtual machine and trying to install pan-os into it from the market place and below is image reference i am using.

source_image_reference {
    publisher = "paloaltonetworks"
    offer     = "vmseries1"
    sku       = "byol"
    version   = "latest"
 
After I apply the terraform plan getting below error.
VM: '/subscriptions/d0200bf4-7b70-4fd9-9202-141ee9f53ae1/resourceGroups/TestingPalo/providers/Microsoft.Compute/virtualMachines/cns-palo-alto-vm'."
│   },
│   "name": "110a5c39-8c13-41c5-8c9d-c25e5ec807ae"
│ }
│ -----[end]-----


│   with azurerm_linux_virtual_machine.cns-palo,
│   on main.tf line 57, in resource "azurerm_linux_virtual_machine" "cns-palo":
│   57: resource "azurerm_linux_virtual_machine" "cns-palo" {

│   "error": {
│     "code": "VMMarketplaceInvalidInput",
│     "message": "Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request. VM: '/subscriptions/d0200bf4-7b70-4fd9-9202-141ee9f53ae1/resourceGroups/TestingPalo/providers/Microsoft.Compute/virtualMachines/cns-palo-alto-vm'."
│   },
│   "name": "110a5c39-8c13-41c5-8c9d-c25e5ec807ae"
│ }
│ -----[end]-----

Need help in resolving this.




0 REPLIES 0
  • 152 Views
  • 0 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!