We recommend using Azure Native.
azure.network.PointToPointVpnGateway
Explore with Pulumi AI
Manages a Point-to-Site VPN Gateway.
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",
});
const exampleVpnServerConfiguration = new azure.network.VpnServerConfiguration("example", {
    name: "example-config",
    resourceGroupName: example.name,
    location: example.location,
    vpnAuthenticationTypes: ["Certificate"],
    clientRootCertificates: [{
        name: "DigiCert-Federated-ID-Root-CA",
        publicCertData: `MIIDuzCCAqOgAwIBAgIQCHTZWCM+IlfFIRXIvyKSrjANBgkqhkiG9w0BAQsFADBn
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSYwJAYDVQQDEx1EaWdpQ2VydCBGZWRlcmF0ZWQgSUQg
Um9vdCBDQTAeFw0xMzAxMTUxMjAwMDBaFw0zMzAxMTUxMjAwMDBaMGcxCzAJBgNV
BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp
Y2VydC5jb20xJjAkBgNVBAMTHURpZ2lDZXJ0IEZlZGVyYXRlZCBJRCBSb290IENB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvAEB4pcCqnNNOWE6Ur5j
QPUH+1y1F9KdHTRSza6k5iDlXq1kGS1qAkuKtw9JsiNRrjltmFnzMZRBbX8Tlfl8
zAhBmb6dDduDGED01kBsTkgywYPxXVTKec0WxYEEF0oMn4wSYNl0lt2eJAKHXjNf
GTwiibdP8CUR2ghSM2sUTI8Nt1Omfc4SMHhGhYD64uJMbX98THQ/4LMGuYegou+d
GTiahfHtjn7AboSEknwAMJHCh5RlYZZ6B1O4QbKJ+34Q0eKgnI3X6Vc9u0zf6DH8
Dk+4zQDYRRTqTnVO3VT8jzqDlCRuNtq6YvryOWN74/dq8LQhUnXHvFyrsdMaE1X2
DwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV
HQ4EFgQUGRdkFnbGt1EWjKwbUne+5OaZvRYwHwYDVR0jBBgwFoAUGRdkFnbGt1EW
jKwbUne+5OaZvRYwDQYJKoZIhvcNAQELBQADggEBAHcqsHkrjpESqfuVTRiptJfP
9JbdtWqRTmOf6uJi2c8YVqI6XlKXsD8C1dUUaaHKLUJzvKiazibVuBwMIT84AyqR
QELn3e0BtgEymEygMU569b01ZPxoFSnNXc7qDZBDef8WfqAV/sxkTi8L9BkmFYfL
uGLOhRJOFprPdoDIUBB+tmCl3oDcBy3vnUeOEioz8zAkprcb3GHwHAK+vHmmfgcn
WsfMLH4JCLa/tRYL+Rw/N3ybCkDp00s0WUZ+AoDywSl0Q/ZEnNY0MsFiw6LyIdbq
M/s/1JRtO3bDSzD9TazRVzn2oBqzSa8VgIo5C1nOnoAKJTlsClJKvIhnRlaLQqk=
`,
    }],
});
const examplePointToPointVpnGateway = new azure.network.PointToPointVpnGateway("example", {
    name: "example-vpn-gateway",
    location: example.location,
    resourceGroupName: example.name,
    virtualHubId: exampleVirtualHub.id,
    vpnServerConfigurationId: exampleVpnServerConfiguration.id,
    scaleUnit: 1,
    connectionConfigurations: [{
        name: "example-gateway-config",
        vpnClientAddressPool: {
            addressPrefixes: ["10.0.2.0/24"],
        },
    }],
});
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")
example_vpn_server_configuration = azure.network.VpnServerConfiguration("example",
    name="example-config",
    resource_group_name=example.name,
    location=example.location,
    vpn_authentication_types=["Certificate"],
    client_root_certificates=[{
        "name": "DigiCert-Federated-ID-Root-CA",
        "public_cert_data": """MIIDuzCCAqOgAwIBAgIQCHTZWCM+IlfFIRXIvyKSrjANBgkqhkiG9w0BAQsFADBn
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSYwJAYDVQQDEx1EaWdpQ2VydCBGZWRlcmF0ZWQgSUQg
Um9vdCBDQTAeFw0xMzAxMTUxMjAwMDBaFw0zMzAxMTUxMjAwMDBaMGcxCzAJBgNV
BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp
Y2VydC5jb20xJjAkBgNVBAMTHURpZ2lDZXJ0IEZlZGVyYXRlZCBJRCBSb290IENB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvAEB4pcCqnNNOWE6Ur5j
QPUH+1y1F9KdHTRSza6k5iDlXq1kGS1qAkuKtw9JsiNRrjltmFnzMZRBbX8Tlfl8
zAhBmb6dDduDGED01kBsTkgywYPxXVTKec0WxYEEF0oMn4wSYNl0lt2eJAKHXjNf
GTwiibdP8CUR2ghSM2sUTI8Nt1Omfc4SMHhGhYD64uJMbX98THQ/4LMGuYegou+d
GTiahfHtjn7AboSEknwAMJHCh5RlYZZ6B1O4QbKJ+34Q0eKgnI3X6Vc9u0zf6DH8
Dk+4zQDYRRTqTnVO3VT8jzqDlCRuNtq6YvryOWN74/dq8LQhUnXHvFyrsdMaE1X2
DwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV
HQ4EFgQUGRdkFnbGt1EWjKwbUne+5OaZvRYwHwYDVR0jBBgwFoAUGRdkFnbGt1EW
jKwbUne+5OaZvRYwDQYJKoZIhvcNAQELBQADggEBAHcqsHkrjpESqfuVTRiptJfP
9JbdtWqRTmOf6uJi2c8YVqI6XlKXsD8C1dUUaaHKLUJzvKiazibVuBwMIT84AyqR
QELn3e0BtgEymEygMU569b01ZPxoFSnNXc7qDZBDef8WfqAV/sxkTi8L9BkmFYfL
uGLOhRJOFprPdoDIUBB+tmCl3oDcBy3vnUeOEioz8zAkprcb3GHwHAK+vHmmfgcn
WsfMLH4JCLa/tRYL+Rw/N3ybCkDp00s0WUZ+AoDywSl0Q/ZEnNY0MsFiw6LyIdbq
M/s/1JRtO3bDSzD9TazRVzn2oBqzSa8VgIo5C1nOnoAKJTlsClJKvIhnRlaLQqk=
""",
    }])
