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

The following fields are returned by SELECT queries:

OK response definition.

NameDatatypeDescription
propertiesobjectThe properties of the linked service.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, workspaceName, linkedServiceName, subscriptionIdGets a linked service instance.
list_by_workspaceselectresourceGroupName, workspaceName, subscriptionIdGets the linked services instances in a workspace.
create_or_updateinsertresourceGroupName, workspaceName, linkedServiceName, subscriptionId, data__propertiesCreate or update a linked service.
deletedeleteresourceGroupName, workspaceName, linkedServiceName, subscriptionIdDeletes a linked service instance.

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
linkedServiceNamestringName of the linked service.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets a linked service instance.

SELECT
properties,
tags
FROM azure.log_analytics.linked_services
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND linkedServiceName = '{{ linkedServiceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Create or update a linked service.

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

DELETE examples

Deletes a linked service instance.

DELETE FROM azure.log_analytics.linked_services
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND linkedServiceName = '{{ linkedServiceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;