1. Packages
  2. Azure Classic
  3. API Docs
  4. paloalto
  5. VirtualNetworkAppliance

We recommend using Azure Native.

Azure v6.23.0 published on Thursday, May 22, 2025 by Pulumi

azure.paloalto.VirtualNetworkAppliance

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.23.0 published on Thursday, May 22, 2025 by Pulumi

    Manages a Palo Alto Network Virtual Appliance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleVirtualWan = new azure.network.VirtualWan("example", {
        name: "example-virtualwan",
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleVirtualHub = new azure.network.VirtualHub("example", {
        name: "example-virtualhub",
        resourceGroupName: example.name,
        location: example.location,
        virtualWanId: exampleVirtualWan.id,
        addressPrefix: "10.0.0.0/23",
        tags: {
            hubSaaSPreview: "true",
        },
    });
    const exampleVirtualNetworkAppliance = new azure.paloalto.VirtualNetworkAppliance("example", {
        name: "example-appliance",
        virtualHubId: exampleVirtualHub.id,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_virtual_wan = azure.network.VirtualWan("example",
        name="example-virtualwan",
        resource_group_name=example.name,
        location=example.location)
    example_virtual_hub = azure.network.VirtualHub("example",
        name="example-virtualhub",
        resource_group_name=example.name,
        location=example.location,
        virtual_wan_id=example_virtual_wan.id,
        address_prefix="10.0.0.0/23",
        tags={
            "hubSaaSPreview": "true",
        })
    example_virtual_network_appliance = azure.paloalto.VirtualNetworkAppliance("example",
        name="example-appliance",
        virtual_hub_id=example_virtual_hub.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/paloalto"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualWan, err := network.NewVirtualWan(ctx, "example", &network.VirtualWanArgs{
    			Name:              pulumi.String("example-virtualwan"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualHub, err := network.NewVirtualHub(ctx, "example", &network.VirtualHubArgs{
    			Name:              pulumi.String("example-virtualhub"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			VirtualWanId:      exampleVirtualWan.ID(),
    			AddressPrefix:     pulumi.String("10.0.0.0/23"),
    			Tags: pulumi.StringMap{
    				"hubSaaSPreview": pulumi.String("true"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = paloalto.NewVirtualNetworkAppliance(ctx, "example", &paloalto.VirtualNetworkApplianceArgs{
    			Name:         pulumi.String("example-appliance"),
    			VirtualHubId: exampleVirtualHub.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleVirtualWan = new Azure.Network.VirtualWan("example", new()
        {
            Name = "example-virtualwan",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleVirtualHub = new Azure.Network.VirtualHub("example", new()
        {
            Name = "example-virtualhub",
            ResourceGroupName = example.Name,
            Location = example.Location,
            VirtualWanId = exampleVirtualWan.Id,
            AddressPrefix = "10.0.0.0/23",
            Tags = 
            {
                { "hubSaaSPreview", "true" },
            },
        });
    
        var exampleVirtualNetworkAppliance = new Azure.PaloAlto.VirtualNetworkAppliance("example", new()
        {
            Name = "example-appliance",
            VirtualHubId = exampleVirtualHub.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.network.VirtualWan;
    import com.pulumi.azure.network.VirtualWanArgs;
    import com.pulumi.azure.network.VirtualHub;
    import com.pulumi.azure.network.VirtualHubArgs;
    import com.pulumi.azure.paloalto.VirtualNetworkAppliance;
    import com.pulumi.azure.paloalto.VirtualNetworkApplianceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()
                .name("example-virtualwan")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
                .name("example-virtualhub")
                .resourceGroupName(example.name())
                .location(example.location())
                .virtualWanId(exampleVirtualWan.id())
                .addressPrefix("10.0.0.0/23")
                .tags(Map.of("hubSaaSPreview", "true"))
                .build());
    
            var exampleVirtualNetworkAppliance = new VirtualNetworkAppliance("exampleVirtualNetworkAppliance", VirtualNetworkApplianceArgs.builder()
                .name("example-appliance")
                .virtualHubId(exampleVirtualHub.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleVirtualWan:
        type: azure:network:VirtualWan
        name: example
        properties:
          name: example-virtualwan
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleVirtualHub:
        type: azure:network:VirtualHub
        name: example
        properties:
          name: example-virtualhub
          resourceGroupName: ${example.name}
          location: ${example.location}
          virtualWanId: ${exampleVirtualWan.id}
          addressPrefix: 10.0.0.0/23
          tags:
            hubSaaSPreview: 'true'
      exampleVirtualNetworkAppliance:
        type: azure:paloalto:VirtualNetworkAppliance
        name: example
        properties:
          name: example-appliance
          virtualHubId: ${exampleVirtualHub.id}
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.Network: 2024-05-01

    Create VirtualNetworkAppliance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualNetworkAppliance(name: string, args: VirtualNetworkApplianceArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualNetworkAppliance(resource_name: str,
                                args: VirtualNetworkApplianceArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualNetworkAppliance(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                virtual_hub_id: Optional[str] = None,
                                name: Optional[str] = None)
    func NewVirtualNetworkAppliance(ctx *Context, name string, args VirtualNetworkApplianceArgs, opts ...ResourceOption) (*VirtualNetworkAppliance, error)
    public VirtualNetworkAppliance(string name, VirtualNetworkApplianceArgs args, CustomResourceOptions? opts = null)
    public VirtualNetworkAppliance(String name, VirtualNetworkApplianceArgs args)
    public VirtualNetworkAppliance(String name, VirtualNetworkApplianceArgs args, CustomResourceOptions options)
    
    type: azure:paloalto:VirtualNetworkAppliance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualNetworkApplianceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualNetworkApplianceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualNetworkApplianceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualNetworkApplianceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualNetworkApplianceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualNetworkApplianceResource = new Azure.PaloAlto.VirtualNetworkAppliance("virtualNetworkApplianceResource", new()
    {
        VirtualHubId = "string",
        Name = "string",
    });
    
    example, err := paloalto.NewVirtualNetworkAppliance(ctx, "virtualNetworkApplianceResource", &paloalto.VirtualNetworkApplianceArgs{
    	VirtualHubId: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    })
    
    var virtualNetworkApplianceResource = new VirtualNetworkAppliance("virtualNetworkApplianceResource", VirtualNetworkApplianceArgs.builder()
        .virtualHubId("string")
        .name("string")
        .build());
    
    virtual_network_appliance_resource = azure.paloalto.VirtualNetworkAppliance("virtualNetworkApplianceResource",
        virtual_hub_id="string",
        name="string")
    
    const virtualNetworkApplianceResource = new azure.paloalto.VirtualNetworkAppliance("virtualNetworkApplianceResource", {
        virtualHubId: "string",
        name: "string",
    });
    
    type: azure:paloalto:VirtualNetworkAppliance
    properties:
        name: string
        virtualHubId: string
    

    VirtualNetworkAppliance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualNetworkAppliance resource accepts the following input properties:

    VirtualHubId string

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    Name string
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    VirtualHubId string

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    Name string
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtualHubId String

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name String
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtualHubId string

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name string
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtual_hub_id str

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name str
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtualHubId String

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name String
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualNetworkAppliance resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VirtualNetworkAppliance Resource

    Get an existing VirtualNetworkAppliance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VirtualNetworkApplianceState, opts?: CustomResourceOptions): VirtualNetworkAppliance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            virtual_hub_id: Optional[str] = None) -> VirtualNetworkAppliance
    func GetVirtualNetworkAppliance(ctx *Context, name string, id IDInput, state *VirtualNetworkApplianceState, opts ...ResourceOption) (*VirtualNetworkAppliance, error)
    public static VirtualNetworkAppliance Get(string name, Input<string> id, VirtualNetworkApplianceState? state, CustomResourceOptions? opts = null)
    public static VirtualNetworkAppliance get(String name, Output<String> id, VirtualNetworkApplianceState state, CustomResourceOptions options)
    resources:  _:    type: azure:paloalto:VirtualNetworkAppliance    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Name string
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    VirtualHubId string

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    Name string
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    VirtualHubId string

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name String
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtualHubId String

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name string
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtualHubId string

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name str
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtual_hub_id str

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    name String
    The name which should be used for this Palo Alto Local Network Virtual Appliance. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.
    virtualHubId String

    The ID of the Virtual Hub to deploy this appliance onto. Changing this forces a new Palo Alto Local Network Virtual Appliance to be created.

    Note: THe Virtual Hub must be created with the tag "hubSaaSPreview" = "true" to be compatible with this resource.

    Import

    Palo Alto Local Network Virtual Appliances can be imported using the resource id, e.g.

    $ pulumi import azure:paloalto/virtualNetworkAppliance:VirtualNetworkAppliance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/networkVirtualAppliances/myPANetworkVirtualAppliance
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.23.0 published on Thursday, May 22, 2025 by Pulumi