azure-native.network.ConfigurationPolicyGroup
Explore with Pulumi AI
VpnServerConfigurationPolicyGroup Resource. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2022-01-01.
Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
Example Usage
ConfigurationPolicyGroupPut
using System.Collections.Generic;
using System.Linq;
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 = AzureNative.Network.VpnPolicyMemberAttributeType.RadiusAzureGroupId,
AttributeValue = "6ad1bd08",
Name = "policy1",
},
new AzureNative.Network.Inputs.VpnServerConfigurationPolicyGroupMemberArgs
{
AttributeType = AzureNative.Network.VpnPolicyMemberAttributeType.CertificateGroupId,
AttributeValue = "red.com",
Name = "policy2",
},
},
Priority = 0,
ResourceGroupName = "rg1",
VpnServerConfigurationName = "vpnServerConfiguration1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"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.VpnServerConfigurationPolicyGroupMemberArray{
&network.VpnServerConfigurationPolicyGroupMemberArgs{
AttributeType: pulumi.String(network.VpnPolicyMemberAttributeTypeRadiusAzureGroupId),
AttributeValue: pulumi.String("6ad1bd08"),
Name: pulumi.String("policy1"),
},
&network.VpnServerConfigurationPolicyGroupMemberArgs{
AttributeType: pulumi.String(network.VpnPolicyMemberAttributeTypeCertificateGroupId),
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 com.pulumi.azurenative.network.inputs.VpnServerConfigurationPolicyGroupMemberArgs;
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(
VpnServerConfigurationPolicyGroupMemberArgs.builder()
.attributeType("RadiusAzureGroupId")
.attributeValue("6ad1bd08")
.name("policy1")
.build(),
VpnServerConfigurationPolicyGroupMemberArgs.builder()
.attributeType("CertificateGroupId")
.attributeValue("red.com")
.name("policy2")
.build())
.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=[
{
"attribute_type": azure_native.network.VpnPolicyMemberAttributeType.RADIUS_AZURE_GROUP_ID,
"attribute_value": "6ad1bd08",
"name": "policy1",
},
{
"attribute_type": azure_native.network.VpnPolicyMemberAttributeType.CERTIFICATE_GROUP_ID,
"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: azure_native.network.VpnPolicyMemberAttributeType.RadiusAzureGroupId,
attributeValue: "6ad1bd08",
name: "policy1",
},
{
attributeType: azure_native.network.VpnPolicyMemberAttributeType.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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigurationPolicyGroup(name: string, args: ConfigurationPolicyGroupArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationPolicyGroup(resource_name: str,
args: ConfigurationPolicyGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConfigurationPolicyGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
vpn_server_configuration_name: Optional[str] = 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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var configurationPolicyGroupResource = new AzureNative.Network.ConfigurationPolicyGroup("configurationPolicyGroupResource", new()
{
ResourceGroupName = "string",
VpnServerConfigurationName = "string",
ConfigurationPolicyGroupName = "string",
Id = "string",
IsDefault = false,
Name = "string",
PolicyMembers = new[]
{
new AzureNative.Network.Inputs.VpnServerConfigurationPolicyGroupMemberArgs
{
AttributeType = "string",
AttributeValue = "string",
Name = "string",
},
},
Priority = 0,
});
example, err := network.NewConfigurationPolicyGroup(ctx, "configurationPolicyGroupResource", &network.ConfigurationPolicyGroupArgs{
ResourceGroupName: pulumi.String("string"),
VpnServerConfigurationName: pulumi.String("string"),
ConfigurationPolicyGroupName: pulumi.String("string"),
Id: pulumi.String("string"),
IsDefault: pulumi.Bool(false),
Name: pulumi.String("string"),
PolicyMembers: network.VpnServerConfigurationPolicyGroupMemberArray{
&network.VpnServerConfigurationPolicyGroupMemberArgs{
AttributeType: pulumi.String("string"),
AttributeValue: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Priority: pulumi.Int(0),
})
var configurationPolicyGroupResource = new ConfigurationPolicyGroup("configurationPolicyGroupResource", ConfigurationPolicyGroupArgs.builder()
.resourceGroupName("string")
.vpnServerConfigurationName("string")
.configurationPolicyGroupName("string")
.id("string")
.isDefault(false)
.name("string")
.policyMembers(VpnServerConfigurationPolicyGroupMemberArgs.builder()
.attributeType("string")
.attributeValue("string")
.name("string")
.build())
.priority(0)
.build());
configuration_policy_group_resource = azure_native.network.ConfigurationPolicyGroup("configurationPolicyGroupResource",
resource_group_name="string",
vpn_server_configuration_name="string",
configuration_policy_group_name="string",
id="string",
is_default=False,
name="string",
policy_members=[{
"attributeType": "string",
"attributeValue": "string",
"name": "string",
}],
priority=0)
const configurationPolicyGroupResource = new azure_native.network.ConfigurationPolicyGroup("configurationPolicyGroupResource", {
resourceGroupName: "string",
vpnServerConfigurationName: "string",
configurationPolicyGroupName: "string",
id: "string",
isDefault: false,
name: "string",
policyMembers: [{
attributeType: "string",
attributeValue: "string",
name: "string",
}],
priority: 0,
});
type: azure-native:network:ConfigurationPolicyGroup
properties:
configurationPolicyGroupName: string
id: string
isDefault: false
name: string
policyMembers:
- attributeType: string
attributeValue: string
name: string
priority: 0
resourceGroupName: string
vpnServerConfigurationName: string
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:
- Resource
Group stringName - The resource group name of the ConfigurationPolicyGroup.
- Vpn
Server stringConfiguration Name - The name of the VpnServerConfiguration.
- Configuration
Policy stringGroup Name - The name of the ConfigurationPolicyGroup.
- Id string
- Resource ID.
- Is
Default 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.
- Policy
Members List<Pulumi.Azure Native. Network. Inputs. Vpn Server Configuration Policy Group Member> - Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.
- Priority int
- Priority for VpnServerConfigurationPolicyGroup.
- Resource
Group stringName - The resource group name of the ConfigurationPolicyGroup.
- Vpn
Server stringConfiguration Name - The name of the VpnServerConfiguration.
- Configuration
Policy stringGroup Name - The name of the ConfigurationPolicyGroup.
- Id string
- Resource ID.
- Is
Default 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.
- Policy
Members []VpnServer Configuration Policy Group Member Args - Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.
- Priority int
- Priority for VpnServerConfigurationPolicyGroup.
- resource
Group StringName - The resource group name of the ConfigurationPolicyGroup.
- vpn
Server StringConfiguration Name - The name of the VpnServerConfiguration.
- configuration
Policy StringGroup Name - The name of the ConfigurationPolicyGroup.
- id String
- Resource ID.
- is
Default 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.
- policy
Members List<VpnServer Configuration Policy Group Member> - Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.
- priority Integer
- Priority for VpnServerConfigurationPolicyGroup.
- resource
Group stringName - The resource group name of the ConfigurationPolicyGroup.
- vpn
Server stringConfiguration Name - The name of the VpnServerConfiguration.
- configuration
Policy stringGroup Name - The name of the ConfigurationPolicyGroup.
- id string
- Resource ID.
- is
Default 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.
- policy
Members VpnServer Configuration Policy Group Member[] - Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.
- priority number
- Priority for VpnServerConfigurationPolicyGroup.
- resource_
group_ strname - The resource group name of the ConfigurationPolicyGroup.
- vpn_
server_ strconfiguration_ name - The name of the VpnServerConfiguration.
- configuration_
policy_ strgroup_ name - 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[VpnServer Configuration Policy Group Member Args] - Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.
- priority int
- Priority for VpnServerConfigurationPolicyGroup.
- resource
Group StringName - The resource group name of the ConfigurationPolicyGroup.
- vpn
Server StringConfiguration Name - The name of the VpnServerConfiguration.
- configuration
Policy StringGroup Name - The name of the ConfigurationPolicyGroup.
- id String
- Resource ID.
- is
Default 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.
- policy
Members 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.
- P2SConnection
Configurations List<Pulumi.Azure Native. Network. Outputs. Sub Resource Response> - List of references to P2SConnectionConfigurations.
- Provisioning
State 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.
- P2SConnection
Configurations []SubResource Response - List of references to P2SConnectionConfigurations.
- Provisioning
State 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.
- p2SConnection
Configurations List<SubResource Response> - List of references to P2SConnectionConfigurations.
- provisioning
State 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.
- p2SConnection
Configurations SubResource Response[] - List of references to P2SConnectionConfigurations.
- provisioning
State 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_ Sequence[Subconnection_ configurations Resource Response] - 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.
- p2SConnection
Configurations List<Property Map> - List of references to P2SConnectionConfigurations.
- provisioning
State String - The provisioning state of the VpnServerConfigurationPolicyGroup resource.
- type String
- Resource type.
Supporting Types
SubResourceResponse, SubResourceResponseArgs
- 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, VpnPolicyMemberAttributeTypeArgs
- Certificate
Group Id - CertificateGroupId
- AADGroup
Id - AADGroupId
- Radius
Azure Group Id - RadiusAzureGroupId
- Vpn
Policy Member Attribute Type Certificate Group Id - CertificateGroupId
- Vpn
Policy Member Attribute Type AADGroup Id - AADGroupId
- Vpn
Policy Member Attribute Type Radius Azure Group Id - RadiusAzureGroupId
- Certificate
Group Id - CertificateGroupId
- AADGroup
Id - AADGroupId
- Radius
Azure Group Id - RadiusAzureGroupId
- Certificate
Group Id - CertificateGroupId
- AADGroup
Id - AADGroupId
- Radius
Azure Group Id - RadiusAzureGroupId
- CERTIFICATE_GROUP_ID
- CertificateGroupId
- AAD_GROUP_ID
- AADGroupId
- RADIUS_AZURE_GROUP_ID
- RadiusAzureGroupId
- "Certificate
Group Id" - CertificateGroupId
- "AADGroup
Id" - AADGroupId
- "Radius
Azure Group Id" - RadiusAzureGroupId
VpnServerConfigurationPolicyGroupMember, VpnServerConfigurationPolicyGroupMemberArgs
- Attribute
Type string | Pulumi.Azure Native. Network. Vpn Policy Member Attribute Type - The Vpn Policy member attribute type.
- Attribute
Value string - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- Name string
- Name of the VpnServerConfigurationPolicyGroupMember.
- Attribute
Type string | VpnPolicy Member Attribute Type - The Vpn Policy member attribute type.
- Attribute
Value string - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- Name string
- Name of the VpnServerConfigurationPolicyGroupMember.
- attribute
Type String | VpnPolicy Member Attribute Type - The Vpn Policy member attribute type.
- attribute
Value String - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- name String
- Name of the VpnServerConfigurationPolicyGroupMember.
- attribute
Type string | VpnPolicy Member Attribute Type - The Vpn Policy member attribute type.
- attribute
Value string - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- name string
- Name of the VpnServerConfigurationPolicyGroupMember.
- attribute_
type str | VpnPolicy Member Attribute Type - The Vpn Policy member attribute type.
- attribute_
value str - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- name str
- Name of the VpnServerConfigurationPolicyGroupMember.
- attribute
Type String | "CertificateGroup Id" | "AADGroup Id" | "Radius Azure Group Id" - The Vpn Policy member attribute type.
- attribute
Value String - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- name String
- Name of the VpnServerConfigurationPolicyGroupMember.
VpnServerConfigurationPolicyGroupMemberResponse, VpnServerConfigurationPolicyGroupMemberResponseArgs
- Attribute
Type string - The Vpn Policy member attribute type.
- Attribute
Value string - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- Name string
- Name of the VpnServerConfigurationPolicyGroupMember.
- Attribute
Type string - The Vpn Policy member attribute type.
- Attribute
Value string - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- Name string
- Name of the VpnServerConfigurationPolicyGroupMember.
- attribute
Type String - The Vpn Policy member attribute type.
- attribute
Value String - The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
- name String
- Name of the VpnServerConfigurationPolicyGroupMember.
- attribute
Type string - The Vpn Policy member attribute type.
- attribute
Value 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.
- attribute
Type String - The Vpn Policy member attribute type.
- attribute
Value 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0