Skip to main content

linked_services

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

Overview

Namelinked_services
TypeResource
Idazure.log_analytics.linked_services

Fields

NameDatatypeDescription
linkedServiceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
workspaceNametextfield from the properties object
write_access_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlinkedServiceName, resourceGroupName, subscriptionId, workspaceNameGets a linked service instance.
list_by_workspaceSELECTresourceGroupName, subscriptionId, workspaceNameGets the linked services instances in a workspace.
create_or_updateINSERTlinkedServiceName, resourceGroupName, subscriptionId, workspaceName, data__propertiesCreate or update a linked service.
deleteDELETElinkedServiceName, resourceGroupName, subscriptionId, workspaceNameDeletes a linked service instance.

SELECT examples

Gets the linked services instances in a workspace.

SELECT
linkedServiceName,
provisioning_state,
resourceGroupName,
resource_id,
subscriptionId,
tags,
workspaceName,
write_access_resource_id
FROM azure.log_analytics.vw_linked_services
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.log_analytics.linked_services (
linkedServiceName,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties,
tags
)
SELECT
'{{ linkedServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}'
;

DELETE example

Deletes the specified linked_services resource.

/*+ delete */
DELETE FROM azure.log_analytics.linked_services
WHERE linkedServiceName = '{{ linkedServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';