Skip to main content

autoscale_settings

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

Overview

Nameautoscale_settings
TypeResource
Idazure.monitor.autoscale_settings

Fields

NameDatatypeDescription
idtextAzure resource Id
nametextAzure resource name
autoscaleSettingNametextfield from the properties object
enabledtextfield from the properties object
locationtextResource location
notificationstextfield from the properties object
predictive_autoscale_policytextfield from the properties object
profilestextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextGets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
target_resource_locationtextfield from the properties object
target_resource_uritextfield from the properties object
typetextAzure resource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTautoscaleSettingName, resourceGroupName, subscriptionIdGets an autoscale setting
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists the autoscale settings for a resource group
list_by_subscriptionSELECTsubscriptionIdLists the autoscale settings for a subscription
create_or_updateINSERTautoscaleSettingName, resourceGroupName, subscriptionId, data__propertiesCreates or updates an autoscale setting.
deleteDELETEautoscaleSettingName, resourceGroupName, subscriptionIdDeletes and autoscale setting
updateUPDATEautoscaleSettingName, resourceGroupName, subscriptionIdUpdates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.

SELECT examples

Lists the autoscale settings for a subscription

SELECT
id,
name,
autoscaleSettingName,
enabled,
location,
notifications,
predictive_autoscale_policy,
profiles,
resourceGroupName,
subscriptionId,
system_data,
tags,
target_resource_location,
target_resource_uri,
type
FROM azure.monitor.vw_autoscale_settings
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.monitor.autoscale_settings (
autoscaleSettingName,
resourceGroupName,
subscriptionId,
data__properties,
location,
tags,
properties
)
SELECT
'{{ autoscaleSettingName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a autoscale_settings resource.

/*+ update */
UPDATE azure.monitor.autoscale_settings
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
autoscaleSettingName = '{{ autoscaleSettingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified autoscale_settings resource.

/*+ delete */
DELETE FROM azure.monitor.autoscale_settings
WHERE autoscaleSettingName = '{{ autoscaleSettingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';