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

NameDatatypeDescription
access_mode_settingstextfield from the properties object
locationtextThe geo-location where the resource lives
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
scopeNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, scopeName, subscriptionIdReturns a Azure Monitor PrivateLinkScope.
listSELECTsubscriptionIdGets a list of all Azure Monitor PrivateLinkScopes within a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of Azure Monitor PrivateLinkScopes within a resource group.
create_or_updateINSERTresourceGroupName, scopeName, subscriptionId, data__propertiesCreates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
deleteDELETEresourceGroupName, scopeName, subscriptionIdDeletes a Azure Monitor PrivateLinkScope.
update_tagsEXECresourceGroupName, scopeName, subscriptionIdUpdates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.

SELECT examples

Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.

SELECT
access_mode_settings,
location,
private_endpoint_connections,
provisioning_state,
resourceGroupName,
scopeName,
subscriptionId,
system_data,
tags
FROM azure.monitor.vw_private_link_scopes
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.monitor.private_link_scopes (
resourceGroupName,
scopeName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ scopeName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified private_link_scopes resource.

/*+ delete */
DELETE FROM azure.monitor.private_link_scopes
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND scopeName = '{{ scopeName }}'
AND subscriptionId = '{{ subscriptionId }}';