Skip to main content

private_link_services

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

Overview

Nameprivate_link_services
TypeResource
Idazure.network.private_link_services

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting PrivateLinkService resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
extendedLocationobjectThe extended location of the load balancer.
propertiesobjectProperties of the private link service.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, subscriptionId$expandGets the specified private link service by resource group.
listselectresourceGroupName, subscriptionIdGets all private link services in a resource group.
list_by_subscriptionselectsubscriptionIdGets all private link service in a subscription.
create_or_updateinsertresourceGroupName, serviceName, subscriptionIdCreates or updates an private link service in the specified resource group.
deletedeleteresourceGroupName, serviceName, subscriptionIdDeletes the specified private link service.
check_private_link_service_visibilityexeclocation, subscriptionIdChecks whether the subscription is visible to private link service.
check_private_link_service_visibility_by_resource_groupexeclocation, resourceGroupName, subscriptionIdChecks whether the subscription is visible to private link service in the specified resource group.

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
locationstringThe location of the domain name.
resourceGroupNamestringThe name of the resource group.
serviceNamestringThe name of the private link service.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands referenced resources.

SELECT examples

Gets the specified private link service by resource group.

SELECT
id,
name,
etag,
extendedLocation,
properties,
systemData,
type
FROM azure.network.private_link_services
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates an private link service in the specified resource group.

INSERT INTO azure.network.private_link_services (
data__extendedLocation,
data__properties,
resourceGroupName,
serviceName,
subscriptionId
)
SELECT
'{{ extendedLocation }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
extendedLocation,
properties,
systemData,
type
;

DELETE examples

Deletes the specified private link service.

DELETE FROM azure.network.private_link_services
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Checks whether the subscription is visible to private link service.

EXEC azure.network.private_link_services.check_private_link_service_visibility 
@location='{{ location }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"privateLinkServiceAlias": "{{ privateLinkServiceAlias }}"
}'
;