Skip to main content

private_endpoints

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

Overview

Nameprivate_endpoints
TypeResource
Idazure.network.private_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
applicationSecurityGroupsarrayApplication security groups in which the private endpoint IP configuration is included.
billingSkustringThe billing sku of the private endpoint. Known values are: "PayAsYouGo" and "Fixed". (PayAsYouGo, Fixed)
customDnsConfigsarrayAn array of custom dns configurations.
customNetworkInterfaceNamestringThe custom name of the network interface attached to the private endpoint.
etagstringA unique read-only string that changes whenever the resource is updated.
extendedLocationobjectThe extended location of the load balancer.
ipConfigurationsarrayA list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints.
ipVersionTypestringSpecifies the IP version type for the private IPs of the private endpoint. If not defined, this defaults to IPv4. Known values are: "IPv4", "IPv6", and "DualStack". (IPv4, IPv6, DualStack)
locationstringResource location.
manualPrivateLinkServiceConnectionsarrayA grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource.
networkInterfacesarrayAn array of references to the network interfaces created for this private endpoint.
privateLinkServiceConnectionsarrayA grouping of information about the connection to the remote resource.
provisioningStatestringThe provisioning state of the private endpoint resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
subnetobjectSubnet in a virtual network resource.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, private_endpoint_name, subscription_id$expandGets the specified private endpoint by resource group.
listselectresource_group_name, subscription_idGets all private endpoints in a resource group.
list_by_subscriptionselectsubscription_idGets all private endpoints in a subscription.
create_or_updateinsertresource_group_name, private_endpoint_name, subscription_idCreates or updates an private endpoint in the specified resource group.
create_or_updatereplaceresource_group_name, private_endpoint_name, subscription_idCreates or updates an private endpoint in the specified resource group.
deletedeleteresource_group_name, private_endpoint_name, subscription_idDeletes the specified private endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
private_endpoint_namestringThe name of the private endpoint. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringExpands referenced resources. Default value is None.

SELECT examples

Gets the specified private endpoint by resource group.

SELECT
id,
name,
applicationSecurityGroups,
billingSku,
customDnsConfigs,
customNetworkInterfaceName,
etag,
extendedLocation,
ipConfigurations,
ipVersionType,
location,
manualPrivateLinkServiceConnections,
networkInterfaces,
privateLinkServiceConnections,
provisioningState,
subnet,
tags,
type
FROM azure.network.private_endpoints
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND private_endpoint_name = '{{ private_endpoint_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates an private endpoint in the specified resource group.

INSERT INTO azure.network.private_endpoints (
id,
location,
tags,
properties,
extendedLocation,
resource_group_name,
private_endpoint_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ resource_group_name }}',
'{{ private_endpoint_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type
;

REPLACE examples

Creates or updates an private endpoint in the specified resource group.

REPLACE azure.network.private_endpoints
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND private_endpoint_name = '{{ private_endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type;

DELETE examples

Deletes the specified private endpoint.

DELETE FROM azure.network.private_endpoints
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND private_endpoint_name = '{{ private_endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;