azure-native.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",
    });
});
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
	})
}
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());
    }
}
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",
});
import pulumi
import pulumi_azure_native as azure_native
subscription_feature_registration = azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistration",
    feature_name="testFeature",
    properties={},
    provider_namespace="subscriptionFeatureRegistrationGroupTestRG")
resources:
  subscriptionFeatureRegistration:
    type: azure-native:features:SubscriptionFeatureRegistration
    properties:
      featureName: testFeature
      properties: {}
      providerNamespace: subscriptionFeatureRegistrationGroupTestRG
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 string
- The unique name of the resource.
- args SubscriptionFeatureRegistrationArgs
- 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 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 string
- The unique name of the resource.
- args SubscriptionFeatureRegistrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubscriptionFeatureRegistrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 = new AzureNative.Features.Inputs.SubscriptionFeatureRegistrationPropertiesArgs
    {
        Description = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        ShouldFeatureDisplayInPortal = false,
        State = "string",
    },
});
example, err := features.NewSubscriptionFeatureRegistration(ctx, "subscriptionFeatureRegistrationResource", &features.SubscriptionFeatureRegistrationArgs{
	ProviderNamespace: pulumi.String("string"),
	FeatureName:       pulumi.String("string"),
	Properties: &features.SubscriptionFeatureRegistrationPropertiesArgs{
		Description: pulumi.String("string"),
		Metadata: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
		ShouldFeatureDisplayInPortal: pulumi.Bool(false),
		State:                        pulumi.String("string"),
	},
})
var subscriptionFeatureRegistrationResource = new SubscriptionFeatureRegistration("subscriptionFeatureRegistrationResource", SubscriptionFeatureRegistrationArgs.builder()
    .providerNamespace("string")
    .featureName("string")
    .properties(SubscriptionFeatureRegistrationPropertiesArgs.builder()
        .description("string")
        .metadata(Map.of("string", "string"))
        .shouldFeatureDisplayInPortal(false)
        .state("string")
        .build())
    .build());
subscription_feature_registration_resource = azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistrationResource",
    provider_namespace="string",
    feature_name="string",
    properties={
        "description": "string",
        "metadata": {
            "string": "string",
        },
        "should_feature_display_in_portal": False,
        "state": "string",
    })
const subscriptionFeatureRegistrationResource = new azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistrationResource", {
    providerNamespace: "string",
    featureName: "string",
    properties: {
        description: "string",
        metadata: {
            string: "string",
        },
        shouldFeatureDisplayInPortal: false,
        state: "string",
    },
});
type: azure-native:features:SubscriptionFeatureRegistration
properties:
    featureName: string
    properties:
        description: string
        metadata:
            string: string
        shouldFeatureDisplayInPortal: false
        state: string
    providerNamespace: string
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 string
- The provider namespace.
- FeatureName string
- The feature name.
- Properties
Pulumi.Azure Native. Features. Inputs. Subscription Feature Registration Properties 
- ProviderNamespace string
- The provider namespace.
- FeatureName string
- The feature name.
- Properties
SubscriptionFeature Registration Properties Args 
- providerNamespace String
- The provider namespace.
- featureName String
- The feature name.
- properties
SubscriptionFeature Registration Properties 
- providerNamespace string
- The provider namespace.
- featureName string
- The feature name.
- properties
SubscriptionFeature Registration Properties 
- provider_namespace str
- The provider namespace.
- feature_name str
- The feature name.
- properties
SubscriptionFeature Registration Properties Args 
- providerNamespace String
- The provider namespace.
- featureName 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:
Supporting Types
AuthorizationProfileResponse, AuthorizationProfileResponseArgs      
- ApprovedTime string
- The approved time
- Approver string
- The approver
- RequestedTime string
- The requested time
- Requester string
- The requester
- RequesterObject stringId 
- The requester object id
- ApprovedTime string
- The approved time
- Approver string
- The approver
- RequestedTime string
- The requested time
- Requester string
- The requester
- RequesterObject stringId 
- The requester object id
- approvedTime String
- The approved time
- approver String
- The approver
- requestedTime String
- The requested time
- requester String
- The requester
- requesterObject StringId 
- The requester object id
- approvedTime string
- The approved time
- approver string
- The approver
- requestedTime string
- The requested time
- requester string
- The requester
- requesterObject stringId 
- The requester object id
- approved_time str
- The approved time
- approver str
- The approver
- requested_time str
- The requested time
- requester str
- The requester
- requester_object_ strid 
- The requester object id
- approvedTime String
- The approved time
- approver String
- The approver
- requestedTime String
- The requested time
- requester String
- The requester
- requesterObject StringId 
- The requester object id
SubscriptionFeatureRegistrationProperties, SubscriptionFeatureRegistrationPropertiesArgs        
- Description string
- The feature description.
- Metadata Dictionary<string, string>
- Key-value pairs for meta data.
- ShouldFeature boolDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- State
string | Pulumi.Azure Native. Features. Subscription Feature Registration State 
- The state.
- Description string
- The feature description.
- Metadata map[string]string
- Key-value pairs for meta data.
- ShouldFeature boolDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- State
string | SubscriptionFeature Registration State Enum 
- The state.
- description String
- The feature description.
- metadata Map<String,String>
- Key-value pairs for meta data.
- shouldFeature BooleanDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- state
String | SubscriptionFeature Registration State 
- The state.
- description string
- The feature description.
- metadata {[key: string]: string}
- Key-value pairs for meta data.
- shouldFeature booleanDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- state
string | SubscriptionFeature Registration State 
- The state.
- description str
- The feature description.
- metadata Mapping[str, str]
- Key-value pairs for meta data.
- should_feature_ booldisplay_ in_ portal 
- Indicates whether feature should be displayed in Portal.
- state
str | SubscriptionFeature Registration State 
- The state.
- description String
- The feature description.
- metadata Map<String>
- Key-value pairs for meta data.
- shouldFeature BooleanDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- state
String | "NotSpecified" | "Not Registered" | "Pending" | "Registering" | "Registered" | "Unregistering" | "Unregistered" 
- The state.
SubscriptionFeatureRegistrationResponseProperties, SubscriptionFeatureRegistrationResponsePropertiesArgs          
- ApprovalType string
- The feature approval type.
- DisplayName string
- The featureDisplayName.
- DocumentationLink string
- The feature documentation link.
- FeatureName string
- The featureName.
- ProviderNamespace string
- The providerNamespace.
- RegistrationDate string
- The feature registration date.
- ReleaseDate string
- The feature release date.
- SubscriptionId string
- The subscriptionId.
- TenantId string
- The tenantId.
- 
Pulumi.Azure Native. Features. Inputs. Authorization Profile Response 
- Authorization Profile
- Description string
- The feature description.
- Metadata Dictionary<string, string>
- Key-value pairs for meta data.
- ShouldFeature boolDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- State string
- The state.
- ApprovalType string
- The feature approval type.
- DisplayName string
- The featureDisplayName.
- DocumentationLink string
- The feature documentation link.
- FeatureName string
- The featureName.
- ProviderNamespace string
- The providerNamespace.
- RegistrationDate string
- The feature registration date.
- ReleaseDate string
- The feature release date.
- SubscriptionId string
- The subscriptionId.
- TenantId string
- The tenantId.
- 
AuthorizationProfile Response 
- Authorization Profile
- Description string
- The feature description.
- Metadata map[string]string
- Key-value pairs for meta data.
- ShouldFeature boolDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- State string
- The state.
- approvalType String
- The feature approval type.
- displayName String
- The featureDisplayName.
- documentationLink String
- The feature documentation link.
- featureName String
- The featureName.
- providerNamespace String
- The providerNamespace.
- registrationDate String
- The feature registration date.
- releaseDate String
- The feature release date.
- subscriptionId String
- The subscriptionId.
- tenantId String
- The tenantId.
- 
AuthorizationProfile Response 
- Authorization Profile
- description String
- The feature description.
- metadata Map<String,String>
- Key-value pairs for meta data.
- shouldFeature BooleanDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- state String
- The state.
- approvalType string
- The feature approval type.
- displayName string
- The featureDisplayName.
- documentationLink string
- The feature documentation link.
- featureName string
- The featureName.
- providerNamespace string
- The providerNamespace.
- registrationDate string
- The feature registration date.
- releaseDate string
- The feature release date.
- subscriptionId string
- The subscriptionId.
- tenantId string
- The tenantId.
- 
AuthorizationProfile Response 
- Authorization Profile
- description string
- The feature description.
- metadata {[key: string]: string}
- Key-value pairs for meta data.
- shouldFeature booleanDisplay In Portal 
- Indicates whether feature should be displayed in Portal.
- state string
- The state.
- approval_type str
- The feature approval type.
- display_name str
- The featureDisplayName.
- documentation_link str
- The feature documentation link.
- feature_name str
- The featureName.
- provider_namespace str
- The providerNamespace.
- registration_date str
- The feature registration date.
- release_date str
- The feature release date.
- subscription_id str
- The subscriptionId.
- tenant_id str
- The tenantId.
- 
AuthorizationProfile Response 
- Authorization Profile
- description str
- The feature description.
- metadata Mapping[str, str]
- Key-value pairs for meta data.
- should_feature_ booldisplay_ in_ portal 
- Indicates whether feature should be displayed in Portal.
- state str
- The state.
- approvalType String
- The feature approval type.
- displayName String
- The featureDisplayName.
- documentationLink String
- The feature documentation link.
- featureName String
- The featureName.
- providerNamespace String
- The providerNamespace.
- registrationDate String
- The feature registration date.
- releaseDate String
- The feature release date.
- subscriptionId String
- The subscriptionId.
- tenantId String
- The tenantId.
- Property Map
- Authorization Profile
- description String
- The feature description.
- metadata Map<String>
- Key-value pairs for meta data.
- shouldFeature BooleanDisplay In Portal 
- 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
- SubscriptionFeature Registration State Not Specified 
- NotSpecified
- SubscriptionFeature Registration State Not Registered 
- NotRegistered
- SubscriptionFeature Registration State Pending 
- Pending
- SubscriptionFeature Registration State Registering 
- Registering
- SubscriptionFeature Registration State Registered 
- Registered
- SubscriptionFeature Registration State Unregistering 
- Unregistering
- SubscriptionFeature Registration State Unregistered 
- 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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0