GetFirewall

Use this data source to access information about an existing Azure Firewall.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Network.GetFirewall.InvokeAsync(new Azure.Network.GetFirewallArgs
        {
            Name = "firewall1",
            ResourceGroupName = "firewall-RG",
        }));
        this.FirewallPrivateIp = example.Apply(example => example.IpConfigurations[0].PrivateIpAddress);
    }

    [Output("firewallPrivateIp")]
    public Output<string> FirewallPrivateIp { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        example, err := network.LookupFirewall(ctx, &network.LookupFirewallArgs{
            Name:              "firewall1",
            ResourceGroupName: "firewall-RG",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("firewallPrivateIp", example.IpConfigurations[0].PrivateIpAddress)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.network.get_firewall(name="firewall1",
    resource_group_name="firewall-RG")
pulumi.export("firewallPrivateIp", example.ip_configurations[0]["private_ip_address"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.network.getFirewall({
    name: "firewall1",
    resourceGroupName: "firewall-RG",
});
export const firewallPrivateIp = example.then(example => example.ipConfigurations[0].privateIpAddress);

Using GetFirewall

function getFirewall(args: GetFirewallArgs, opts?: InvokeOptions): Promise<GetFirewallResult>
function  get_firewall(name=None, resource_group_name=None, opts=None)
func LookupFirewall(ctx *Context, args *LookupFirewallArgs, opts ...InvokeOption) (*LookupFirewallResult, error)

Note: This function is named LookupFirewall in the Go SDK.

public static class GetFirewall {
    public static Task<GetFirewallResult> InvokeAsync(GetFirewallArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Azure Firewall.

ResourceGroupName string

The name of the Resource Group in which the Azure Firewall exists.

Name string

The name of the Azure Firewall.

ResourceGroupName string

The name of the Resource Group in which the Azure Firewall exists.

name string

The name of the Azure Firewall.

resourceGroupName string

The name of the Resource Group in which the Azure Firewall exists.

name str

The name of the Azure Firewall.

resource_group_name str

The name of the Resource Group in which the Azure Firewall exists.

GetFirewall Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

IpConfigurations List<GetFirewallIpConfiguration>

A ip_configuration block as defined below.

Location string
Name string
ResourceGroupName string
Tags Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

IpConfigurations []GetFirewallIpConfiguration

A ip_configuration block as defined below.

Location string
Name string
ResourceGroupName string
Tags map[string]string
id string

The provider-assigned unique ID for this managed resource.

ipConfigurations GetFirewallIpConfiguration[]

A ip_configuration block as defined below.

location string
name string
resourceGroupName string
tags {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

ip_configurations List[GetFirewallIpConfiguration]

A ip_configuration block as defined below.

location str
name str
resource_group_name str
tags Dict[str, str]

Supporting Types

GetFirewallIpConfiguration

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

InternalPublicIpAddressId string
Name string

The name of the Azure Firewall.

PrivateIpAddress string

The private IP address of the Azure Firewall.

PublicIpAddressId string
SubnetId string

The Resource ID of the subnet where the Azure Firewall is deployed.

InternalPublicIpAddressId string
Name string

The name of the Azure Firewall.

PrivateIpAddress string

The private IP address of the Azure Firewall.

PublicIpAddressId string
SubnetId string

The Resource ID of the subnet where the Azure Firewall is deployed.

internalPublicIpAddressId string
name string

The name of the Azure Firewall.

privateIpAddress string

The private IP address of the Azure Firewall.

publicIpAddressId string
subnetId string

The Resource ID of the subnet where the Azure Firewall is deployed.

internalPublicIpAddressId str
name str

The name of the Azure Firewall.

private_ip_address str

The private IP address of the Azure Firewall.

public_ip_address_id str
subnet_id str

The Resource ID of the subnet where the Azure Firewall is deployed.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.