PointToPointVpnGateway
Manages a Point-to-Site VPN Gateway.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.Network.PointToPointVpnGateway("example", new Azure.Network.PointToPointVpnGatewayArgs
{
Location = azurerm_resource_group.Example.Location,
ResourceGroupName = azurerm_resource_group.Example.Resource_group_name,
VirtualHubId = azurerm_virtual_hub.Example.Id,
VpnServerConfigurationId = azurerm_vpn_server_configuration.Example.Id,
ScaleUnit = 1,
});
}
}
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 {
_, err = network.NewPointToPointVpnGateway(ctx, "example", &network.PointToPointVpnGatewayArgs{
Location: pulumi.String(azurerm_resource_group.Example.Location),
ResourceGroupName: pulumi.String(azurerm_resource_group.Example.Resource_group_name),
VirtualHubId: pulumi.String(azurerm_virtual_hub.Example.Id),
VpnServerConfigurationId: pulumi.String(azurerm_vpn_server_configuration.Example.Id),
ScaleUnit: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.network.PointToPointVpnGateway("example",
location=azurerm_resource_group["example"]["location"],
resource_group_name=azurerm_resource_group["example"]["resource_group_name"],
virtual_hub_id=azurerm_virtual_hub["example"]["id"],
vpn_server_configuration_id=azurerm_vpn_server_configuration["example"]["id"],
scale_unit=1)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.network.PointToPointVpnGateway("example", {
location: azurerm_resource_group.example.location,
resourceGroupName: azurerm_resource_group.example.resource_group_name,
virtualHubId: azurerm_virtual_hub.example.id,
vpnServerConfigurationId: azurerm_vpn_server_configuration.example.id,
scaleUnit: 1,
});Create a PointToPointVpnGateway Resource
new PointToPointVpnGateway(name: string, args: PointToPointVpnGatewayArgs, opts?: CustomResourceOptions);def PointToPointVpnGateway(resource_name, opts=None, connection_configuration=None, location=None, name=None, resource_group_name=None, scale_unit=None, tags=None, virtual_hub_id=None, vpn_server_configuration_id=None, __props__=None);func NewPointToPointVpnGateway(ctx *Context, name string, args PointToPointVpnGatewayArgs, opts ...ResourceOption) (*PointToPointVpnGateway, error)public PointToPointVpnGateway(string name, PointToPointVpnGatewayArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
PointToPointVpnGateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PointToPointVpnGateway resource accepts the following input properties:
- Connection
Configuration PointTo Point Vpn Gateway Connection Configuration Args A
connection_configurationblock as defined below.- Resource
Group 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.
- Scale
Unit int The Scale Unit for this Point-to-Site VPN Gateway.
- Virtual
Hub 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.
- Vpn
Server 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.
- 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.
- Dictionary<string, string>
A mapping of tags to assign to the Point-to-Site VPN Gateway.
- Connection
Configuration PointTo Point Vpn Gateway Connection Configuration A
connection_configurationblock as defined below.- Resource
Group 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.
- Scale
Unit int The Scale Unit for this Point-to-Site VPN Gateway.
- Virtual
Hub 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.
- Vpn
Server 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.
- 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.
- map[string]string
A mapping of tags to assign to the Point-to-Site VPN Gateway.
- connection
Configuration PointTo Point Vpn Gateway Connection Configuration A
connection_configurationblock as defined below.- resource
Group 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.
- scale
Unit number The Scale Unit for this Point-to-Site VPN Gateway.
- virtual
Hub 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.
- vpn
Server 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.
- 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.
- {[key: string]: string}
A mapping of tags to assign to the Point-to-Site VPN Gateway.
- connection_
configuration Dict[PointTo Point Vpn Gateway Connection Configuration] 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 float 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.
- 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.
- Dict[str, str]
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:
Look up an 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): PointToPointVpnGatewaystatic get(resource_name, id, opts=None, connection_configuration=None, location=None, name=None, resource_group_name=None, scale_unit=None, tags=None, virtual_hub_id=None, vpn_server_configuration_id=None, __props__=None);func 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)- 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.
The following state arguments are supported:
- Connection
Configuration PointTo Point Vpn Gateway Connection Configuration Args A
connection_configurationblock as defined below.- 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.
- Resource
Group 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.
- Scale
Unit 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.
- Virtual
Hub 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.
- Vpn
Server 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
Configuration PointTo Point Vpn Gateway Connection Configuration A
connection_configurationblock as defined below.- 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.
- Resource
Group 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.
- Scale
Unit 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.
- Virtual
Hub 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.
- Vpn
Server 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
Configuration PointTo Point Vpn Gateway Connection Configuration A
connection_configurationblock as defined below.- 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.
- resource
Group 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.
- scale
Unit 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.
- virtual
Hub 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.
- vpn
Server 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_
configuration Dict[PointTo Point Vpn Gateway Connection Configuration] A
connection_configurationblock as defined below.- 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.
- scale_
unit float The Scale Unit for this Point-to-Site VPN Gateway.
- Dict[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.
Supporting Types
PointToPointVpnGatewayConnectionConfiguration
- Name string
The Name which should be used for this Connection Configuration.
- Vpn
Client PointAddress Pool To Point Vpn Gateway Connection Configuration Vpn Client Address Pool Args A
vpn_client_address_poolblock as defined below.
- Name string
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.
- name string
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.
- name str
The Name which should be used for this Connection Configuration.
- vpn
Client Dict[PointAddress Pool To Point Vpn Gateway Connection Configuration Vpn Client Address Pool] A
vpn_client_address_poolblock as defined below.
PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPool
- Address
Prefixes List<string> A list of CIDR Ranges which should be used as Address Prefixes.
- Address
Prefixes []string A list of CIDR Ranges which should be used as Address Prefixes.
- address
Prefixes string[] A list of CIDR Ranges which should be used as Address Prefixes.
- address_
prefixes List[str] A list of CIDR Ranges which should be used as Address Prefixes.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.