Skip to main content

private_link_scopes

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

Overview

Nameprivate_link_scopes
TypeResource
Idazure.monitor.private_link_scopes

Fields

The following fields are returned by SELECT queries:

An Azure Monitor PrivateLinkScope definition.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectProperties that define a Azure Monitor PrivateLinkScope resource.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, subscriptionId, scopeNameReturns a Azure Monitor PrivateLinkScope.
list_by_resource_groupselectresourceGroupName, subscriptionIdGets a list of Azure Monitor PrivateLinkScopes within a resource group.
listselectsubscriptionIdGets a list of all Azure Monitor PrivateLinkScopes within a subscription.
create_or_updateinsertresourceGroupName, subscriptionId, scopeName, data__propertiesCreates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
deletedeleteresourceGroupName, subscriptionId, scopeNameDeletes a Azure Monitor PrivateLinkScope.
update_tagsexecresourceGroupName, subscriptionId, scopeNameUpdates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
scopeNamestringThe name of the Azure Monitor PrivateLinkScope resource.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Returns a Azure Monitor PrivateLinkScope.

SELECT
location,
properties,
systemData,
tags
FROM azure.monitor.private_link_scopes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND scopeName = '{{ scopeName }}' -- required
;

INSERT examples

Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

INSERT INTO azure.monitor.private_link_scopes (
data__properties,
data__tags,
data__location,
resourceGroupName,
subscriptionId,
scopeName
)
SELECT
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ scopeName }}'
RETURNING
location,
properties,
systemData,
tags
;

DELETE examples

Deletes a Azure Monitor PrivateLinkScope.

DELETE FROM azure.monitor.private_link_scopes
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND scopeName = '{{ scopeName }}' --required
;

Lifecycle Methods

Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.

EXEC azure.monitor.private_link_scopes.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@scopeName='{{ scopeName }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;