linked_services
Creates, updates, deletes, gets or lists a linked_services
resource.
Overview
Name | linked_services |
Type | Resource |
Id | azure.log_analytics.linked_services |
Fields
- vw_linked_services
- linked_services
Name | Datatype | Description |
---|---|---|
linkedServiceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
workspaceName | text | field from the properties object |
write_access_resource_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Linked service properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | linkedServiceName, resourceGroupName, subscriptionId, workspaceName | Gets a linked service instance. |
list_by_workspace | SELECT | resourceGroupName, subscriptionId, workspaceName | Gets the linked services instances in a workspace. |
create_or_update | INSERT | linkedServiceName, resourceGroupName, subscriptionId, workspaceName, data__properties | Create or update a linked service. |
delete | DELETE | linkedServiceName, resourceGroupName, subscriptionId, workspaceName | Deletes a linked service instance. |
SELECT
examples
Gets the linked services instances in a workspace.
- vw_linked_services
- linked_services
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 }}';
SELECT
properties,
tags
FROM azure.log_analytics.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: resourceId
value: string
- name: writeAccessResourceId
value: string
- name: provisioningState
value: string
- name: tags
value: object
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 }}';