Skip to main content

sync_agents_linked_databases

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

Overview

Namesync_agents_linked_databases
TypeResource
Idazure.sql.sync_agents_linked_databases

Fields

The following fields are returned by SELECT queries:

Successfully retrieved sync agent linked SQL server databases.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, serverName, syncAgentName, subscriptionIdLists databases linked to a sync agent.

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
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestringThe name of the server on which the sync agent is hosted.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.
syncAgentNamestringThe name of the sync agent.

SELECT examples

Lists databases linked to a sync agent.

SELECT
properties
FROM azure.sql.sync_agents_linked_databases
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND syncAgentName = '{{ syncAgentName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;