azure-native.network.ConfigurationPolicyGroup

Explore with Pulumi AI

VpnServerConfigurationPolicyGroup Resource. API Version: 2022-01-01.

Example Usage

ConfigurationPolicyGroupPut

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var configurationPolicyGroup = new AzureNative.Network.ConfigurationPolicyGroup("configurationPolicyGroup", new()
    {
        ConfigurationPolicyGroupName = "policyGroup1",
        IsDefault = true,
        PolicyMembers = new[]
        {
            new AzureNative.Network.Inputs.VpnServerConfigurationPolicyGroupMemberArgs
            {
                AttributeType = "RadiusAzureGroupId",
                AttributeValue = "6ad1bd08",
                Name = "policy1",
            },
            new AzureNative.Network.Inputs.VpnServerConfigurationPolicyGroupMemberArgs
            {
                AttributeType = "CertificateGroupId",
                AttributeValue = "red.com",
                Name = "policy2",
            },
        },
        Priority = 0,
        ResourceGroupName = "rg1",
        VpnServerConfigurationName = "vpnServerConfiguration1",
    });

});
package main

import (
	network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewConfigurationPolicyGroup(ctx, "configurationPolicyGroup", &network.ConfigurationPolicyGroupArgs{
			ConfigurationPolicyGroupName: pulumi.String("policyGroup1"),
			IsDefault:                    pulumi.Bool(true),
			PolicyMembers: []network.VpnServerConfigurationPolicyGroupMemberArgs{
				{
					AttributeType:  pulumi.String("RadiusAzureGroupId"),
					AttributeValue: pulumi.String("6ad1bd08"),
					Name:           pulumi.String("policy1"),
				},
				{
					AttributeType:  pulumi.String("CertificateGroupId"),
					AttributeValue: pulumi.String("red.com"),
					Name:           pulumi.String("policy2"),
				},
			},
			Priority:                   pulumi.Int(0),
			ResourceGroupName:          pulumi.String("rg1"),
			VpnServerConfigurationName: pulumi.String("vpnServerConfiguration1"),
		})
		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.azurenative.network.ConfigurationPolicyGroup;
import com.pulumi.azurenative.network.ConfigurationPolicyGroupArgs;
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 configurationPolicyGroup = new ConfigurationPolicyGroup("configurationPolicyGroup", ConfigurationPolicyGroupArgs.builder()        
            .configurationPolicyGroupName("policyGroup1")
            .isDefault(true)
            .policyMembers(            
                Map.ofEntries(
                    Map.entry("attributeType", "RadiusAzureGroupId"),
                    Map.entry("attributeValue", "6ad1bd08"),
                    Map.entry("name", "policy1")
                ),
                Map.ofEntries(
                    Map.entry("attributeType", "CertificateGroupId"),
                    Map.entry("attributeValue", "red.com"),
                    Map.entry("name", "policy2")
                ))
            .priority(0)
            .resourceGroupName("rg1")
            .vpnServerConfigurationName("vpnServerConfiguration1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

configuration_policy_group = azure_native.network.ConfigurationPolicyGroup("configurationPolicyGroup",
    configuration_policy_group_name="policyGroup1",
    is_default=True,
    policy_members=[
        azure_native.network.VpnServerConfigurationPolicyGroupMemberArgs(
            attribute_type="RadiusAzureGroupId",
            attribute_value="6ad1bd08",
            name="policy1",
        ),
        azure_native.network.VpnServerConfigurationPolicyGroupMemberArgs(
            attribute_type="CertificateGroupId",
            attribute_value="red.com",
            name="policy2",
        ),
    ],
    priority=0,
    resource_group_name="rg1",
    vpn_server_configuration_name="vpnServerConfiguration1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const configurationPolicyGroup = new azure_native.network.ConfigurationPolicyGroup("configurationPolicyGroup", {
    configurationPolicyGroupName: "policyGroup1",
    isDefault: true,
    policyMembers: [
        {
            attributeType: "RadiusAzureGroupId",
            attributeValue: "6ad1bd08",
            name: "policy1",
        },
        {
            attributeType: "CertificateGroupId",
            attributeValue: "red.com",
            name: "policy2",
        },
    ],
    priority: 0,
    resourceGroupName: "rg1",
    vpnServerConfigurationName: "vpnServerConfiguration1",
});
resources:
  configurationPolicyGroup:
    type: azure-native:network:ConfigurationPolicyGroup
    properties:
      configurationPolicyGroupName: policyGroup1
      isDefault: true
      policyMembers:
        - attributeType: RadiusAzureGroupId
          attributeValue: 6ad1bd08
          name: policy1
        - attributeType: CertificateGroupId
          attributeValue: red.com
          name: policy2
      priority: 0
      resourceGroupName: rg1
      vpnServerConfigurationName: vpnServerConfiguration1

Create ConfigurationPolicyGroup Resource

new ConfigurationPolicyGroup(name: string, args: ConfigurationPolicyGroupArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationPolicyGroup(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             configuration_policy_group_name: Optional[str] = None,
                             id: Optional[str] = None,
                             is_default: Optional[bool] = None,
                             name: Optional[str] = None,
                             policy_members: Optional[Sequence[VpnServerConfigurationPolicyGroupMemberArgs]] = None,
                             priority: Optional[int] = None,
                             resource_group_name: Optional[str] = None,
                             vpn_server_configuration_name: Optional[str] = None)
@overload
def ConfigurationPolicyGroup(resource_name: str,
                             args: ConfigurationPolicyGroupArgs,
                             opts: Optional[ResourceOptions] = None)
func NewConfigurationPolicyGroup(ctx *Context, name string, args ConfigurationPolicyGroupArgs, opts ...ResourceOption) (*ConfigurationPolicyGroup, error)
public ConfigurationPolicyGroup(string name, ConfigurationPolicyGroupArgs args, CustomResourceOptions? opts = null)
public ConfigurationPolicyGroup(String name, ConfigurationPolicyGroupArgs args)
public ConfigurationPolicyGroup(String name, ConfigurationPolicyGroupArgs args, CustomResourceOptions options)
type: azure-native:network:ConfigurationPolicyGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ConfigurationPolicyGroupArgs
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 ConfigurationPolicyGroupArgs
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 ConfigurationPolicyGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigurationPolicyGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ConfigurationPolicyGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ConfigurationPolicyGroup 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 ConfigurationPolicyGroup resource accepts the following input properties:

ResourceGroupName string

The resource group name of the ConfigurationPolicyGroup.

VpnServerConfigurationName string

The name of the VpnServerConfiguration.

ConfigurationPolicyGroupName string

The name of the ConfigurationPolicyGroup.

Id string

Resource ID.

IsDefault bool

Shows if this is a Default VpnServerConfigurationPolicyGroup or not.

Name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

PolicyMembers List<Pulumi.AzureNative.Network.Inputs.VpnServerConfigurationPolicyGroupMemberArgs>

Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.

Priority int

Priority for VpnServerConfigurationPolicyGroup.

ResourceGroupName string

The resource group name of the ConfigurationPolicyGroup.

VpnServerConfigurationName string

The name of the VpnServerConfiguration.

ConfigurationPolicyGroupName string

The name of the ConfigurationPolicyGroup.

Id string

Resource ID.

IsDefault bool

Shows if this is a Default VpnServerConfigurationPolicyGroup or not.

Name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

PolicyMembers []VpnServerConfigurationPolicyGroupMemberArgs

Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.

Priority int

Priority for VpnServerConfigurationPolicyGroup.

resourceGroupName String

The resource group name of the ConfigurationPolicyGroup.

vpnServerConfigurationName String

The name of the VpnServerConfiguration.

configurationPolicyGroupName String

The name of the ConfigurationPolicyGroup.

id String

Resource ID.

isDefault Boolean

Shows if this is a Default VpnServerConfigurationPolicyGroup or not.

name String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

policyMembers List<VpnServerConfigurationPolicyGroupMemberArgs>

Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.

priority Integer

Priority for VpnServerConfigurationPolicyGroup.

resourceGroupName string

The resource group name of the ConfigurationPolicyGroup.

vpnServerConfigurationName string

The name of the VpnServerConfiguration.

configurationPolicyGroupName string

The name of the ConfigurationPolicyGroup.

id string

Resource ID.

isDefault boolean

Shows if this is a Default VpnServerConfigurationPolicyGroup or not.

name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

policyMembers VpnServerConfigurationPolicyGroupMemberArgs[]

Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.

priority number

Priority for VpnServerConfigurationPolicyGroup.

resource_group_name str

The resource group name of the ConfigurationPolicyGroup.

vpn_server_configuration_name str

The name of the VpnServerConfiguration.

configuration_policy_group_name str

The name of the ConfigurationPolicyGroup.

id str

Resource ID.

is_default bool

Shows if this is a Default VpnServerConfigurationPolicyGroup or not.

name str

The name of the resource that is unique within a resource group. This name can be used to access the resource.

policy_members Sequence[VpnServerConfigurationPolicyGroupMemberArgs]

Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.

priority int

Priority for VpnServerConfigurationPolicyGroup.

resourceGroupName String

The resource group name of the ConfigurationPolicyGroup.

vpnServerConfigurationName String

The name of the VpnServerConfiguration.

configurationPolicyGroupName String

The name of the ConfigurationPolicyGroup.

id String

Resource ID.

isDefault Boolean

Shows if this is a Default VpnServerConfigurationPolicyGroup or not.

name String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

policyMembers List<Property Map>

Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.

priority Number

Priority for VpnServerConfigurationPolicyGroup.

Outputs

All input properties are implicitly available as output properties. Additionally, the ConfigurationPolicyGroup resource produces the following output properties:

Etag string

A unique read-only string that changes whenever the resource is updated.

Id string

The provider-assigned unique ID for this managed resource.

P2SConnectionConfigurations List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>

List of references to P2SConnectionConfigurations.

ProvisioningState string

The provisioning state of the VpnServerConfigurationPolicyGroup resource.

Type string

Resource type.

Etag string

A unique read-only string that changes whenever the resource is updated.

Id string

The provider-assigned unique ID for this managed resource.

P2SConnectionConfigurations []SubResourceResponse

List of references to P2SConnectionConfigurations.

ProvisioningState string

The provisioning state of the VpnServerConfigurationPolicyGroup resource.

Type string

Resource type.

etag String

A unique read-only string that changes whenever the resource is updated.

id String

The provider-assigned unique ID for this managed resource.

p2SConnectionConfigurations List<SubResourceResponse>

List of references to P2SConnectionConfigurations.

provisioningState String

The provisioning state of the VpnServerConfigurationPolicyGroup resource.

type String

Resource type.

etag string

A unique read-only string that changes whenever the resource is updated.

id string

The provider-assigned unique ID for this managed resource.

p2SConnectionConfigurations SubResourceResponse[]

List of references to P2SConnectionConfigurations.

provisioningState string

The provisioning state of the VpnServerConfigurationPolicyGroup resource.

type string

Resource type.

etag str

A unique read-only string that changes whenever the resource is updated.

id str

The provider-assigned unique ID for this managed resource.

p2_s_connection_configurations Sequence[SubResourceResponse]

List of references to P2SConnectionConfigurations.

provisioning_state str

The provisioning state of the VpnServerConfigurationPolicyGroup resource.

type str

Resource type.

etag String

A unique read-only string that changes whenever the resource is updated.

id String

The provider-assigned unique ID for this managed resource.

p2SConnectionConfigurations List<Property Map>

List of references to P2SConnectionConfigurations.

provisioningState String

The provisioning state of the VpnServerConfigurationPolicyGroup resource.

type String

Resource type.

Supporting Types

SubResourceResponse

Id string

Resource ID.

Id string

Resource ID.

id String

Resource ID.

id string

Resource ID.

id str

Resource ID.

id String

Resource ID.

VpnPolicyMemberAttributeType

CertificateGroupId
CertificateGroupId
AADGroupId
AADGroupId
RadiusAzureGroupId
RadiusAzureGroupId
VpnPolicyMemberAttributeTypeCertificateGroupId
CertificateGroupId
VpnPolicyMemberAttributeTypeAADGroupId
AADGroupId
VpnPolicyMemberAttributeTypeRadiusAzureGroupId
RadiusAzureGroupId
CertificateGroupId
CertificateGroupId
AADGroupId
AADGroupId
RadiusAzureGroupId
RadiusAzureGroupId
CertificateGroupId
CertificateGroupId
AADGroupId
AADGroupId
RadiusAzureGroupId
RadiusAzureGroupId
CERTIFICATE_GROUP_ID
CertificateGroupId
AAD_GROUP_ID
AADGroupId
RADIUS_AZURE_GROUP_ID
RadiusAzureGroupId
"CertificateGroupId"
CertificateGroupId
"AADGroupId"
AADGroupId
"RadiusAzureGroupId"
RadiusAzureGroupId

VpnServerConfigurationPolicyGroupMember

AttributeType string | Pulumi.AzureNative.Network.VpnPolicyMemberAttributeType

The Vpn Policy member attribute type.

AttributeValue string

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

Name string

Name of the VpnServerConfigurationPolicyGroupMember.

AttributeType string | VpnPolicyMemberAttributeType

The Vpn Policy member attribute type.

AttributeValue string

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

Name string

Name of the VpnServerConfigurationPolicyGroupMember.

attributeType String | VpnPolicyMemberAttributeType

The Vpn Policy member attribute type.

attributeValue String

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name String

Name of the VpnServerConfigurationPolicyGroupMember.

attributeType string | VpnPolicyMemberAttributeType

The Vpn Policy member attribute type.

attributeValue string

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name string

Name of the VpnServerConfigurationPolicyGroupMember.

attribute_type str | VpnPolicyMemberAttributeType

The Vpn Policy member attribute type.

attribute_value str

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name str

Name of the VpnServerConfigurationPolicyGroupMember.

attributeType String | "CertificateGroupId" | "AADGroupId" | "RadiusAzureGroupId"

The Vpn Policy member attribute type.

attributeValue String

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name String

Name of the VpnServerConfigurationPolicyGroupMember.

VpnServerConfigurationPolicyGroupMemberResponse

AttributeType string

The Vpn Policy member attribute type.

AttributeValue string

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

Name string

Name of the VpnServerConfigurationPolicyGroupMember.

AttributeType string

The Vpn Policy member attribute type.

AttributeValue string

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

Name string

Name of the VpnServerConfigurationPolicyGroupMember.

attributeType String

The Vpn Policy member attribute type.

attributeValue String

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name String

Name of the VpnServerConfigurationPolicyGroupMember.

attributeType string

The Vpn Policy member attribute type.

attributeValue string

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name string

Name of the VpnServerConfigurationPolicyGroupMember.

attribute_type str

The Vpn Policy member attribute type.

attribute_value str

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name str

Name of the VpnServerConfigurationPolicyGroupMember.

attributeType String

The Vpn Policy member attribute type.

attributeValue String

The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.

name String

Name of the VpnServerConfigurationPolicyGroupMember.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:ConfigurationPolicyGroup policyGroup1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup1 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0