azure-native.features.SubscriptionFeatureRegistration
Explore with Pulumi AI
Subscription feature registration details API Version: 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"
"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 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=azure_native.features.SubscriptionFeatureRegistrationPropertiesArgs(),
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 =
{
{ "description", "string" },
{ "metadata",
{
{ "string", "string" },
} },
{ "shouldFeatureDisplayInPortal", false },
{ "state", "string" },
},
});
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",
},
})
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());
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
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:
- Provider
Namespace string - The provider namespace.
- Feature
Name string - The feature name.
- Properties
Pulumi.
Azure Native. Features. Inputs. Subscription Feature Registration Properties
- Provider
Namespace string - The provider namespace.
- Feature
Name string - The feature name.
- Properties
Subscription
Feature Registration Properties Args
- provider
Namespace String - The provider namespace.
- feature
Name String - The feature name.
- properties
Subscription
Feature Registration Properties
- provider
Namespace string - The provider namespace.
- feature
Name string - The feature name.
- properties
Subscription
Feature Registration Properties
- provider_
namespace str - The provider namespace.
- feature_
name str - The feature name.
- properties
Subscription
Feature Registration Properties Args
- provider
Namespace String - The provider namespace.
- feature
Name 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
- Approved
Time string - The approved time
- Approver string
- The approver
- Requested
Time string - The requested time
- Requester string
- The requester
- Requester
Object stringId - The requester object id
- Approved
Time string - The approved time
- Approver string
- The approver
- Requested
Time string - The requested time
- Requester string
- The requester
- Requester
Object stringId - The requester object id
- approved
Time String - The approved time
- approver String
- The approver
- requested
Time String - The requested time
- requester String
- The requester
- requester
Object StringId - The requester object id
- approved
Time string - The approved time
- approver string
- The approver
- requested
Time string - The requested time
- requester string
- The requester
- requester
Object 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
- approved
Time String - The approved time
- approver String
- The approver
- requested
Time String - The requested time
- requester String
- The requester
- requester
Object StringId - The requester object id
SubscriptionFeatureRegistrationProperties, SubscriptionFeatureRegistrationPropertiesArgs
- Description string
- The feature description.
- Metadata Dictionary<string, string>
- Key-value pairs for meta data.
- Should
Feature 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.
- Should
Feature boolDisplay In Portal - Indicates whether feature should be displayed in Portal.
- State
string | Subscription
Feature Registration State Enum - The state.
- description String
- The feature description.
- metadata Map<String,String>
- Key-value pairs for meta data.
- should
Feature BooleanDisplay In Portal - Indicates whether feature should be displayed in Portal.
- state
String | Subscription
Feature Registration State - The state.
- description string
- The feature description.
- metadata {[key: string]: string}
- Key-value pairs for meta data.
- should
Feature booleanDisplay In Portal - Indicates whether feature should be displayed in Portal.
- state
string | Subscription
Feature 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 | Subscription
Feature Registration State - The state.
- description String
- The feature description.
- metadata Map<String>
- Key-value pairs for meta data.
- should
Feature BooleanDisplay In Portal - Indicates whether feature should be displayed in Portal.
- state
String | "Not
Specified" | "Not Registered" | "Pending" | "Registering" | "Registered" | "Unregistering" | "Unregistered" - The state.
SubscriptionFeatureRegistrationResponseProperties, SubscriptionFeatureRegistrationResponsePropertiesArgs
- Approval
Type string - The feature approval type.
- Display
Name string - The featureDisplayName.
- Documentation
Link string - The feature documentation link.
- Feature
Name string - The featureName.
- Provider
Namespace string - The providerNamespace.
- Registration
Date string - The feature registration date.
- Release
Date string - The feature release date.
- Subscription
Id string - The subscriptionId.
- Tenant
Id 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.
- Should
Feature boolDisplay In Portal - Indicates whether feature should be displayed in Portal.
- State string
- The state.
- Approval
Type string - The feature approval type.
- Display
Name string - The featureDisplayName.
- Documentation
Link string - The feature documentation link.
- Feature
Name string - The featureName.
- Provider
Namespace string - The providerNamespace.
- Registration
Date string - The feature registration date.
- Release
Date string - The feature release date.
- Subscription
Id string - The subscriptionId.
- Tenant
Id string - The tenantId.
- Authorization
Profile Response - Authorization Profile
- Description string
- The feature description.
- Metadata map[string]string
- Key-value pairs for meta data.
- Should
Feature boolDisplay In Portal - Indicates whether feature should be displayed in Portal.
- State string
- The state.
- approval
Type String - The feature approval type.
- display
Name String - The featureDisplayName.
- documentation
Link String - The feature documentation link.
- feature
Name String - The featureName.
- provider
Namespace String - The providerNamespace.
- registration
Date String - The feature registration date.
- release
Date String - The feature release date.
- subscription
Id String - The subscriptionId.
- tenant
Id String - The tenantId.
- Authorization
Profile Response - Authorization Profile
- description String
- The feature description.
- metadata Map<String,String>
- Key-value pairs for meta data.
- should
Feature BooleanDisplay In Portal - Indicates whether feature should be displayed in Portal.
- state String
- The state.
- approval
Type string - The feature approval type.
- display
Name string - The featureDisplayName.
- documentation
Link string - The feature documentation link.
- feature
Name string - The featureName.
- provider
Namespace string - The providerNamespace.
- registration
Date string - The feature registration date.
- release
Date string - The feature release date.
- subscription
Id string - The subscriptionId.
- tenant
Id string - The tenantId.
- Authorization
Profile Response - Authorization Profile
- description string
- The feature description.
- metadata {[key: string]: string}
- Key-value pairs for meta data.
- should
Feature 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.
- Authorization
Profile 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.
- approval
Type String - The feature approval type.
- display
Name String - The featureDisplayName.
- documentation
Link String - The feature documentation link.
- feature
Name String - The featureName.
- provider
Namespace String - The providerNamespace.
- registration
Date String - The feature registration date.
- release
Date String - The feature release date.
- subscription
Id String - The subscriptionId.
- tenant
Id String - The tenantId.
- Property Map
- Authorization Profile
- description String
- The feature description.
- metadata Map<String>
- Key-value pairs for meta data.
- should
Feature BooleanDisplay In Portal - Indicates whether feature should be displayed in Portal.
- state String
- The state.
SubscriptionFeatureRegistrationState, SubscriptionFeatureRegistrationStateArgs
- Not
Specified - NotSpecified
- Not
Registered - NotRegistered
- Pending
- Pending
- Registering
- Registering
- Registered
- Registered
- Unregistering
- Unregistering
- Unregistered
- Unregistered
- Subscription
Feature Registration State Not Specified - NotSpecified
- Subscription
Feature Registration State Not Registered - NotRegistered
- Subscription
Feature Registration State Pending - Pending
- Subscription
Feature Registration State Registering - Registering
- Subscription
Feature Registration State Registered - Registered
- Subscription
Feature Registration State Unregistering - Unregistering
- Subscription
Feature Registration State Unregistered - Unregistered
- Not
Specified - NotSpecified
- Not
Registered - 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
- NOT_SPECIFIED
- NotSpecified
- NOT_REGISTERED
- 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
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:features:SubscriptionFeatureRegistration testFeature /subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0