We recommend using Azure Native.
azure.network.VpnServerConfigurationPolicyGroup
Explore with Pulumi AI
Manages a VPN Server Configuration Policy Group.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleVpnServerConfiguration = new Azure.Network.VpnServerConfiguration("exampleVpnServerConfiguration", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VpnAuthenticationTypes = new[]
{
"Radius",
},
Radius = new Azure.Network.Inputs.VpnServerConfigurationRadiusArgs
{
Servers = new[]
{
new Azure.Network.Inputs.VpnServerConfigurationRadiusServerArgs
{
Address = "10.105.1.1",
Secret = "vindicators-the-return-of-worldender",
Score = 15,
},
},
},
});
var exampleVpnServerConfigurationPolicyGroup = new Azure.Network.VpnServerConfigurationPolicyGroup("exampleVpnServerConfigurationPolicyGroup", new()
{
VpnServerConfigurationId = exampleVpnServerConfiguration.Id,
Policies = new[]
{
new Azure.Network.Inputs.VpnServerConfigurationPolicyGroupPolicyArgs
{
Name = "policy1",
Type = "RadiusAzureGroupId",
Value = "6ad1bd08",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVpnServerConfiguration, err := network.NewVpnServerConfiguration(ctx, "exampleVpnServerConfiguration", &network.VpnServerConfigurationArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
VpnAuthenticationTypes: pulumi.StringArray{
pulumi.String("Radius"),
},
Radius: &network.VpnServerConfigurationRadiusArgs{
Servers: network.VpnServerConfigurationRadiusServerArray{
&network.VpnServerConfigurationRadiusServerArgs{
Address: pulumi.String("10.105.1.1"),
Secret: pulumi.String("vindicators-the-return-of-worldender"),
Score: pulumi.Int(15),
},
},
},
})
if err != nil {
return err
}
_, err = network.NewVpnServerConfigurationPolicyGroup(ctx, "exampleVpnServerConfigurationPolicyGroup", &network.VpnServerConfigurationPolicyGroupArgs{
VpnServerConfigurationId: exampleVpnServerConfiguration.ID(),
Policies: network.VpnServerConfigurationPolicyGroupPolicyArray{
&network.VpnServerConfigurationPolicyGroupPolicyArgs{
Name: pulumi.String("policy1"),
Type: pulumi.String("RadiusAzureGroupId"),
Value: pulumi.String("6ad1bd08"),
},
},
})
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.VpnServerConfiguration;
import com.pulumi.azure.network.VpnServerConfigurationArgs;
import com.pulumi.azure.network.inputs.VpnServerConfigurationRadiusArgs;
import com.pulumi.azure.network.VpnServerConfigurationPolicyGroup;
import com.pulumi.azure.network.VpnServerConfigurationPolicyGroupArgs;
import com.pulumi.azure.network.inputs.VpnServerConfigurationPolicyGroupPolicyArgs;
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 exampleVpnServerConfiguration = new VpnServerConfiguration("exampleVpnServerConfiguration", VpnServerConfigurationArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.vpnAuthenticationTypes("Radius")
.radius(VpnServerConfigurationRadiusArgs.builder()
.servers(VpnServerConfigurationRadiusServerArgs.builder()
.address("10.105.1.1")
.secret("vindicators-the-return-of-worldender")
.score(15)
.build())
.build())
.build());
var exampleVpnServerConfigurationPolicyGroup = new VpnServerConfigurationPolicyGroup("exampleVpnServerConfigurationPolicyGroup", VpnServerConfigurationPolicyGroupArgs.builder()
.vpnServerConfigurationId(exampleVpnServerConfiguration.id())
.policies(VpnServerConfigurationPolicyGroupPolicyArgs.builder()
.name("policy1")
.type("RadiusAzureGroupId")
.value("6ad1bd08")
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_vpn_server_configuration = azure.network.VpnServerConfiguration("exampleVpnServerConfiguration",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
vpn_authentication_types=["Radius"],
radius=azure.network.VpnServerConfigurationRadiusArgs(
servers=[azure.network.VpnServerConfigurationRadiusServerArgs(
address="10.105.1.1",
secret="vindicators-the-return-of-worldender",
score=15,
)],
))
example_vpn_server_configuration_policy_group = azure.network.VpnServerConfigurationPolicyGroup("exampleVpnServerConfigurationPolicyGroup",
vpn_server_configuration_id=example_vpn_server_configuration.id,
policies=[azure.network.VpnServerConfigurationPolicyGroupPolicyArgs(
name="policy1",
type="RadiusAzureGroupId",
value="6ad1bd08",
)])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVpnServerConfiguration = new azure.network.VpnServerConfiguration("exampleVpnServerConfiguration", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
vpnAuthenticationTypes: ["Radius"],
radius: {
servers: [{
address: "10.105.1.1",
secret: "vindicators-the-return-of-worldender",
score: 15,
}],
},
});
const exampleVpnServerConfigurationPolicyGroup = new azure.network.VpnServerConfigurationPolicyGroup("exampleVpnServerConfigurationPolicyGroup", {
vpnServerConfigurationId: exampleVpnServerConfiguration.id,
policies: [{
name: "policy1",
type: "RadiusAzureGroupId",
value: "6ad1bd08",
}],
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleVpnServerConfiguration:
type: azure:network:VpnServerConfiguration
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
vpnAuthenticationTypes:
- Radius
radius:
servers:
- address: 10.105.1.1
secret: vindicators-the-return-of-worldender
score: 15
exampleVpnServerConfigurationPolicyGroup:
type: azure:network:VpnServerConfigurationPolicyGroup
properties:
vpnServerConfigurationId: ${exampleVpnServerConfiguration.id}
policies:
- name: policy1
type: RadiusAzureGroupId
value: 6ad1bd08
Create VpnServerConfigurationPolicyGroup Resource
new VpnServerConfigurationPolicyGroup(name: string, args: VpnServerConfigurationPolicyGroupArgs, opts?: CustomResourceOptions);
@overload
def VpnServerConfigurationPolicyGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
policies: Optional[Sequence[VpnServerConfigurationPolicyGroupPolicyArgs]] = None,
priority: Optional[int] = None,
vpn_server_configuration_id: Optional[str] = None)
@overload
def VpnServerConfigurationPolicyGroup(resource_name: str,
args: VpnServerConfigurationPolicyGroupArgs,
opts: Optional[ResourceOptions] = None)
func NewVpnServerConfigurationPolicyGroup(ctx *Context, name string, args VpnServerConfigurationPolicyGroupArgs, opts ...ResourceOption) (*VpnServerConfigurationPolicyGroup, error)
public VpnServerConfigurationPolicyGroup(string name, VpnServerConfigurationPolicyGroupArgs args, CustomResourceOptions? opts = null)
public VpnServerConfigurationPolicyGroup(String name, VpnServerConfigurationPolicyGroupArgs args)
public VpnServerConfigurationPolicyGroup(String name, VpnServerConfigurationPolicyGroupArgs args, CustomResourceOptions options)
type: azure:network:VpnServerConfigurationPolicyGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnServerConfigurationPolicyGroupArgs
- 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 VpnServerConfigurationPolicyGroupArgs
- 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 VpnServerConfigurationPolicyGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnServerConfigurationPolicyGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnServerConfigurationPolicyGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpnServerConfigurationPolicyGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VpnServerConfigurationPolicyGroup resource accepts the following input properties:
- Policies
List<Vpn
Server Configuration Policy Group Policy> One or more
policy
blocks as documented below.- Vpn
Server stringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- Is
Default bool Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- Name string
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- Priority int
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.
- Policies
[]Vpn
Server Configuration Policy Group Policy Args One or more
policy
blocks as documented below.- Vpn
Server stringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- Is
Default bool Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- Name string
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- Priority int
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.
- policies
List<Vpn
Server Configuration Policy Group Policy> One or more
policy
blocks as documented below.- vpn
Server StringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is
Default Boolean Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name String
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- priority Integer
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.
- policies
Vpn
Server Configuration Policy Group Policy[] One or more
policy
blocks as documented below.- vpn
Server stringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is
Default boolean Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name string
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- priority number
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.
- policies
Sequence[Vpn
Server Configuration Policy Group Policy Args] One or more
policy
blocks as documented below.- vpn_
server_ strconfiguration_ id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is_
default bool Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name str
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- priority int
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.
- policies List<Property Map>
One or more
policy
blocks as documented below.- vpn
Server StringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is
Default Boolean Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name String
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- priority Number
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnServerConfigurationPolicyGroup 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 VpnServerConfigurationPolicyGroup Resource
Get an existing VpnServerConfigurationPolicyGroup 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?: VpnServerConfigurationPolicyGroupState, opts?: CustomResourceOptions): VpnServerConfigurationPolicyGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
policies: Optional[Sequence[VpnServerConfigurationPolicyGroupPolicyArgs]] = None,
priority: Optional[int] = None,
vpn_server_configuration_id: Optional[str] = None) -> VpnServerConfigurationPolicyGroup
func GetVpnServerConfigurationPolicyGroup(ctx *Context, name string, id IDInput, state *VpnServerConfigurationPolicyGroupState, opts ...ResourceOption) (*VpnServerConfigurationPolicyGroup, error)
public static VpnServerConfigurationPolicyGroup Get(string name, Input<string> id, VpnServerConfigurationPolicyGroupState? state, CustomResourceOptions? opts = null)
public static VpnServerConfigurationPolicyGroup get(String name, Output<String> id, VpnServerConfigurationPolicyGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Is
Default bool Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- Name string
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- Policies
List<Vpn
Server Configuration Policy Group Policy> One or more
policy
blocks as documented below.- Priority int
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.- Vpn
Server stringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- Is
Default bool Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- Name string
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- Policies
[]Vpn
Server Configuration Policy Group Policy Args One or more
policy
blocks as documented below.- Priority int
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.- Vpn
Server stringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is
Default Boolean Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name String
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- policies
List<Vpn
Server Configuration Policy Group Policy> One or more
policy
blocks as documented below.- priority Integer
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.- vpn
Server StringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is
Default boolean Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name string
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- policies
Vpn
Server Configuration Policy Group Policy[] One or more
policy
blocks as documented below.- priority number
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.- vpn
Server stringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is_
default bool Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name str
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- policies
Sequence[Vpn
Server Configuration Policy Group Policy Args] One or more
policy
blocks as documented below.- priority int
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.- vpn_
server_ strconfiguration_ id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
- is
Default Boolean Is this a default VPN Server Configuration Policy Group? Defaults to
false
. Changing this forces a new resource to be created.- name String
The Name which should be used for this VPN Server Configuration Policy Group. Changing this forces a new resource to be created.
- policies List<Property Map>
One or more
policy
blocks as documented below.- priority Number
The priority of this VPN Server Configuration Policy Group. Defaults to
0
.- vpn
Server StringConfiguration Id The ID of the VPN Server Configuration that the VPN Server Configuration Policy Group belongs to. Changing this forces a new resource to be created.
Supporting Types
VpnServerConfigurationPolicyGroupPolicy, VpnServerConfigurationPolicyGroupPolicyArgs
- Name string
The name of the VPN Server Configuration Policy member.
- Type string
The attribute type of the VPN Server Configuration Policy member. Possible values are
AADGroupId
,CertificateGroupId
andRadiusAzureGroupId
.- Value string
The value of the attribute that is used for the VPN Server Configuration Policy member.
- Name string
The name of the VPN Server Configuration Policy member.
- Type string
The attribute type of the VPN Server Configuration Policy member. Possible values are
AADGroupId
,CertificateGroupId
andRadiusAzureGroupId
.- Value string
The value of the attribute that is used for the VPN Server Configuration Policy member.
- name String
The name of the VPN Server Configuration Policy member.
- type String
The attribute type of the VPN Server Configuration Policy member. Possible values are
AADGroupId
,CertificateGroupId
andRadiusAzureGroupId
.- value String
The value of the attribute that is used for the VPN Server Configuration Policy member.
- name string
The name of the VPN Server Configuration Policy member.
- type string
The attribute type of the VPN Server Configuration Policy member. Possible values are
AADGroupId
,CertificateGroupId
andRadiusAzureGroupId
.- value string
The value of the attribute that is used for the VPN Server Configuration Policy member.
- name str
The name of the VPN Server Configuration Policy member.
- type str
The attribute type of the VPN Server Configuration Policy member. Possible values are
AADGroupId
,CertificateGroupId
andRadiusAzureGroupId
.- value str
The value of the attribute that is used for the VPN Server Configuration Policy member.
- name String
The name of the VPN Server Configuration Policy member.
- type String
The attribute type of the VPN Server Configuration Policy member. Possible values are
AADGroupId
,CertificateGroupId
andRadiusAzureGroupId
.- value String
The value of the attribute that is used for the VPN Server Configuration Policy member.
Import
VPN Server Configuration Policy Groups can be imported using the resource id
, e.g.
$ pulumi import azure:network/vpnServerConfigurationPolicyGroup:VpnServerConfigurationPolicyGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Network/vpnServerConfigurations/serverConfiguration1/configurationPolicyGroups/configurationPolicyGroup1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.