Skip to main content

configuration_policy_groups

Creates, updates, deletes, gets or lists a configuration_policy_groups resource.

Overview

Nameconfiguration_policy_groups
TypeResource
Idazure.network.configuration_policy_groups

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
configurationPolicyGroupNametextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
is_defaulttextfield from the properties object
p2_s_connection_configurationstextfield from the properties object
policy_memberstextfield from the properties object
prioritytextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.
vpnServerConfigurationNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationPolicyGroupName, resourceGroupName, subscriptionId, vpnServerConfigurationNameRetrieves the details of a ConfigurationPolicyGroup.
list_by_vpn_server_configurationSELECTresourceGroupName, subscriptionId, vpnServerConfigurationNameLists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration.
create_or_updateINSERTconfigurationPolicyGroupName, resourceGroupName, subscriptionId, vpnServerConfigurationNameCreates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one.
deleteDELETEconfigurationPolicyGroupName, resourceGroupName, subscriptionId, vpnServerConfigurationNameDeletes a ConfigurationPolicyGroup.

SELECT examples

Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration.

SELECT
id,
name,
configurationPolicyGroupName,
etag,
is_default,
p2_s_connection_configurations,
policy_members,
priority,
provisioning_state,
resourceGroupName,
subscriptionId,
type,
vpnServerConfigurationName
FROM azure.network.vw_configuration_policy_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vpnServerConfigurationName = '{{ vpnServerConfigurationName }}';

INSERT example

Use the following StackQL query and manifest file to create a new configuration_policy_groups resource.

/*+ create */
INSERT INTO azure.network.configuration_policy_groups (
configurationPolicyGroupName,
resourceGroupName,
subscriptionId,
vpnServerConfigurationName,
properties,
name,
id
)
SELECT
'{{ configurationPolicyGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vpnServerConfigurationName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified configuration_policy_groups resource.

/*+ delete */
DELETE FROM azure.network.configuration_policy_groups
WHERE configurationPolicyGroupName = '{{ configurationPolicyGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vpnServerConfigurationName = '{{ vpnServerConfigurationName }}';