Skip to main content

features

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

Overview

Namefeatures
TypeResource
Idazure.resource.features

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource ID of the feature.
namestringThe name of the feature.
statestringThe registration state of the feature for the subscription.
typestringThe resource type of the feature.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_provider_namespace, feature_name, subscription_idGets the preview feature with the specified name.
listselectresource_provider_namespace, subscription_idGets all the preview features in a provider namespace that are available through AFEC for the subscription.
list_allselectsubscription_idGets all the preview features that are available through AFEC for the subscription.
registerexecresource_provider_namespace, feature_name, subscription_idRegisters the preview feature for the subscription.
unregisterexecresource_provider_namespace, feature_name, subscription_idUnregisters 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.

NameDatatypeDescription
feature_namestringThe name of the feature to unregister. Required.
resource_provider_namespacestringThe namespace of the resource provider. Required.
subscription_idstring

SELECT examples

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
;

Lifecycle Methods

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
;