Skip to main content

extended_server_blob_auditing_policies

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

Overview

Nameextended_server_blob_auditing_policies
TypeResource
Idazure.sql.extended_server_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_devops_audit_enabledtextfield from the properties object
is_managed_identity_in_usetextfield from the properties object
is_storage_secondary_key_in_usetextfield from the properties object
predicate_expressiontextfield from the properties object
queue_delay_mstextfield from the properties object
resourceGroupNametextfield from the properties object
retention_daystextfield from the properties object
serverNametextfield 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

Methods

NameAccessible byRequired ParamsDescription
getSELECTblobAuditingPolicyName, resourceGroupName, serverName, subscriptionIdGets an extended server's blob auditing policy.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdLists extended auditing settings of a server.
create_or_updateINSERTblobAuditingPolicyName, resourceGroupName, serverName, subscriptionIdCreates or updates an extended server's blob auditing policy.

SELECT examples

Lists extended auditing settings of a server.

SELECT
audit_actions_and_groups,
blobAuditingPolicyName,
is_azure_monitor_target_enabled,
is_devops_audit_enabled,
is_managed_identity_in_use,
is_storage_secondary_key_in_use,
predicate_expression,
queue_delay_ms,
resourceGroupName,
retention_days,
serverName,
state,
storage_account_access_key,
storage_account_subscription_id,
storage_endpoint,
subscriptionId
FROM azure.sql.vw_extended_server_blob_auditing_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.extended_server_blob_auditing_policies (
blobAuditingPolicyName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ blobAuditingPolicyName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;