Skip to main content

server_automatic_tunings

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

Overview

Nameserver_automatic_tunings
TypeResource
Idazure.sql.server_automatic_tunings

Fields

NameDatatypeDescription
actual_statetextfield from the properties object
desired_statetextfield from the properties object
optionstextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serverName, subscriptionIdRetrieves server automatic tuning options.
updateUPDATEresourceGroupName, serverName, subscriptionIdUpdate automatic tuning options on server.

SELECT examples

Retrieves server automatic tuning options.

SELECT
actual_state,
desired_state,
options,
resourceGroupName,
serverName,
subscriptionId
FROM azure.sql.vw_server_automatic_tunings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a server_automatic_tunings resource.

/*+ update */
UPDATE azure.sql.server_automatic_tunings
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';