Skip to main content

private_dns_zone_groups

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

Overview

Nameprivate_dns_zone_groups
TypeResource
Idazure.network.private_dns_zone_groups

Fields

NameDatatypeDescription
idtextResource ID.
nametextName of the resource that is unique within a resource group. This name can be used to access the resource.
etagtextA unique read-only string that changes whenever the resource is updated.
privateDnsZoneGroupNametextfield from the properties object
privateEndpointNametextfield from the properties object
private_dns_zone_configstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprivateDnsZoneGroupName, privateEndpointName, resourceGroupName, subscriptionIdGets the private dns zone group resource by specified private dns zone group name.
listSELECTprivateEndpointName, resourceGroupName, subscriptionIdGets all private dns zone groups in a private endpoint.
create_or_updateINSERTprivateDnsZoneGroupName, privateEndpointName, resourceGroupName, subscriptionIdCreates or updates a private dns zone group in the specified private endpoint.
deleteDELETEprivateDnsZoneGroupName, privateEndpointName, resourceGroupName, subscriptionIdDeletes the specified private dns zone group.

SELECT examples

Gets all private dns zone groups in a private endpoint.

SELECT
id,
name,
etag,
privateDnsZoneGroupName,
privateEndpointName,
private_dns_zone_configs,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure.network.vw_private_dns_zone_groups
WHERE privateEndpointName = '{{ privateEndpointName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.private_dns_zone_groups (
privateDnsZoneGroupName,
privateEndpointName,
resourceGroupName,
subscriptionId,
name,
properties,
id
)
SELECT
'{{ privateDnsZoneGroupName }}',
'{{ privateEndpointName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ properties }}',
'{{ id }}'
;

DELETE example

Deletes the specified private_dns_zone_groups resource.

/*+ delete */
DELETE FROM azure.network.private_dns_zone_groups
WHERE privateDnsZoneGroupName = '{{ privateDnsZoneGroupName }}'
AND privateEndpointName = '{{ privateEndpointName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';