Skip to main content

linked_servers

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

Overview

Namelinked_servers
TypeResource
Idazure_isv.redis.linked_servers

Fields

NameDatatypeDescription
nametextfield from the properties object
geo_replicated_primary_host_nametextfield from the properties object
linkedServerNametextfield from the properties object
linked_redis_cache_idtextfield from the properties object
linked_redis_cache_locationtextfield from the properties object
primary_host_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
server_roletextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlinkedServerName, name, resourceGroupName, subscriptionIdGets the detailed information about a linked server of a redis cache (requires Premium SKU).
listSELECTname, resourceGroupName, subscriptionIdGets the list of linked servers associated with this redis cache (requires Premium SKU).
createINSERTlinkedServerName, name, resourceGroupName, subscriptionId, data__propertiesAdds a linked server to the Redis cache (requires Premium SKU).
deleteDELETElinkedServerName, name, resourceGroupName, subscriptionIdDeletes the linked server from a redis cache (requires Premium SKU).

SELECT examples

Gets the list of linked servers associated with this redis cache (requires Premium SKU).

SELECT
name,
geo_replicated_primary_host_name,
linkedServerName,
linked_redis_cache_id,
linked_redis_cache_location,
primary_host_name,
provisioning_state,
resourceGroupName,
server_role,
subscriptionId
FROM azure_isv.redis.vw_linked_servers
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.redis.linked_servers (
linkedServerName,
name,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ linkedServerName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified linked_servers resource.

/*+ delete */
DELETE FROM azure_isv.redis.linked_servers
WHERE linkedServerName = '{{ linkedServerName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';