1. Packages
  2. Azure Native
  3. API Docs
  4. features
  5. SubscriptionFeatureRegistration
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.features.SubscriptionFeatureRegistration

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    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:        nil,
    			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 pulumi
    import pulumi_azure_native as azure_native
    
    subscription_feature_registration = azure_native.features.SubscriptionFeatureRegistration("subscriptionFeatureRegistration",
        feature_name="testFeature",
        properties={},
        provider_namespace="subscriptionFeatureRegistrationGroupTestRG")
    
    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",
    });
    
    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",
            },
            "shouldFeatureDisplayInPortal": 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

    The SubscriptionFeatureRegistration resource accepts the following input properties:

    providerNamespace String
    The provider namespace.
    featureName String
    The feature name.
    properties SubscriptionFeatureRegistrationProperties
    providerNamespace string
    The provider namespace.
    featureName string
    The feature name.
    properties SubscriptionFeatureRegistrationProperties
    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:

    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 string
    The approved time
    Approver string
    The approver
    RequestedTime string
    The requested time
    Requester string
    The requester
    RequesterObjectId string
    The requester object id
    ApprovedTime string
    The approved time
    Approver string
    The approver
    RequestedTime string
    The requested time
    Requester string
    The requester
    RequesterObjectId string
    The requester object id
    approvedTime String
    The approved time
    approver String
    The approver
    requestedTime String
    The requested time
    requester String
    The requester
    requesterObjectId String
    The requester object id
    approvedTime string
    The approved time
    approver string
    The approver
    requestedTime string
    The requested time
    requester string
    The requester
    requesterObjectId string
    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_id str
    The requester object id
    approvedTime String
    The approved time
    approver String
    The approver
    requestedTime String
    The requested time
    requester String
    The requester
    requesterObjectId 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 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 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 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 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 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 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 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 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 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.
    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 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 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} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi