1. Packages
  2. Azure Native v2
  3. API Docs
  4. features
  5. SubscriptionFeatureRegistration
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.82.0 published on Friday, Jan 10, 2025 by Pulumi

azure-native-v2.features.SubscriptionFeatureRegistration

Explore with Pulumi AI

Subscription feature registration details Azure REST API version: 2021-07-01. Prior API version in Azure Native 1.x: 2021-07-01.

Example Usage

Creates a feature registration

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var subscriptionFeatureRegistration = new AzureNative.Features.SubscriptionFeatureRegistration("subscriptionFeatureRegistration", new()
    {
        FeatureName = "testFeature",
        Properties = null,
        ProviderNamespace = "subscriptionFeatureRegistrationGroupTestRG",
    });

});
Copy
package main

import (
	features "github.com/pulumi/pulumi-azure-native-sdk/features/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := features.NewSubscriptionFeatureRegistration(ctx, "subscriptionFeatureRegistration", &features.SubscriptionFeatureRegistrationArgs{
			FeatureName:       pulumi.String("testFeature"),
			Properties:        &features.SubscriptionFeatureRegistrationPropertiesArgs{},
			ProviderNamespace: pulumi.String("subscriptionFeatureRegistrationGroupTestRG"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.features.SubscriptionFeatureRegistration;
import com.pulumi.azurenative.features.SubscriptionFeatureRegistrationArgs;
import com.pulumi.azurenative.features.inputs.SubscriptionFeatureRegistrationPropertiesArgs;
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 subscriptionFeatureRegistration = new SubscriptionFeatureRegistration("subscriptionFeatureRegistration", SubscriptionFeatureRegistrationArgs.builder()
            .featureName("testFeature")
            .properties()
            .providerNamespace("subscriptionFeatureRegistrationGroupTestRG")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const subscriptionFeatureRegistration = new azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistration", {
    featureName: "testFeature",
    properties: {},
    providerNamespace: "subscriptionFeatureRegistrationGroupTestRG",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

subscription_feature_registration = azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistration",
    feature_name="testFeature",
    properties={},
    provider_namespace="subscriptionFeatureRegistrationGroupTestRG")
Copy
resources:
  subscriptionFeatureRegistration:
    type: azure-native:features:SubscriptionFeatureRegistration
    properties:
      featureName: testFeature
      properties: {}
      providerNamespace: subscriptionFeatureRegistrationGroupTestRG
Copy

Create SubscriptionFeatureRegistration Resource

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

Constructor syntax

new SubscriptionFeatureRegistration(name: string, args: SubscriptionFeatureRegistrationArgs, opts?: CustomResourceOptions);
@overload
def SubscriptionFeatureRegistration(resource_name: str,
                                    args: SubscriptionFeatureRegistrationArgs,
                                    opts: Optional[ResourceOptions] = None)

@overload
def SubscriptionFeatureRegistration(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    provider_namespace: Optional[str] = None,
                                    feature_name: Optional[str] = None,
                                    properties: Optional[SubscriptionFeatureRegistrationPropertiesArgs] = None)
func NewSubscriptionFeatureRegistration(ctx *Context, name string, args SubscriptionFeatureRegistrationArgs, opts ...ResourceOption) (*SubscriptionFeatureRegistration, error)
public SubscriptionFeatureRegistration(string name, SubscriptionFeatureRegistrationArgs args, CustomResourceOptions? opts = null)
public SubscriptionFeatureRegistration(String name, SubscriptionFeatureRegistrationArgs args)
public SubscriptionFeatureRegistration(String name, SubscriptionFeatureRegistrationArgs args, CustomResourceOptions options)
type: azure-native:features:SubscriptionFeatureRegistration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SubscriptionFeatureRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SubscriptionFeatureRegistrationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SubscriptionFeatureRegistrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SubscriptionFeatureRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SubscriptionFeatureRegistrationArgs
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 subscriptionFeatureRegistrationResource = new AzureNative.Features.SubscriptionFeatureRegistration("subscriptionFeatureRegistrationResource", new()
{
    ProviderNamespace = "string",
    FeatureName = "string",
    Properties = 
    {
        { "description", "string" },
        { "metadata", 
        {
            { "string", "string" },
        } },
        { "shouldFeatureDisplayInPortal", false },
        { "state", "string" },
    },
});
Copy
example, err := features.NewSubscriptionFeatureRegistration(ctx, "subscriptionFeatureRegistrationResource", &features.SubscriptionFeatureRegistrationArgs{
	ProviderNamespace: "string",
	FeatureName:       "string",
	Properties: map[string]interface{}{
		"description": "string",
		"metadata": map[string]interface{}{
			"string": "string",
		},
		"shouldFeatureDisplayInPortal": false,
		"state":                        "string",
	},
})
Copy
var subscriptionFeatureRegistrationResource = new SubscriptionFeatureRegistration("subscriptionFeatureRegistrationResource", SubscriptionFeatureRegistrationArgs.builder()
    .providerNamespace("string")
    .featureName("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
subscription_feature_registration_resource = azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistrationResource",
    provider_namespace=string,
    feature_name=string,
    properties={
        description: string,
        metadata: {
            string: string,
        },
        shouldFeatureDisplayInPortal: False,
        state: string,
    })
Copy
const subscriptionFeatureRegistrationResource = new azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistrationResource", {
    providerNamespace: "string",
    featureName: "string",
    properties: {
        description: "string",
        metadata: {
            string: "string",
        },
        shouldFeatureDisplayInPortal: false,
        state: "string",
    },
});
Copy
type: azure-native:features:SubscriptionFeatureRegistration
properties:
    featureName: string
    properties:
        description: string
        metadata:
            string: string
        shouldFeatureDisplayInPortal: false
        state: string
    providerNamespace: string
Copy

SubscriptionFeatureRegistration 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 SubscriptionFeatureRegistration resource accepts the following input properties:

ProviderNamespace
This property is required.
Changes to this property will trigger replacement.
string
The provider namespace.
FeatureName Changes to this property will trigger replacement. string
The feature name.
Properties Pulumi.AzureNative.Features.Inputs.SubscriptionFeatureRegistrationProperties
ProviderNamespace
This property is required.
Changes to this property will trigger replacement.
string
The provider namespace.
FeatureName Changes to this property will trigger replacement. string
The feature name.
Properties SubscriptionFeatureRegistrationPropertiesArgs
providerNamespace
This property is required.
Changes to this property will trigger replacement.
String
The provider namespace.
featureName Changes to this property will trigger replacement. String
The feature name.
properties SubscriptionFeatureRegistrationProperties
providerNamespace
This property is required.
Changes to this property will trigger replacement.
string
The provider namespace.
featureName Changes to this property will trigger replacement. string
The feature name.
properties SubscriptionFeatureRegistrationProperties
provider_namespace
This property is required.
Changes to this property will trigger replacement.
str
The provider namespace.
feature_name Changes to this property will trigger replacement. str
The feature name.
properties SubscriptionFeatureRegistrationPropertiesArgs
providerNamespace
This property is required.
Changes to this property will trigger replacement.
String
The provider namespace.
featureName Changes to this property will trigger replacement. String
The feature name.
properties Property Map

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
Azure resource name.
Type string
Azure resource type.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Azure resource name.
Type string
Azure resource type.
id String
The provider-assigned unique ID for this managed resource.
name String
Azure resource name.
type String
Azure resource type.
id string
The provider-assigned unique ID for this managed resource.
name string
Azure resource name.
type string
Azure resource type.
id str
The provider-assigned unique ID for this managed resource.
name str
Azure resource name.
type str
Azure resource type.
id String
The provider-assigned unique ID for this managed resource.
name String
Azure resource name.
type String
Azure resource type.

Supporting Types

AuthorizationProfileResponse
, AuthorizationProfileResponseArgs

ApprovedTime This property is required. string
The approved time
Approver This property is required. string
The approver
RequestedTime This property is required. string
The requested time
Requester This property is required. string
The requester
RequesterObjectId This property is required. string
The requester object id
ApprovedTime This property is required. string
The approved time
Approver This property is required. string
The approver
RequestedTime This property is required. string
The requested time
Requester This property is required. string
The requester
RequesterObjectId This property is required. string
The requester object id
approvedTime This property is required. String
The approved time
approver This property is required. String
The approver
requestedTime This property is required. String
The requested time
requester This property is required. String
The requester
requesterObjectId This property is required. String
The requester object id
approvedTime This property is required. string
The approved time
approver This property is required. string
The approver
requestedTime This property is required. string
The requested time
requester This property is required. string
The requester
requesterObjectId This property is required. string
The requester object id
approved_time This property is required. str
The approved time
approver This property is required. str
The approver
requested_time This property is required. str
The requested time
requester This property is required. str
The requester
requester_object_id This property is required. str
The requester object id
approvedTime This property is required. String
The approved time
approver This property is required. String
The approver
requestedTime This property is required. String
The requested time
requester This property is required. String
The requester
requesterObjectId This property is required. String
The requester object id

SubscriptionFeatureRegistrationProperties
, SubscriptionFeatureRegistrationPropertiesArgs

Description string
The feature description.
Metadata Dictionary<string, string>
Key-value pairs for meta data.
ShouldFeatureDisplayInPortal bool
Indicates whether feature should be displayed in Portal.
State string | Pulumi.AzureNative.Features.SubscriptionFeatureRegistrationState
The state.
Description string
The feature description.
Metadata map[string]string
Key-value pairs for meta data.
ShouldFeatureDisplayInPortal bool
Indicates whether feature should be displayed in Portal.
State string | SubscriptionFeatureRegistrationStateEnum
The state.
description String
The feature description.
metadata Map<String,String>
Key-value pairs for meta data.
shouldFeatureDisplayInPortal Boolean
Indicates whether feature should be displayed in Portal.
state String | SubscriptionFeatureRegistrationState
The state.
description string
The feature description.
metadata {[key: string]: string}
Key-value pairs for meta data.
shouldFeatureDisplayInPortal boolean
Indicates whether feature should be displayed in Portal.
state string | SubscriptionFeatureRegistrationState
The state.
description str
The feature description.
metadata Mapping[str, str]
Key-value pairs for meta data.
should_feature_display_in_portal bool
Indicates whether feature should be displayed in Portal.
state str | SubscriptionFeatureRegistrationState
The state.
description String
The feature description.
metadata Map<String>
Key-value pairs for meta data.
shouldFeatureDisplayInPortal Boolean
Indicates whether feature should be displayed in Portal.
state String | "NotSpecified" | "NotRegistered" | "Pending" | "Registering" | "Registered" | "Unregistering" | "Unregistered"
The state.

SubscriptionFeatureRegistrationResponseProperties
, SubscriptionFeatureRegistrationResponsePropertiesArgs

ApprovalType This property is required. string
The feature approval type.
DisplayName This property is required. string
The featureDisplayName.
DocumentationLink This property is required. string
The feature documentation link.
FeatureName This property is required. string
The featureName.
ProviderNamespace This property is required. string
The providerNamespace.
RegistrationDate This property is required. string
The feature registration date.
ReleaseDate This property is required. string
The feature release date.
SubscriptionId This property is required. string
The subscriptionId.
TenantId This property is required. string
The tenantId.
AuthorizationProfile Pulumi.AzureNative.Features.Inputs.AuthorizationProfileResponse
Authorization Profile
Description string
The feature description.
Metadata Dictionary<string, string>
Key-value pairs for meta data.
ShouldFeatureDisplayInPortal bool
Indicates whether feature should be displayed in Portal.
State string
The state.
ApprovalType This property is required. string
The feature approval type.
DisplayName This property is required. string
The featureDisplayName.
DocumentationLink This property is required. string
The feature documentation link.
FeatureName This property is required. string
The featureName.
ProviderNamespace This property is required. string
The providerNamespace.
RegistrationDate This property is required. string
The feature registration date.
ReleaseDate This property is required. string
The feature release date.
SubscriptionId This property is required. string
The subscriptionId.
TenantId This property is required. string
The tenantId.
AuthorizationProfile AuthorizationProfileResponse
Authorization Profile
Description string
The feature description.
Metadata map[string]string
Key-value pairs for meta data.
ShouldFeatureDisplayInPortal bool
Indicates whether feature should be displayed in Portal.
State string
The state.
approvalType This property is required. String
The feature approval type.
displayName This property is required. String
The featureDisplayName.
documentationLink This property is required. String
The feature documentation link.
featureName This property is required. String
The featureName.
providerNamespace This property is required. String
The providerNamespace.
registrationDate This property is required. String
The feature registration date.
releaseDate This property is required. String
The feature release date.
subscriptionId This property is required. String
The subscriptionId.
tenantId This property is required. String
The tenantId.
authorizationProfile AuthorizationProfileResponse
Authorization Profile
description String
The feature description.
metadata Map<String,String>
Key-value pairs for meta data.
shouldFeatureDisplayInPortal Boolean
Indicates whether feature should be displayed in Portal.
state String
The state.
approvalType This property is required. string
The feature approval type.
displayName This property is required. string
The featureDisplayName.
documentationLink This property is required. string
The feature documentation link.
featureName This property is required. string
The featureName.
providerNamespace This property is required. string
The providerNamespace.
registrationDate This property is required. string
The feature registration date.
releaseDate This property is required. string
The feature release date.
subscriptionId This property is required. string
The subscriptionId.
tenantId This property is required. string
The tenantId.
authorizationProfile AuthorizationProfileResponse
Authorization Profile
description string
The feature description.
metadata {[key: string]: string}
Key-value pairs for meta data.
shouldFeatureDisplayInPortal boolean
Indicates whether feature should be displayed in Portal.
state string
The state.
approval_type This property is required. str
The feature approval type.
display_name This property is required. str
The featureDisplayName.
documentation_link This property is required. str
The feature documentation link.
feature_name This property is required. str
The featureName.
provider_namespace This property is required. str
The providerNamespace.
registration_date This property is required. str
The feature registration date.
release_date This property is required. str
The feature release date.
subscription_id This property is required. str
The subscriptionId.
tenant_id This property is required. str
The tenantId.
authorization_profile AuthorizationProfileResponse
Authorization Profile
description str
The feature description.
metadata Mapping[str, str]
Key-value pairs for meta data.
should_feature_display_in_portal bool
Indicates whether feature should be displayed in Portal.
state str
The state.
approvalType This property is required. String
The feature approval type.
displayName This property is required. String
The featureDisplayName.
documentationLink This property is required. String
The feature documentation link.
featureName This property is required. String
The featureName.
providerNamespace This property is required. String
The providerNamespace.
registrationDate This property is required. String
The feature registration date.
releaseDate This property is required. String
The feature release date.
subscriptionId This property is required. String
The subscriptionId.
tenantId This property is required. String
The tenantId.
authorizationProfile Property Map
Authorization Profile
description String
The feature description.
metadata Map<String>
Key-value pairs for meta data.
shouldFeatureDisplayInPortal Boolean
Indicates whether feature should be displayed in Portal.
state String
The state.

SubscriptionFeatureRegistrationState
, SubscriptionFeatureRegistrationStateArgs

NotSpecified
NotSpecified
NotRegistered
NotRegistered
Pending
Pending
Registering
Registering
Registered
Registered
Unregistering
Unregistering
Unregistered
Unregistered
SubscriptionFeatureRegistrationStateNotSpecified
NotSpecified
SubscriptionFeatureRegistrationStateNotRegistered
NotRegistered
SubscriptionFeatureRegistrationStatePending
Pending
SubscriptionFeatureRegistrationStateRegistering
Registering
SubscriptionFeatureRegistrationStateRegistered
Registered
SubscriptionFeatureRegistrationStateUnregistering
Unregistering
SubscriptionFeatureRegistrationStateUnregistered
Unregistered
NotSpecified
NotSpecified
NotRegistered
NotRegistered
Pending
Pending
Registering
Registering
Registered
Registered
Unregistering
Unregistering
Unregistered
Unregistered
NotSpecified
NotSpecified
NotRegistered
NotRegistered
Pending
Pending
Registering
Registering
Registered
Registered
Unregistering
Unregistering
Unregistered
Unregistered
NOT_SPECIFIED
NotSpecified
NOT_REGISTERED
NotRegistered
PENDING
Pending
REGISTERING
Registering
REGISTERED
Registered
UNREGISTERING
Unregistering
UNREGISTERED
Unregistered
"NotSpecified"
NotSpecified
"NotRegistered"
NotRegistered
"Pending"
Pending
"Registering"
Registering
"Registered"
Registered
"Unregistering"
Unregistering
"Unregistered"
Unregistered

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:features:SubscriptionFeatureRegistration testFeature /subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName} 
Copy

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

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0