Skip to main content

features

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

Overview

Namefeatures
TypeResource
Idazure.compute_limit.features

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
provisioningStatestringThe provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
statestringThe current state of the feature (for example, Enabled, Disabled). Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, feature_name, subscription_idGets the properties of a compute limit feature.
list_by_subscription_location_resourceselectlocation, subscription_idLists all compute limit features for the subscription at the specified location.
enableexeclocation, feature_name, subscription_idEnables a compute limit feature for the subscription at the specified location.
disableexeclocation, feature_name, subscription_idDisables a compute limit feature for the subscription at the specified location.

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
feature_namestringThe name of the Feature. Required.
locationstringThe name of the Azure region. Required.
subscription_idstring

SELECT examples

Gets the properties of a compute limit feature.

SELECT
id,
name,
provisioningState,
state,
systemData,
type
FROM azure.compute_limit.features
WHERE location = '{{ location }}' -- required
AND feature_name = '{{ feature_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Enables a compute limit feature for the subscription at the specified location.

EXEC azure.compute_limit.features.enable 
@location='{{ location }}' --required,
@feature_name='{{ feature_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"serviceTreeId": "{{ serviceTreeId }}"
}'
;