Skip to main content

sql_pool_operation_results

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

Overview

Namesql_pool_operation_results
TypeResource
Idazure.synapse.sql_pool_operation_results

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}.
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.
restorePointInTimestring (date-time)Snapshot time to restore.
skuobjectSQL pool SKU.
sourceDatabaseDeletionDatestring (date-time)Specifies the time that the sql pool was deleted.
sourceDatabaseIdstringSource database to create from.
statusstringResource status.
storageAccountTypestringThe storage account type used to store backups for this sql pool. Known values are: "GRS" and "LRS".
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
get_location_header_resultselectresource_group_name, workspace_name, sql_pool_name, operation_id, subscription_idGet SQL pool operation status. Get the status of a SQL pool operation.

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
operation_idstringOperation ID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
sql_pool_namestringSQL pool name. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Get SQL pool operation status. Get the status of a SQL pool operation.

SELECT
id,
name,
collation,
createMode,
creationDate,
location,
maxSizeBytes,
provisioningState,
recoverableDatabaseId,
restorePointInTime,
sku,
sourceDatabaseDeletionDate,
sourceDatabaseId,
status,
storageAccountType,
tags,
type
FROM azure.synapse.sql_pool_operation_results
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND sql_pool_name = '{{ sql_pool_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;