Skip to main content

server_dev_ops_audit_settings

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

Overview

Nameserver_dev_ops_audit_settings
TypeResource
Idazure.sql.server_dev_ops_audit_settings

Fields

NameDatatypeDescription
devOpsAuditingSettingsNametextfield from the properties object
is_azure_monitor_target_enabledtextfield from the properties object
is_managed_identity_in_usetextfield from the properties object
resourceGroupNametextfield 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
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdevOpsAuditingSettingsName, resourceGroupName, serverName, subscriptionIdGets a server's DevOps audit settings.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdLists DevOps audit settings of a server.
create_or_updateINSERTdevOpsAuditingSettingsName, resourceGroupName, serverName, subscriptionIdCreates or updates a server's DevOps audit settings.

SELECT examples

Lists DevOps audit settings of a server.

SELECT
devOpsAuditingSettingsName,
is_azure_monitor_target_enabled,
is_managed_identity_in_use,
resourceGroupName,
serverName,
state,
storage_account_access_key,
storage_account_subscription_id,
storage_endpoint,
subscriptionId,
system_data
FROM azure.sql.vw_server_dev_ops_audit_settings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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