features
Creates, updates, deletes, gets or lists a features resource.
Overview
| Name | features |
| Type | Resource |
| Id | azure.compute_limit.features |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_subscription_location_resource
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
provisioningState | string | The provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled) |
state | string | The current state of the feature (for example, Enabled, Disabled). Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
provisioningState | string | The provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled) |
state | string | The current state of the feature (for example, Enabled, Disabled). Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | location, feature_name, subscription_id | Gets the properties of a compute limit feature. | |
list_by_subscription_location_resource | select | location, subscription_id | Lists all compute limit features for the subscription at the specified location. | |
enable | exec | location, feature_name, subscription_id | Enables a compute limit feature for the subscription at the specified location. | |
disable | exec | location, feature_name, subscription_id | Disables 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.
| Name | Datatype | Description |
|---|---|---|
feature_name | string | The name of the Feature. Required. |
location | string | The name of the Azure region. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_subscription_location_resource
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
;
Lists all compute limit features for the subscription at the specified location.
SELECT
id,
name,
provisioningState,
state,
systemData,
type
FROM azure.compute_limit.features
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lifecycle Methods
- enable
- disable
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 }}"
}'
;
Disables a compute limit feature for the subscription at the specified location.
EXEC azure.compute_limit.features.disable
@location='{{ location }}' --required,
@feature_name='{{ feature_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;