example_point_to_point_vpn_gateway = azure.network.PointToPointVpnGateway("example",
    name="example-vpn-gateway",
    location=example.location,
    resource_group_name=example.name,
    virtual_hub_id=example_virtual_hub.id,
    vpn_server_configuration_id=example_vpn_server_configuration.id,
    scale_unit=1,
    connection_configurations=[{
        "name": "example-gateway-config",
        "vpn_client_address_pool": {
            "address_prefixes": ["10.0.2.0/24"],
        },
    }])
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("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"),
		})
		if err != nil {
			return err
		}
		exampleVpnServerConfiguration, err := network.NewVpnServerConfiguration(ctx, "example", &network.VpnServerConfigurationArgs{
			Name:              pulumi.String("example-config"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			VpnAuthenticationTypes: pulumi.StringArray{
				pulumi.String("Certificate"),
			},
			ClientRootCertificates: network.VpnServerConfigurationClientRootCertificateArray{
				&network.VpnServerConfigurationClientRootCertificateArgs{
					Name: pulumi.String("DigiCert-Federated-ID-Root-CA"),
					PublicCertData: pulumi.String(`MIIDuzCCAqOgAwIBAgIQCHTZWCM+IlfFIRXIvyKSrjANBgkqhkiG9w0BAQsFADBn
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSYwJAYDVQQDEx1EaWdpQ2VydCBGZWRlcmF0ZWQgSUQg
Um9vdCBDQTAeFw0xMzAxMTUxMjAwMDBaFw0zMzAxMTUxMjAwMDBaMGcxCzAJBgNV
BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp
Y2VydC5jb20xJjAkBgNVBAMTHURpZ2lDZXJ0IEZlZGVyYXRlZCBJRCBSb290IENB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvAEB4pcCqnNNOWE6Ur5j
QPUH+1y1F9KdHTRSza6k5iDlXq1kGS1qAkuKtw9JsiNRrjltmFnzMZRBbX8Tlfl8
zAhBmb6dDduDGED01kBsTkgywYPxXVTKec0WxYEEF0oMn4wSYNl0lt2eJAKHXjNf
GTwiibdP8CUR2ghSM2sUTI8Nt1Omfc4SMHhGhYD64uJMbX98THQ/4LMGuYegou+d
GTiahfHtjn7AboSEknwAMJHCh5RlYZZ6B1O4QbKJ+34Q0eKgnI3X6Vc9u0zf6DH8
Dk+4zQDYRRTqTnVO3VT8jzqDlCRuNtq6YvryOWN74/dq8LQhUnXHvFyrsdMaE1X2
DwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV
HQ4EFgQUGRdkFnbGt1EWjKwbUne+5OaZvRYwHwYDVR0jBBgwFoAUGRdkFnbGt1EW
jKwbUne+5OaZvRYwDQYJKoZIhvcNAQELBQADggEBAHcqsHkrjpESqfuVTRiptJfP
9JbdtWqRTmOf6uJi2c8YVqI6XlKXsD8C1dUUaaHKLUJzvKiazibVuBwMIT84AyqR
QELn3e0BtgEymEygMU569b01ZPxoFSnNXc7qDZBDef8WfqAV/sxkTi8L9BkmFYfL
uGLOhRJOFprPdoDIUBB+tmCl3oDcBy3vnUeOEioz8zAkprcb3GHwHAK+vHmmfgcn
WsfMLH4JCLa/tRYL+Rw/N3ybCkDp00s0WUZ+AoDywSl0Q/ZEnNY0MsFiw6LyIdbq
M/s/1JRtO3bDSzD9TazRVzn2oBqzSa8VgIo5C1nOnoAKJTlsClJKvIhnRlaLQqk=
`),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = network.NewPointToPointVpnGateway(ctx, "example", &network.PointToPointVpnGatewayArgs{
			Name:                     pulumi.String("example-vpn-gateway"),
			Location:                 example.Location,
			ResourceGroupName:        example.Name,
			VirtualHubId:             exampleVirtualHub.ID(),
			VpnServerConfigurationId: exampleVpnServerConfiguration.ID(),
			ScaleUnit:                pulumi.Int(1),
			ConnectionConfigurations: network.PointToPointVpnGatewayConnectionConfigurationArray{
				&network.PointToPointVpnGatewayConnectionConfigurationArgs{
					Name: pulumi.String("example-gateway-config"),
					VpnClientAddressPool: &network.PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs{
						AddressPrefixes: pulumi.StringArray{
							pulumi.String("10.0.2.0/24"),
						},
					},
				},
			},
		})
		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",
    });
    var exampleVpnServerConfiguration = new Azure.Network.VpnServerConfiguration("example", new()
    {
        Name = "example-config",
        ResourceGroupName = example.Name,
        Location = example.Location,
        VpnAuthenticationTypes = new[]
        {
            "Certificate",
        },
        ClientRootCertificates = new[]
        {
            new Azure.Network.Inputs.VpnServerConfigurationClientRootCertificateArgs
            {
                Name = "DigiCert-Federated-ID-Root-CA",
                PublicCertData = @"MIIDuzCCAqOgAwIBAgIQCHTZWCM+IlfFIRXIvyKSrjANBgkqhkiG9w0BAQsFADBn
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSYwJAYDVQQDEx1EaWdpQ2VydCBGZWRlcmF0ZWQgSUQg
Um9vdCBDQTAeFw0xMzAxMTUxMjAwMDBaFw0zMzAxMTUxMjAwMDBaMGcxCzAJBgNV
BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp
Y2VydC5jb20xJjAkBgNVBAMTHURpZ2lDZXJ0IEZlZGVyYXRlZCBJRCBSb290IENB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvAEB4pcCqnNNOWE6Ur5j
QPUH+1y1F9KdHTRSza6k5iDlXq1kGS1qAkuKtw9JsiNRrjltmFnzMZRBbX8Tlfl8
zAhBmb6dDduDGED01kBsTkgywYPxXVTKec0WxYEEF0oMn4wSYNl0lt2eJAKHXjNf
GTwiibdP8CUR2ghSM2sUTI8Nt1Omfc4SMHhGhYD64uJMbX98THQ/4LMGuYegou+d
GTiahfHtjn7AboSEknwAMJHCh5RlYZZ6B1O4QbKJ+34Q0eKgnI3X6Vc9u0zf6DH8
Dk+4zQDYRRTqTnVO3VT8jzqDlCRuNtq6YvryOWN74/dq8LQhUnXHvFyrsdMaE1X2
DwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV
HQ4EFgQUGRdkFnbGt1EWjKwbUne+5OaZvRYwHwYDVR0jBBgwFoAUGRdkFnbGt1EW
jKwbUne+5OaZvRYwDQYJKoZIhvcNAQELBQADggEBAHcqsHkrjpESqfuVTRiptJfP
9JbdtWqRTmOf6uJi2c8YVqI6XlKXsD8C1dUUaaHKLUJzvKiazibVuBwMIT84AyqR
QELn3e0BtgEymEygMU569b01ZPxoFSnNXc7qDZBDef8WfqAV/sxkTi8L9BkmFYfL
uGLOhRJOFprPdoDIUBB+tmCl3oDcBy3vnUeOEioz8zAkprcb3GHwHAK+vHmmfgcn
WsfMLH4JCLa/tRYL+Rw/N3ybCkDp00s0WUZ+AoDywSl0Q/ZEnNY0MsFiw6LyIdbq
M/s/1JRtO3bDSzD9TazRVzn2oBqzSa8VgIo5C1nOnoAKJTlsClJKvIhnRlaLQqk=
",
            },
        },
    });
    var examplePointToPointVpnGateway = new Azure.Network.PointToPointVpnGateway("example", new()
    {
        Name = "example-vpn-gateway",
        Location = example.Location,
        ResourceGroupName = example.Name,
        VirtualHubId = exampleVirtualHub.Id,
        VpnServerConfigurationId = exampleVpnServerConfiguration.Id,
        ScaleUnit = 1,
        ConnectionConfigurations = new[]
        {
            new Azure.Network.Inputs.PointToPointVpnGatewayConnectionConfigurationArgs
            {
                Name = "example-gateway-config",
                VpnClientAddressPool = new Azure.Network.Inputs.PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs
                {
                    AddressPrefixes = new[]
                    {
                        "10.0.2.0/24",
                    },
                },
            },
        },
    });
});
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.network.VpnServerConfiguration;
import com.pulumi.azure.network.VpnServerConfigurationArgs;
import com.pulumi.azure.network.inputs.VpnServerConfigurationClientRootCertificateArgs;
import com.pulumi.azure.network.PointToPointVpnGateway;
import com.pulumi.azure.network.PointToPointVpnGatewayArgs;
import com.pulumi.azure.network.inputs.PointToPointVpnGatewayConnectionConfigurationArgs;
import com.pulumi.azure.network.inputs.PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs;
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")
            .build());
        var exampleVpnServerConfiguration = new VpnServerConfiguration("exampleVpnServerConfiguration", VpnServerConfigurationArgs.builder()
            .name("example-config")
            .resourceGroupName(example.name())
            .location(example.location())
            .vpnAuthenticationTypes("Certificate")
            .clientRootCertificates(VpnServerConfigurationClientRootCertificateArgs.builder()
                .name("DigiCert-Federated-ID-Root-CA")
                .publicCertData("""
MIIDuzCCAqOgAwIBAgIQCHTZWCM+IlfFIRXIvyKSrjANBgkqhkiG9w0BAQsFADBn
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSYwJAYDVQQDEx1EaWdpQ2VydCBGZWRlcmF0ZWQgSUQg
Um9vdCBDQTAeFw0xMzAxMTUxMjAwMDBaFw0zMzAxMTUxMjAwMDBaMGcxCzAJBgNV
BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp
Y2VydC5jb20xJjAkBgNVBAMTHURpZ2lDZXJ0IEZlZGVyYXRlZCBJRCBSb290IENB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvAEB4pcCqnNNOWE6Ur5j
QPUH+1y1F9KdHTRSza6k5iDlXq1kGS1qAkuKtw9JsiNRrjltmFnzMZRBbX8Tlfl8
zAhBmb6dDduDGED01kBsTkgywYPxXVTKec0WxYEEF0oMn4wSYNl0lt2eJAKHXjNf
GTwiibdP8CUR2ghSM2sUTI8Nt1Omfc4SMHhGhYD64uJMbX98THQ/4LMGuYegou+d
GTiahfHtjn7AboSEknwAMJHCh5RlYZZ6B1O4QbKJ+34Q0eKgnI3X6Vc9u0zf6DH8
Dk+4zQDYRRTqTnVO3VT8jzqDlCRuNtq6YvryOWN74/dq8LQhUnXHvFyrsdMaE1X2
DwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV
HQ4EFgQUGRdkFnbGt1EWjKwbUne+5OaZvRYwHwYDVR0jBBgwFoAUGRdkFnbGt1EW
jKwbUne+5OaZvRYwDQYJKoZIhvcNAQELBQADggEBAHcqsHkrjpESqfuVTRiptJfP
9JbdtWqRTmOf6uJi2c8YVqI6XlKXsD8C1dUUaaHKLUJzvKiazibVuBwMIT84AyqR
QELn3e0BtgEymEygMU569b01ZPxoFSnNXc7qDZBDef8WfqAV/sxkTi8L9BkmFYfL
uGLOhRJOFprPdoDIUBB+tmCl3oDcBy3vnUeOEioz8zAkprcb3GHwHAK+vHmmfgcn
WsfMLH4JCLa/tRYL+Rw/N3ybCkDp00s0WUZ+AoDywSl0Q/ZEnNY0MsFiw6LyIdbq
M/s/1JRtO3bDSzD9TazRVzn2oBqzSa8VgIo5C1nOnoAKJTlsClJKvIhnRlaLQqk=
                """)
                .build())
            .build());
        var examplePointToPointVpnGateway = new PointToPointVpnGateway("examplePointToPointVpnGateway", PointToPointVpnGatewayArgs.builder()
            .name("example-vpn-gateway")
            .location(example.location())
            .resourceGroupName(example.name())
            .virtualHubId(exampleVirtualHub.id())
            .vpnServerConfigurationId(exampleVpnServerConfiguration.id())
            .scaleUnit(1)
            .connectionConfigurations(PointToPointVpnGatewayConnectionConfigurationArgs.builder()
                .name("example-gateway-config")
                .vpnClientAddressPool(PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs.builder()
                    .addressPrefixes("10.0.2.0/24")
                    .build())
                .build())
            .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
  exampleVpnServerConfiguration:
    type: azure:network:VpnServerConfiguration
    name: example
    properties:
      name: example-config
      resourceGroupName: ${example.name}
      location: ${example.location}
      vpnAuthenticationTypes:
        - Certificate
      clientRootCertificates:
        - name: DigiCert-Federated-ID-Root-CA
          publicCertData: |
            MIIDuzCCAqOgAwIBAgIQCHTZWCM+IlfFIRXIvyKSrjANBgkqhkiG9w0BAQsFADBn
            MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
            d3cuZGlnaWNlcnQuY29tMSYwJAYDVQQDEx1EaWdpQ2VydCBGZWRlcmF0ZWQgSUQg
            Um9vdCBDQTAeFw0xMzAxMTUxMjAwMDBaFw0zMzAxMTUxMjAwMDBaMGcxCzAJBgNV
            BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp
            Y2VydC5jb20xJjAkBgNVBAMTHURpZ2lDZXJ0IEZlZGVyYXRlZCBJRCBSb290IENB
            MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvAEB4pcCqnNNOWE6Ur5j
            QPUH+1y1F9KdHTRSza6k5iDlXq1kGS1qAkuKtw9JsiNRrjltmFnzMZRBbX8Tlfl8
            zAhBmb6dDduDGED01kBsTkgywYPxXVTKec0WxYEEF0oMn4wSYNl0lt2eJAKHXjNf
            GTwiibdP8CUR2ghSM2sUTI8Nt1Omfc4SMHhGhYD64uJMbX98THQ/4LMGuYegou+d
            GTiahfHtjn7AboSEknwAMJHCh5RlYZZ6B1O4QbKJ+34Q0eKgnI3X6Vc9u0zf6DH8
            Dk+4zQDYRRTqTnVO3VT8jzqDlCRuNtq6YvryOWN74/dq8LQhUnXHvFyrsdMaE1X2
            DwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV
            HQ4EFgQUGRdkFnbGt1EWjKwbUne+5OaZvRYwHwYDVR0jBBgwFoAUGRdkFnbGt1EW
            jKwbUne+5OaZvRYwDQYJKoZIhvcNAQELBQADggEBAHcqsHkrjpESqfuVTRiptJfP
            9JbdtWqRTmOf6uJi2c8YVqI6XlKXsD8C1dUUaaHKLUJzvKiazibVuBwMIT84AyqR
            QELn3e0BtgEymEygMU569b01ZPxoFSnNXc7qDZBDef8WfqAV/sxkTi8L9BkmFYfL
            uGLOhRJOFprPdoDIUBB+tmCl3oDcBy3vnUeOEioz8zAkprcb3GHwHAK+vHmmfgcn
            WsfMLH4JCLa/tRYL+Rw/N3ybCkDp00s0WUZ+AoDywSl0Q/ZEnNY0MsFiw6LyIdbq
            M/s/1JRtO3bDSzD9TazRVzn2oBqzSa8VgIo5C1nOnoAKJTlsClJKvIhnRlaLQqk=            
  examplePointToPointVpnGateway:
    type: azure:network:PointToPointVpnGateway
    name: example
    properties:
      name: example-vpn-gateway
      location: ${example.location}
      resourceGroupName: ${example.name}
      virtualHubId: ${exampleVirtualHub.id}
      vpnServerConfigurationId: ${exampleVpnServerConfiguration.id}
      scaleUnit: 1
      connectionConfigurations:
        - name: example-gateway-config
          vpnClientAddressPool:
            addressPrefixes:
              - 10.0.2.0/24
Create PointToPointVpnGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PointToPointVpnGateway(name: string, args: PointToPointVpnGatewayArgs, opts?: CustomResourceOptions);@overload
def PointToPointVpnGateway(resource_name: str,
                           args: PointToPointVpnGatewayArgs,
                           opts: Optional[ResourceOptions] = None)
@overload
def PointToPointVpnGateway(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           connection_configurations: Optional[Sequence[PointToPointVpnGatewayConnectionConfigurationArgs]] = None,
                           resource_group_name: Optional[str] = None,
                           scale_unit: Optional[int] = None,
                           virtual_hub_id: Optional[str] = None,
                           vpn_server_configuration_id: Optional[str] = None,
                           dns_servers: Optional[Sequence[str]] = None,
                           location: Optional[str] = None,
                           name: Optional[str] = None,
                           routing_preference_internet_enabled: Optional[bool] = None,
                           tags: Optional[Mapping[str, str]] = None)func NewPointToPointVpnGateway(ctx *Context, name string, args PointToPointVpnGatewayArgs, opts ...ResourceOption) (*PointToPointVpnGateway, error)public PointToPointVpnGateway(string name, PointToPointVpnGatewayArgs args, CustomResourceOptions? opts = null)
public PointToPointVpnGateway(String name, PointToPointVpnGatewayArgs args)
public PointToPointVpnGateway(String name, PointToPointVpnGatewayArgs args, CustomResourceOptions options)
type: azure:network:PointToPointVpnGateway
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 PointToPointVpnGatewayArgs
- 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 PointToPointVpnGatewayArgs
- 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 PointToPointVpnGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PointToPointVpnGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PointToPointVpnGatewayArgs
- 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 pointToPointVpnGatewayResource = new Azure.Network.PointToPointVpnGateway("pointToPointVpnGatewayResource", new()
{
    ConnectionConfigurations = new[]
    {
        new Azure.Network.Inputs.PointToPointVpnGatewayConnectionConfigurationArgs
        {
            Name = "string",
            VpnClientAddressPool = new Azure.Network.Inputs.PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs
            {
                AddressPrefixes = new[]
                {
                    "string",
                },
            },
            InternetSecurityEnabled = false,
            Route = new Azure.Network.Inputs.PointToPointVpnGatewayConnectionConfigurationRouteArgs
            {
                AssociatedRouteTableId = "string",
                InboundRouteMapId = "string",
                OutboundRouteMapId = "string",
                PropagatedRouteTable = new Azure.Network.Inputs.PointToPointVpnGatewayConnectionConfigurationRoutePropagatedRouteTableArgs
                {
                    Ids = new[]
                    {
                        "string",
                    },
                    Labels = new[]
                    {
                        "string",
                    },
                },
            },
        },
    },
    ResourceGroupName = "string",
    ScaleUnit = 0,
    VirtualHubId = "string",
    VpnServerConfigurationId = "string",
    DnsServers = new[]
    {
        "string",
    },
    Location = "string",
    Name = "string",
    RoutingPreferenceInternetEnabled = false,
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := network.NewPointToPointVpnGateway(ctx, "pointToPointVpnGatewayResource", &network.PointToPointVpnGatewayArgs{
	ConnectionConfigurations: network.PointToPointVpnGatewayConnectionConfigurationArray{
		&network.PointToPointVpnGatewayConnectionConfigurationArgs{
			Name: pulumi.String("string"),
			VpnClientAddressPool: &network.PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs{
				AddressPrefixes: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			InternetSecurityEnabled: pulumi.Bool(false),
			Route: &network.PointToPointVpnGatewayConnectionConfigurationRouteArgs{
				AssociatedRouteTableId: pulumi.String("string"),
				InboundRouteMapId:      pulumi.String("string"),
				OutboundRouteMapId:     pulumi.String("string"),
				PropagatedRouteTable: &network.PointToPointVpnGatewayConnectionConfigurationRoutePropagatedRouteTableArgs{
					Ids: pulumi.StringArray{
						pulumi.String("string"),
					},
					Labels: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
		},
	},
	ResourceGroupName:        pulumi.String("string"),
	ScaleUnit:                pulumi.Int(0),
	VirtualHubId:             pulumi.String("string"),
	VpnServerConfigurationId: pulumi.String("string"),
	DnsServers: pulumi.StringArray{
		pulumi.String("string"),
	},
	Location:                         pulumi.String("string"),
	Name:                             pulumi.String("string"),
	RoutingPreferenceInternetEnabled: pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var pointToPointVpnGatewayResource = new PointToPointVpnGateway("pointToPointVpnGatewayResource", PointToPointVpnGatewayArgs.builder()
    .connectionConfigurations(PointToPointVpnGatewayConnectionConfigurationArgs.builder()
        .name("string")
        .vpnClientAddressPool(PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs.builder()
            .addressPrefixes("string")
            .build())
        .internetSecurityEnabled(false)
        .route(PointToPointVpnGatewayConnectionConfigurationRouteArgs.builder()
            .associatedRouteTableId("string")
            .inboundRouteMapId("string")
            .outboundRouteMapId("string")
            .propagatedRouteTable(PointToPointVpnGatewayConnectionConfigurationRoutePropagatedRouteTableArgs.builder()
                .ids("string")
                .labels("string")
                .build())
            .build())
        .build())
    .resourceGroupName("string")
    .scaleUnit(0)
    .virtualHubId("string")
    .vpnServerConfigurationId("string")
    .dnsServers("string")
    .location("string")
    .name("string")
    .routingPreferenceInternetEnabled(false)
    .tags(Map.of("string", "string"))
    .build());
point_to_point_vpn_gateway_resource = azure.network.PointToPointVpnGateway("pointToPointVpnGatewayResource",
    connection_configurations=[{
        "name": "string",
        "vpn_client_address_pool": {
            "address_prefixes": ["string"],
        },
        "internet_security_enabled": False,
        "route": {
            "associated_route_table_id": "string",
            "inbound_route_map_id": "string",
            "outbound_route_map_id": "string",
            "propagated_route_table": {
                "ids": ["string"],
                "labels": ["string"],
            },
        },
    }],
    resource_group_name="string",
    scale_unit=0,
    virtual_hub_id="string",
    vpn_server_configuration_id="string",
    dns_servers=["string"],
    location="string",
    name="string",
    routing_preference_internet_enabled=False,
    tags={
        "string": "string",
    })
const pointToPointVpnGatewayResource = new azure.network.PointToPointVpnGateway("pointToPointVpnGatewayResource", {
    connectionConfigurations: [{
        name: "string",
        vpnClientAddressPool: {
            addressPrefixes: ["string"],
        },
        internetSecurityEnabled: false,
        route: {
            associatedRouteTableId: "string",
            inboundRouteMapId: "string",
            outboundRouteMapId: "string",
            propagatedRouteTable: {
                ids: ["string"],
                labels: ["string"],
            },
        },
    }],
    resourceGroupName: "string",
    scaleUnit: 0,
    virtualHubId: "string",
    vpnServerConfigurationId: "string",
    dnsServers: ["string"],
    location: "string",
    name: "string",
    routingPreferenceInternetEnabled: false,
    tags: {
        string: "string",
    },
});
type: azure:network:PointToPointVpnGateway
properties:
    connectionConfigurations:
        - internetSecurityEnabled: false
          name: string
          route:
            associatedRouteTableId: string
            inboundRouteMapId: string
            outboundRouteMapId: string
            propagatedRouteTable:
                ids:
                    - string
                labels:
                    - string
          vpnClientAddressPool:
            addressPrefixes:
                - string
    dnsServers:
        - string
    location: string
    name: string
    resourceGroupName: string
    routingPreferenceInternetEnabled: false
    scaleUnit: 0
    tags:
        string: string
    virtualHubId: string
    vpnServerConfigurationId: string
PointToPointVpnGateway 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 PointToPointVpnGateway resource accepts the following input properties:
- ConnectionConfigurations List<PointTo Point Vpn Gateway Connection Configuration> 
- A connection_configurationblock as defined below.
- ResourceGroup stringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- ScaleUnit int
- The Scale Unit for this Point-to-Site VPN Gateway.
- VirtualHub stringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- VpnServer stringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- DnsServers List<string>
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- RoutingPreference boolInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- ConnectionConfigurations []PointTo Point Vpn Gateway Connection Configuration Args 
- A connection_configurationblock as defined below.
- ResourceGroup stringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- ScaleUnit int
- The Scale Unit for this Point-to-Site VPN Gateway.
- VirtualHub stringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- VpnServer stringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- DnsServers []string
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- RoutingPreference boolInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- connectionConfigurations List<PointTo Point Vpn Gateway Connection Configuration> 
- A connection_configurationblock as defined below.
- resourceGroup StringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- scaleUnit Integer
- The Scale Unit for this Point-to-Site VPN Gateway.
- virtualHub StringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpnServer StringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- dnsServers List<String>
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routingPreference BooleanInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- connectionConfigurations PointTo Point Vpn Gateway Connection Configuration[] 
- A connection_configurationblock as defined below.
- resourceGroup stringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- scaleUnit number
- The Scale Unit for this Point-to-Site VPN Gateway.
- virtualHub stringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpnServer stringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- dnsServers string[]
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routingPreference booleanInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- connection_configurations Sequence[PointTo Point Vpn Gateway Connection Configuration Args] 
- A connection_configurationblock as defined below.
- resource_group_ strname 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- scale_unit int
- The Scale Unit for this Point-to-Site VPN Gateway.
- virtual_hub_ strid 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpn_server_ strconfiguration_ id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- dns_servers Sequence[str]
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routing_preference_ boolinternet_ enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- connectionConfigurations List<Property Map>
- A connection_configurationblock as defined below.
- resourceGroup StringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- scaleUnit Number
- The Scale Unit for this Point-to-Site VPN Gateway.
- virtualHub StringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpnServer StringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- dnsServers List<String>
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routingPreference BooleanInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the PointToPointVpnGateway 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 PointToPointVpnGateway Resource
Get an existing PointToPointVpnGateway 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?: PointToPointVpnGatewayState, opts?: CustomResourceOptions): PointToPointVpnGateway@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        connection_configurations: Optional[Sequence[PointToPointVpnGatewayConnectionConfigurationArgs]] = None,
        dns_servers: Optional[Sequence[str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        routing_preference_internet_enabled: Optional[bool] = None,
        scale_unit: Optional[int] = None,
        tags: Optional[Mapping[str, str]] = None,
        virtual_hub_id: Optional[str] = None,
        vpn_server_configuration_id: Optional[str] = None) -> PointToPointVpnGatewayfunc GetPointToPointVpnGateway(ctx *Context, name string, id IDInput, state *PointToPointVpnGatewayState, opts ...ResourceOption) (*PointToPointVpnGateway, error)public static PointToPointVpnGateway Get(string name, Input<string> id, PointToPointVpnGatewayState? state, CustomResourceOptions? opts = null)public static PointToPointVpnGateway get(String name, Output<String> id, PointToPointVpnGatewayState state, CustomResourceOptions options)resources:  _:    type: azure:network:PointToPointVpnGateway    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.
- ConnectionConfigurations List<PointTo Point Vpn Gateway Connection Configuration> 
- A connection_configurationblock as defined below.
- DnsServers List<string>
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- RoutingPreference boolInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- ScaleUnit int
- The Scale Unit for this Point-to-Site VPN Gateway.
- Dictionary<string, string>
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- VirtualHub stringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- VpnServer stringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- ConnectionConfigurations []PointTo Point Vpn Gateway Connection Configuration Args 
- A connection_configurationblock as defined below.
- DnsServers []string
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- RoutingPreference boolInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- ScaleUnit int
- The Scale Unit for this Point-to-Site VPN Gateway.
- map[string]string
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- VirtualHub stringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- VpnServer stringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- connectionConfigurations List<PointTo Point Vpn Gateway Connection Configuration> 
- A connection_configurationblock as defined below.
- dnsServers List<String>
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routingPreference BooleanInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- scaleUnit Integer
- The Scale Unit for this Point-to-Site VPN Gateway.
- Map<String,String>
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- virtualHub StringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpnServer StringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- connectionConfigurations PointTo Point Vpn Gateway Connection Configuration[] 
- A connection_configurationblock as defined below.
- dnsServers string[]
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- resourceGroup stringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routingPreference booleanInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- scaleUnit number
- The Scale Unit for this Point-to-Site VPN Gateway.
- {[key: string]: string}
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- virtualHub stringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpnServer stringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- connection_configurations Sequence[PointTo Point Vpn Gateway Connection Configuration Args] 
- A connection_configurationblock as defined below.
- dns_servers Sequence[str]
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- resource_group_ strname 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routing_preference_ boolinternet_ enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- scale_unit int
- The Scale Unit for this Point-to-Site VPN Gateway.
- Mapping[str, str]
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- virtual_hub_ strid 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpn_server_ strconfiguration_ id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
- connectionConfigurations List<Property Map>
- A connection_configurationblock as defined below.
- dnsServers List<String>
- A list of IP Addresses of DNS Servers for the Point-to-Site VPN Gateway.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group in which to create the Point-to-Site VPN Gateway. Changing this forces a new resource to be created.
- routingPreference BooleanInternet Enabled 
- Is the Routing Preference for the Public IP Interface of the VPN Gateway enabled? Defaults to false. Changing this forces a new resource to be created.
- scaleUnit Number
- The Scale Unit for this Point-to-Site VPN Gateway.
- Map<String>
- A mapping of tags to assign to the Point-to-Site VPN Gateway.
- virtualHub StringId 
- The ID of the Virtual Hub where this Point-to-Site VPN Gateway should exist. Changing this forces a new resource to be created.
- vpnServer StringConfiguration Id 
- The ID of the VPN Server Configuration which this Point-to-Site VPN Gateway should use. Changing this forces a new resource to be created.
Supporting Types
PointToPointVpnGatewayConnectionConfiguration, PointToPointVpnGatewayConnectionConfigurationArgs              
- Name string
- The Name which should be used for this Connection Configuration.
- VpnClient PointAddress Pool To Point Vpn Gateway Connection Configuration Vpn Client Address Pool 
- A vpn_client_address_poolblock as defined below.
- InternetSecurity boolEnabled 
- Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
- Route
PointTo Point Vpn Gateway Connection Configuration Route 
- A routeblock as defined below.
- Name string
- The Name which should be used for this Connection Configuration.
- VpnClient PointAddress Pool To Point Vpn Gateway Connection Configuration Vpn Client Address Pool 
- A vpn_client_address_poolblock as defined below.
- InternetSecurity boolEnabled 
- Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
- Route
PointTo Point Vpn Gateway Connection Configuration Route 
- A routeblock as defined below.
- name String
- The Name which should be used for this Connection Configuration.
- vpnClient PointAddress Pool To Point Vpn Gateway Connection Configuration Vpn Client Address Pool 
- A vpn_client_address_poolblock as defined below.
- internetSecurity BooleanEnabled 
- Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
- route
PointTo Point Vpn Gateway Connection Configuration Route 
- A routeblock as defined below.
- name string
- The Name which should be used for this Connection Configuration.
- vpnClient PointAddress Pool To Point Vpn Gateway Connection Configuration Vpn Client Address Pool 
- A vpn_client_address_poolblock as defined below.
- internetSecurity booleanEnabled 
- Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
- route
PointTo Point Vpn Gateway Connection Configuration Route 
- A routeblock as defined below.
- name str
- The Name which should be used for this Connection Configuration.
- vpn_client_ Pointaddress_ pool To Point Vpn Gateway Connection Configuration Vpn Client Address Pool 
- A vpn_client_address_poolblock as defined below.
- internet_security_ boolenabled 
- Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
- route
PointTo Point Vpn Gateway Connection Configuration Route 
- A routeblock as defined below.
- name String
- The Name which should be used for this Connection Configuration.
- vpnClient Property MapAddress Pool 
- A vpn_client_address_poolblock as defined below.
- internetSecurity BooleanEnabled 
- Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to false.
- route Property Map
- A routeblock as defined below.
PointToPointVpnGatewayConnectionConfigurationRoute, PointToPointVpnGatewayConnectionConfigurationRouteArgs                
- AssociatedRoute stringTable Id 
- The Virtual Hub Route Table resource id associated with this Routing Configuration.
- InboundRoute stringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- OutboundRoute stringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- PropagatedRoute PointTable To Point Vpn Gateway Connection Configuration Route Propagated Route Table 
- A propagated_route_tableblock as defined below.
- AssociatedRoute stringTable Id 
- The Virtual Hub Route Table resource id associated with this Routing Configuration.
- InboundRoute stringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- OutboundRoute stringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- PropagatedRoute PointTable To Point Vpn Gateway Connection Configuration Route Propagated Route Table 
- A propagated_route_tableblock as defined below.
- associatedRoute StringTable Id 
- The Virtual Hub Route Table resource id associated with this Routing Configuration.
- inboundRoute StringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outboundRoute StringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagatedRoute PointTable To Point Vpn Gateway Connection Configuration Route Propagated Route Table 
- A propagated_route_tableblock as defined below.
- associatedRoute stringTable Id 
- The Virtual Hub Route Table resource id associated with this Routing Configuration.
- inboundRoute stringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outboundRoute stringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagatedRoute PointTable To Point Vpn Gateway Connection Configuration Route Propagated Route Table 
- A propagated_route_tableblock as defined below.
- associated_route_ strtable_ id 
- The Virtual Hub Route Table resource id associated with this Routing Configuration.
- inbound_route_ strmap_ id 
- The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outbound_route_ strmap_ id 
- The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagated_route_ Pointtable To Point Vpn Gateway Connection Configuration Route Propagated Route Table 
- A propagated_route_tableblock as defined below.
- associatedRoute StringTable Id 
- The Virtual Hub Route Table resource id associated with this Routing Configuration.
- inboundRoute StringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for inbound learned routes.
- outboundRoute StringMap Id 
- The resource ID of the Route Map associated with this Routing Configuration for outbound advertised routes.
- propagatedRoute Property MapTable 
- A propagated_route_tableblock as defined below.
PointToPointVpnGatewayConnectionConfigurationRoutePropagatedRouteTable, PointToPointVpnGatewayConnectionConfigurationRoutePropagatedRouteTableArgs                      
PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPool, PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs                      
- AddressPrefixes List<string>
- A list of CIDR Ranges which should be used as Address Prefixes.
- AddressPrefixes []string
- A list of CIDR Ranges which should be used as Address Prefixes.
- addressPrefixes List<String>
- A list of CIDR Ranges which should be used as Address Prefixes.
- addressPrefixes string[]
- A list of CIDR Ranges which should be used as Address Prefixes.
- address_prefixes Sequence[str]
- A list of CIDR Ranges which should be used as Address Prefixes.
- addressPrefixes List<String>
- A list of CIDR Ranges which should be used as Address Prefixes.
Import
Point-to-Site VPN Gateway’s can be imported using the resource id, e.g.
$ pulumi import azure:network/pointToPointVpnGateway:PointToPointVpnGateway example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/p2sVpnGateways/gateway1
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 azurermTerraform Provider.