azure-native.network.ConfigurationPolicyGroup
Explore with Pulumi AI
VpnServerConfigurationPolicyGroup Resource. API Version: 2022-01-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 = "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/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
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[]
{
{
{ "attributeType", "string" },
{ "attributeValue", "string" },
{ "name", "string" },
},
},
Priority = 0,
});
example, err := network.NewConfigurationPolicyGroup(ctx, "configurationPolicyGroupResource", &network.ConfigurationPolicyGroupArgs{
ResourceGroupName: "string",
VpnServerConfigurationName: "string",
ConfigurationPolicyGroupName: "string",
Id: "string",
IsDefault: false,
Name: "string",
PolicyMembers: []map[string]interface{}{
map[string]interface{}{
"attributeType": "string",
"attributeValue": "string",
"name": "string",
},
},
Priority: 0,
})
var configurationPolicyGroupResource = new ConfigurationPolicyGroup("configurationPolicyGroupResource", ConfigurationPolicyGroupArgs.builder()
.resourceGroupName("string")
.vpnServerConfigurationName("string")
.configurationPolicyGroupName("string")
.id("string")
.isDefault(false)
.name("string")
.policyMembers(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0