features
Creates, updates, deletes, gets or lists a features resource.
Overview
| Name | features |
| Type | Resource |
| Id | azure.resource.features |
Fields
The following fields are returned by SELECT queries:
- get
- list
- list_all
| Name | Datatype | Description |
|---|---|---|
id | string | The resource ID of the feature. |
name | string | The name of the feature. |
state | string | The registration state of the feature for the subscription. |
type | string | The resource type of the feature. |
| Name | Datatype | Description |
|---|---|---|
id | string | The resource ID of the feature. |
name | string | The name of the feature. |
state | string | The registration state of the feature for the subscription. |
type | string | The resource type of the feature. |
| Name | Datatype | Description |
|---|---|---|
id | string | The resource ID of the feature. |
name | string | The name of the feature. |
state | string | The registration state of the feature for the subscription. |
type | string | The resource type of the feature. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_provider_namespace, feature_name, subscription_id | Gets the preview feature with the specified name. | |
list | select | resource_provider_namespace, subscription_id | Gets all the preview features in a provider namespace that are available through AFEC for the subscription. | |
list_all | select | subscription_id | Gets all the preview features that are available through AFEC for the subscription. | |
register | exec | resource_provider_namespace, feature_name, subscription_id | Registers the preview feature for the subscription. | |
unregister | exec | resource_provider_namespace, feature_name, subscription_id | Unregisters the preview feature for the subscription. |
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 to unregister. Required. |
resource_provider_namespace | string | The namespace of the resource provider. Required. |
subscription_id | string |
SELECT examples
- get
- list
- list_all
Gets the preview feature with the specified name.
SELECT
id,
name,
state,
type
FROM azure.resource.features
WHERE resource_provider_namespace = '{{ resource_provider_namespace }}' -- required
AND feature_name = '{{ feature_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets all the preview features in a provider namespace that are available through AFEC for the subscription.
SELECT
id,
name,
state,
type
FROM azure.resource.features
WHERE resource_provider_namespace = '{{ resource_provider_namespace }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets all the preview features that are available through AFEC for the subscription.
SELECT
id,
name,
state,
type
FROM azure.resource.features
WHERE subscription_id = '{{ subscription_id }}' -- required
;
Lifecycle Methods
- register
- unregister
Registers the preview feature for the subscription.
EXEC azure.resource.features.register
@resource_provider_namespace='{{ resource_provider_namespace }}' --required,
@feature_name='{{ feature_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Unregisters the preview feature for the subscription.
EXEC azure.resource.features.unregister
@resource_provider_namespace='{{ resource_provider_namespace }}' --required,
@feature_name='{{ feature_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;