Skip to main content

sql_pool_blob_auditing_policies

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

Overview

Namesql_pool_blob_auditing_policies
TypeResource
Idazure.synapse.sql_pool_blob_auditing_policies

Fields

NameDatatypeDescription
audit_actions_and_groupstextfield from the properties object
blobAuditingPolicyNametextfield from the properties object
is_azure_monitor_target_enabledtextfield from the properties object
is_storage_secondary_key_in_usetextfield from the properties object
kindtextResource kind.
resourceGroupNametextfield from the properties object
retention_daystextfield from the properties object
sqlPoolNametextfield from the properties object
statetextfield from the properties object
storage_account_access_keytextfield from the properties object
storage_account_subscription_idtextfield from the properties object
storage_endpointtextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTblobAuditingPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet a SQL pool's blob auditing policy.
list_by_sql_poolSELECTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameLists auditing settings of a Sql pool.
create_or_updateINSERTblobAuditingPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceNameCreates or updates a SQL pool's blob auditing policy.

SELECT examples

Lists auditing settings of a Sql pool.

SELECT
audit_actions_and_groups,
blobAuditingPolicyName,
is_azure_monitor_target_enabled,
is_storage_secondary_key_in_use,
kind,
resourceGroupName,
retention_days,
sqlPoolName,
state,
storage_account_access_key,
storage_account_subscription_id,
storage_endpoint,
subscriptionId,
workspaceName
FROM azure.synapse.vw_sql_pool_blob_auditing_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_blob_auditing_policies resource.

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