VpnSite

class VpnSite : KotlinCustomResource

Manages a VPN Site.

Example Usage

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.VpnSite;
import com.pulumi.azure.network.VpnSiteArgs;
import com.pulumi.azure.network.inputs.VpnSiteLinkArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleVpnSite = new VpnSite("exampleVpnSite", VpnSiteArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.virtualWanId(exampleVirtualWan.id())
.addressCidrs("10.0.0.0/24")
.links(VpnSiteLinkArgs.builder()
.name("link1")
.ipAddress("10.0.0.1")
.build())
.build());
}
}

Import

VPN Sites can be imported using the resource id, e.g.

$ pulumi import azure:network/vpnSite:VpnSite example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/vpnSites/site1

Properties

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

Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site.

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

The model of the VPN device.

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

The name of the VPN device vendor.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val links: Output<List<VpnSiteLink>>?

One or more link blocks as defined below.

Link copied to clipboard
val location: Output<String>

The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created.

Link copied to clipboard
val name: Output<String>

The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created.

Link copied to clipboard

An o365_policy block as defined below.

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 where the VPN Site should exist. Changing this forces a new VPN Site to be created.

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

A mapping of tags which should be assigned to the VPN Site.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val virtualWanId: Output<String>

The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created.