Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idazure.cost_management.settings

Fields

The following fields are returned by SELECT queries:

The request has succeeded.

NameDatatypeDescription
kindstringSpecifies the kind of settings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_scopeselectscope, typeGet the setting from the given scope by name.
listselectscopeList all cost management settings in the requested scope.
delete_by_scopedeletescope, typeDelete a setting within the given scope.

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
scopestringThe scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.
typestringSetting type.

SELECT examples

Get the setting from the given scope by name.

SELECT
kind
FROM azure.cost_management.settings
WHERE scope = '{{ scope }}' -- required
AND type = '{{ type }}' -- required
;

DELETE examples

Delete a setting within the given scope.

DELETE FROM azure.cost_management.settings
WHERE scope = '{{ scope }}' --required
AND type = '{{ type }}' --required
;