LocalNetworkGateway

class LocalNetworkGateway : KotlinCustomResource

Manages a local network gateway connection over which specific connections can be configured.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "localNetworkGWTest",
location: "West Europe",
});
const home = new azure.network.LocalNetworkGateway("home", {
name: "backHome",
resourceGroupName: example.name,
location: example.location,
gatewayAddress: "12.13.14.15",
addressSpaces: ["10.0.0.0/16"],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="localNetworkGWTest",
location="West Europe")
home = azure.network.LocalNetworkGateway("home",
name="backHome",
resource_group_name=example.name,
location=example.location,
gateway_address="12.13.14.15",
address_spaces=["10.0.0.0/16"])
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 = "localNetworkGWTest",
Location = "West Europe",
});
var home = new Azure.Network.LocalNetworkGateway("home", new()
{
Name = "backHome",
ResourceGroupName = example.Name,
Location = example.Location,
GatewayAddress = "12.13.14.15",
AddressSpaces = new[]
{
"10.0.0.0/16",
},
});
});
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/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("localNetworkGWTest"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = network.NewLocalNetworkGateway(ctx, "home", &network.LocalNetworkGatewayArgs{
Name: pulumi.String("backHome"),
ResourceGroupName: example.Name,
Location: example.Location,
GatewayAddress: pulumi.String("12.13.14.15"),
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
})
if err != nil {
return err
}
return nil
})
}
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.LocalNetworkGateway;
import com.pulumi.azure.network.LocalNetworkGatewayArgs;
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("localNetworkGWTest")
.location("West Europe")
.build());
var home = new LocalNetworkGateway("home", LocalNetworkGatewayArgs.builder()
.name("backHome")
.resourceGroupName(example.name())
.location(example.location())
.gatewayAddress("12.13.14.15")
.addressSpaces("10.0.0.0/16")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: localNetworkGWTest
location: West Europe
home:
type: azure:network:LocalNetworkGateway
properties:
name: backHome
resourceGroupName: ${example.name}
location: ${example.location}
gatewayAddress: 12.13.14.15
addressSpaces:
- 10.0.0.0/16

Import

Local Network Gateways can be imported using the resource id, e.g.

$ pulumi import azure:network/localNetworkGateway:LocalNetworkGateway lng1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/localNetworkGateways/lng1

Properties

Link copied to clipboard
val addressSpaces: Output<List<String>>?

The list of string CIDRs representing the address spaces the gateway exposes.

Link copied to clipboard

A bgp_settings block as defined below containing the Local Network Gateway's BGP speaker settings.

Link copied to clipboard
val gatewayAddress: Output<String>?

The gateway IP address to connect with.

Link copied to clipboard
val gatewayFqdn: Output<String>?

The gateway FQDN to connect with.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The location/region where the local network gateway is created. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

The name of the local network gateway. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the resource group in which to create the local network gateway. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>