Skip to main content

sql_pool_geo_backup_policies

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

Overview

Namesql_pool_geo_backup_policies
TypeResource
Idazure.synapse.sql_pool_geo_backup_policies

Fields

NameDatatypeDescription
geoBackupPolicyNametextfield from the properties object
kindtextKind of geo backup policy. This is metadata used for the Azure portal experience.
locationtextBackup policy location.
resourceGroupNametextfield from the properties object
sqlPoolNametextfield from the properties object
statetextfield from the properties object
storage_typetextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgeoBackupPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet the specified SQL pool geo backup policy
listSELECTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet list of SQL pool geo backup policies
create_or_updateINSERTgeoBackupPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceName, data__propertiesUpdates a SQL Pool geo backup policy.

SELECT examples

Get list of SQL pool geo backup policies

SELECT
geoBackupPolicyName,
kind,
location,
resourceGroupName,
sqlPoolName,
state,
storage_type,
subscriptionId,
workspaceName
FROM azure.synapse.vw_sql_pool_geo_backup_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.sql_pool_geo_backup_policies (
geoBackupPolicyName,
resourceGroupName,
sqlPoolName,
subscriptionId,
workspaceName,
data__properties,
properties
)
SELECT
'{{ geoBackupPolicyName }}',
'{{ resourceGroupName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;