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

The following fields are returned by SELECT queries:

Successfully retrieved server automatic tuning properties.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serverName, subscriptionIdRetrieves server automatic tuning options.
updateupdateresourceGroupName, serverName, subscriptionIdUpdate automatic tuning options on server.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Retrieves server automatic tuning options.

SELECT
properties
FROM azure.sql.server_automatic_tunings
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

UPDATE examples

Update automatic tuning options on server.

UPDATE azure.sql.server_automatic_tunings
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serverName = '{{ serverName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;