Skip to main content

sql_pools

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

Overview

Namesql_pools
TypeResource
Idazure.synapse_artifacts.sql_pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
collationstringCollation mode.
createModestringSpecifies the mode of sql pool creation. Default: regular sql pool creation. PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified. Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore. Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. Known values are: "Default", "PointInTimeRestore", "Recovery", and "Restore".
creationDatestring (date-time)Date the SQL pool was created.
locationstringThe geo-location where the resource lives. Required.
maxSizeBytesintegerMaximum size in bytes.
provisioningStatestringResource state.
recoverableDatabaseIdstringBackup database to restore from.
restorePointInTimestringSnapshot time to restore.
skuobjectSQL pool SKU.
sourceDatabaseIdstringSource database to create from.
statusstringResource status.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsql_pool_name, endpointGet Sql Pool.
listselectendpointList Sql Pools.

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
endpointstringThe service endpoint host (no scheme). (default: )
sql_pool_namestringThe Sql Pool name. Required.

SELECT examples

Get Sql Pool.

SELECT
id,
name,
collation,
createMode,
creationDate,
location,
maxSizeBytes,
provisioningState,
recoverableDatabaseId,
restorePointInTime,
sku,
sourceDatabaseId,
status,
tags,
type
FROM azure.synapse_artifacts.sql_pools
WHERE sql_pool_name = '{{ sql_pool_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;