1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. core
  6. ResourceProviderFeatureRegistration

We recommend using Azure Native.

Viewing docs for Azure v6.35.0
published on Tuesday, Apr 21, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v6.35.0
published on Tuesday, Apr 21, 2026 by Pulumi

    Manages the registration of a feature within a Resource Provider.

    Note: The Resource Provider must be registered before a feature can be registered.

    Note: Only Preview Features which have an ApprovalType of AutoApproval can be managed in Terraform, features which require manual approval by Service Teams are unsupported. More information on Resource Provider Preview Features can be found in this document

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceProviderFeatureRegistration("example", {
        name: "EncryptionAtHost",
        providerName: "Microsoft.Compute",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceProviderFeatureRegistration("example",
        name="EncryptionAtHost",
        provider_name="Microsoft.Compute")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := core.NewResourceProviderFeatureRegistration(ctx, "example", &core.ResourceProviderFeatureRegistrationArgs{
    			Name:         pulumi.String("EncryptionAtHost"),
    			ProviderName: pulumi.String("Microsoft.Compute"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceProviderFeatureRegistration("example", new()
        {
            Name = "EncryptionAtHost",
            ProviderName = "Microsoft.Compute",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceProviderFeatureRegistration;
    import com.pulumi.azure.core.ResourceProviderFeatureRegistrationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ResourceProviderFeatureRegistration("example", ResourceProviderFeatureRegistrationArgs.builder()
                .name("EncryptionAtHost")
                .providerName("Microsoft.Compute")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceProviderFeatureRegistration
        properties:
          name: EncryptionAtHost
          providerName: Microsoft.Compute
    
    Example coming soon!
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.Features - 2021-07-01

    Create ResourceProviderFeatureRegistration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResourceProviderFeatureRegistration(name: string, args: ResourceProviderFeatureRegistrationArgs, opts?: CustomResourceOptions);
    @overload
    def ResourceProviderFeatureRegistration(resource_name: str,
                                            args: ResourceProviderFeatureRegistrationArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourceProviderFeatureRegistration(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            provider_name: Optional[str] = None,
                                            name: Optional[str] = None)
    func NewResourceProviderFeatureRegistration(ctx *Context, name string, args ResourceProviderFeatureRegistrationArgs, opts ...ResourceOption) (*ResourceProviderFeatureRegistration, error)
    public ResourceProviderFeatureRegistration(string name, ResourceProviderFeatureRegistrationArgs args, CustomResourceOptions? opts = null)
    public ResourceProviderFeatureRegistration(String name, ResourceProviderFeatureRegistrationArgs args)
    public ResourceProviderFeatureRegistration(String name, ResourceProviderFeatureRegistrationArgs args, CustomResourceOptions options)
    
    type: azure:core:ResourceProviderFeatureRegistration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure_core_resourceproviderfeatureregistration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ResourceProviderFeatureRegistrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ResourceProviderFeatureRegistrationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ResourceProviderFeatureRegistrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourceProviderFeatureRegistrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourceProviderFeatureRegistrationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var resourceProviderFeatureRegistrationResource = new Azure.Core.ResourceProviderFeatureRegistration("resourceProviderFeatureRegistrationResource", new()
    {
        ProviderName = "string",
        Name = "string",
    });
    
    example, err := core.NewResourceProviderFeatureRegistration(ctx, "resourceProviderFeatureRegistrationResource", &core.ResourceProviderFeatureRegistrationArgs{
    	ProviderName: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    })
    
    resource "azure_core_resourceproviderfeatureregistration" "resourceProviderFeatureRegistrationResource" {
      provider_name = "string"
      name          = "string"
    }
    
    var resourceProviderFeatureRegistrationResource = new ResourceProviderFeatureRegistration("resourceProviderFeatureRegistrationResource", ResourceProviderFeatureRegistrationArgs.builder()
        .providerName("string")
        .name("string")
        .build());
    
    resource_provider_feature_registration_resource = azure.core.ResourceProviderFeatureRegistration("resourceProviderFeatureRegistrationResource",
        provider_name="string",
        name="string")
    
    const resourceProviderFeatureRegistrationResource = new azure.core.ResourceProviderFeatureRegistration("resourceProviderFeatureRegistrationResource", {
        providerName: "string",
        name: "string",
    });
    
    type: azure:core:ResourceProviderFeatureRegistration
    properties:
        name: string
        providerName: string
    

    ResourceProviderFeatureRegistration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ResourceProviderFeatureRegistration resource accepts the following input properties:

    ProviderName string
    The Resource Provider name. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    ProviderName string
    The Resource Provider name. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    provider_name string
    The Resource Provider name. Changing this forces a new resource to be created.
    name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    providerName String
    The Resource Provider name. Changing this forces a new resource to be created.
    name String
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    providerName string
    The Resource Provider name. Changing this forces a new resource to be created.
    name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    provider_name str
    The Resource Provider name. Changing this forces a new resource to be created.
    name str
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    providerName String
    The Resource Provider name. Changing this forces a new resource to be created.
    name String
    Specifies the name of the feature to register. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResourceProviderFeatureRegistration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ResourceProviderFeatureRegistration Resource

    Get an existing ResourceProviderFeatureRegistration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ResourceProviderFeatureRegistrationState, opts?: CustomResourceOptions): ResourceProviderFeatureRegistration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            provider_name: Optional[str] = None) -> ResourceProviderFeatureRegistration
    func GetResourceProviderFeatureRegistration(ctx *Context, name string, id IDInput, state *ResourceProviderFeatureRegistrationState, opts ...ResourceOption) (*ResourceProviderFeatureRegistration, error)
    public static ResourceProviderFeatureRegistration Get(string name, Input<string> id, ResourceProviderFeatureRegistrationState? state, CustomResourceOptions? opts = null)
    public static ResourceProviderFeatureRegistration get(String name, Output<String> id, ResourceProviderFeatureRegistrationState state, CustomResourceOptions options)
    resources:  _:    type: azure:core:ResourceProviderFeatureRegistration    get:      id: ${id}
    import {
      to = azure_core_resourceproviderfeatureregistration.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    ProviderName string
    The Resource Provider name. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    ProviderName string
    The Resource Provider name. Changing this forces a new resource to be created.
    name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    provider_name string
    The Resource Provider name. Changing this forces a new resource to be created.
    name String
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    providerName String
    The Resource Provider name. Changing this forces a new resource to be created.
    name string
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    providerName string
    The Resource Provider name. Changing this forces a new resource to be created.
    name str
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    provider_name str
    The Resource Provider name. Changing this forces a new resource to be created.
    name String
    Specifies the name of the feature to register. Changing this forces a new resource to be created.
    providerName String
    The Resource Provider name. Changing this forces a new resource to be created.

    Import

    Features Registrations can be imported using the resource id, e.g.

    $ pulumi import azure:core/resourceProviderFeatureRegistration:ResourceProviderFeatureRegistration example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Features/providers/{ResourceProviderName}/features/{FeatureName}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v6.35.0
    published on Tuesday, Apr 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.