1. Packages
  2. Azure Classic
  3. API Docs
  4. appconfiguration
  5. ConfigurationFeature

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.appconfiguration.ConfigurationFeature

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages an Azure App Configuration Feature.

    Note: App Configuration Features are provisioned using a Data Plane API which requires the role App Configuration Data Owner on either the App Configuration or a parent scope (such as the Resource Group/Subscription). More information can be found in the Azure Documentation for App Configuration. This is similar to providing App Configuration Keys.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const appconf = new azure.appconfiguration.ConfigurationStore("appconf", {
        name: "appConf1",
        resourceGroupName: example.name,
        location: example.location,
    });
    const current = azure.core.getClientConfig({});
    const appconfDataowner = new azure.authorization.Assignment("appconf_dataowner", {
        scope: appconf.id,
        roleDefinitionName: "App Configuration Data Owner",
        principalId: current.then(current => current.objectId),
    });
    const test = new azure.appconfiguration.ConfigurationFeature("test", {
        configurationStoreId: appconf.id,
        description: "test description",
        name: "test-ackey",
        label: "test-ackeylabel",
        enabled: true,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    appconf = azure.appconfiguration.ConfigurationStore("appconf",
        name="appConf1",
        resource_group_name=example.name,
        location=example.location)
    current = azure.core.get_client_config()
    appconf_dataowner = azure.authorization.Assignment("appconf_dataowner",
        scope=appconf.id,
        role_definition_name="App Configuration Data Owner",
        principal_id=current.object_id)
    test = azure.appconfiguration.ConfigurationFeature("test",
        configuration_store_id=appconf.id,
        description="test description",
        name="test-ackey",
        label="test-ackeylabel",
        enabled=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appconfiguration"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		appconf, err := appconfiguration.NewConfigurationStore(ctx, "appconf", &appconfiguration.ConfigurationStoreArgs{
    			Name:              pulumi.String("appConf1"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		current, err := core.GetClientConfig(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		_, err = authorization.NewAssignment(ctx, "appconf_dataowner", &authorization.AssignmentArgs{
    			Scope:              appconf.ID(),
    			RoleDefinitionName: pulumi.String("App Configuration Data Owner"),
    			PrincipalId:        pulumi.String(current.ObjectId),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appconfiguration.NewConfigurationFeature(ctx, "test", &appconfiguration.ConfigurationFeatureArgs{
    			ConfigurationStoreId: appconf.ID(),
    			Description:          pulumi.String("test description"),
    			Name:                 pulumi.String("test-ackey"),
    			Label:                pulumi.String("test-ackeylabel"),
    			Enabled:              pulumi.Bool(true),
    		})
    		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.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var appconf = new Azure.AppConfiguration.ConfigurationStore("appconf", new()
        {
            Name = "appConf1",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var current = Azure.Core.GetClientConfig.Invoke();
    
        var appconfDataowner = new Azure.Authorization.Assignment("appconf_dataowner", new()
        {
            Scope = appconf.Id,
            RoleDefinitionName = "App Configuration Data Owner",
            PrincipalId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
        });
    
        var test = new Azure.AppConfiguration.ConfigurationFeature("test", new()
        {
            ConfigurationStoreId = appconf.Id,
            Description = "test description",
            Name = "test-ackey",
            Label = "test-ackeylabel",
            Enabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.appconfiguration.ConfigurationStore;
    import com.pulumi.azure.appconfiguration.ConfigurationStoreArgs;
    import com.pulumi.azure.core.CoreFunctions;
    import com.pulumi.azure.authorization.Assignment;
    import com.pulumi.azure.authorization.AssignmentArgs;
    import com.pulumi.azure.appconfiguration.ConfigurationFeature;
    import com.pulumi.azure.appconfiguration.ConfigurationFeatureArgs;
    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 ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var appconf = new ConfigurationStore("appconf", ConfigurationStoreArgs.builder()
                .name("appConf1")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            final var current = CoreFunctions.getClientConfig();
    
            var appconfDataowner = new Assignment("appconfDataowner", AssignmentArgs.builder()
                .scope(appconf.id())
                .roleDefinitionName("App Configuration Data Owner")
                .principalId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
                .build());
    
            var test = new ConfigurationFeature("test", ConfigurationFeatureArgs.builder()
                .configurationStoreId(appconf.id())
                .description("test description")
                .name("test-ackey")
                .label("test-ackeylabel")
                .enabled(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      appconf:
        type: azure:appconfiguration:ConfigurationStore
        properties:
          name: appConf1
          resourceGroupName: ${example.name}
          location: ${example.location}
      appconfDataowner:
        type: azure:authorization:Assignment
        name: appconf_dataowner
        properties:
          scope: ${appconf.id}
          roleDefinitionName: App Configuration Data Owner
          principalId: ${current.objectId}
      test:
        type: azure:appconfiguration:ConfigurationFeature
        properties:
          configurationStoreId: ${appconf.id}
          description: test description
          name: test-ackey
          label: test-ackeylabel
          enabled: true
    variables:
      current:
        fn::invoke:
          Function: azure:core:getClientConfig
          Arguments: {}
    

    Create ConfigurationFeature Resource

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

    Constructor syntax

    new ConfigurationFeature(name: string, args: ConfigurationFeatureArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigurationFeature(resource_name: str,
                             args: ConfigurationFeatureArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConfigurationFeature(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             configuration_store_id: Optional[str] = None,
                             description: Optional[str] = None,
                             enabled: Optional[bool] = None,
                             etag: Optional[str] = None,
                             key: Optional[str] = None,
                             label: Optional[str] = None,
                             locked: Optional[bool] = None,
                             name: Optional[str] = None,
                             percentage_filter_value: Optional[float] = None,
                             tags: Optional[Mapping[str, str]] = None,
                             targeting_filters: Optional[Sequence[ConfigurationFeatureTargetingFilterArgs]] = None,
                             timewindow_filters: Optional[Sequence[ConfigurationFeatureTimewindowFilterArgs]] = None)
    func NewConfigurationFeature(ctx *Context, name string, args ConfigurationFeatureArgs, opts ...ResourceOption) (*ConfigurationFeature, error)
    public ConfigurationFeature(string name, ConfigurationFeatureArgs args, CustomResourceOptions? opts = null)
    public ConfigurationFeature(String name, ConfigurationFeatureArgs args)
    public ConfigurationFeature(String name, ConfigurationFeatureArgs args, CustomResourceOptions options)
    
    type: azure:appconfiguration:ConfigurationFeature
    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 ConfigurationFeatureArgs
    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 ConfigurationFeatureArgs
    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 ConfigurationFeatureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigurationFeatureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigurationFeatureArgs
    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 configurationFeatureResource = new Azure.AppConfiguration.ConfigurationFeature("configurationFeatureResource", new()
    {
        ConfigurationStoreId = "string",
        Description = "string",
        Enabled = false,
        Etag = "string",
        Key = "string",
        Label = "string",
        Locked = false,
        Name = "string",
        PercentageFilterValue = 0,
        Tags = 
        {
            { "string", "string" },
        },
        TargetingFilters = new[]
        {
            new Azure.AppConfiguration.Inputs.ConfigurationFeatureTargetingFilterArgs
            {
                DefaultRolloutPercentage = 0,
                Groups = new[]
                {
                    new Azure.AppConfiguration.Inputs.ConfigurationFeatureTargetingFilterGroupArgs
                    {
                        Name = "string",
                        RolloutPercentage = 0,
                    },
                },
                Users = new[]
                {
                    "string",
                },
            },
        },
        TimewindowFilters = new[]
        {
            new Azure.AppConfiguration.Inputs.ConfigurationFeatureTimewindowFilterArgs
            {
                End = "string",
                Start = "string",
            },
        },
    });
    
    example, err := appconfiguration.NewConfigurationFeature(ctx, "configurationFeatureResource", &appconfiguration.ConfigurationFeatureArgs{
    	ConfigurationStoreId:  pulumi.String("string"),
    	Description:           pulumi.String("string"),
    	Enabled:               pulumi.Bool(false),
    	Etag:                  pulumi.String("string"),
    	Key:                   pulumi.String("string"),
    	Label:                 pulumi.String("string"),
    	Locked:                pulumi.Bool(false),
    	Name:                  pulumi.String("string"),
    	PercentageFilterValue: pulumi.Float64(0),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TargetingFilters: appconfiguration.ConfigurationFeatureTargetingFilterArray{
    		&appconfiguration.ConfigurationFeatureTargetingFilterArgs{
    			DefaultRolloutPercentage: pulumi.Int(0),
    			Groups: appconfiguration.ConfigurationFeatureTargetingFilterGroupArray{
    				&appconfiguration.ConfigurationFeatureTargetingFilterGroupArgs{
    					Name:              pulumi.String("string"),
    					RolloutPercentage: pulumi.Int(0),
    				},
    			},
    			Users: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	TimewindowFilters: appconfiguration.ConfigurationFeatureTimewindowFilterArray{
    		&appconfiguration.ConfigurationFeatureTimewindowFilterArgs{
    			End:   pulumi.String("string"),
    			Start: pulumi.String("string"),
    		},
    	},
    })
    
    var configurationFeatureResource = new ConfigurationFeature("configurationFeatureResource", ConfigurationFeatureArgs.builder()
        .configurationStoreId("string")
        .description("string")
        .enabled(false)
        .etag("string")
        .key("string")
        .label("string")
        .locked(false)
        .name("string")
        .percentageFilterValue(0)
        .tags(Map.of("string", "string"))
        .targetingFilters(ConfigurationFeatureTargetingFilterArgs.builder()
            .defaultRolloutPercentage(0)
            .groups(ConfigurationFeatureTargetingFilterGroupArgs.builder()
                .name("string")
                .rolloutPercentage(0)
                .build())
            .users("string")
            .build())
        .timewindowFilters(ConfigurationFeatureTimewindowFilterArgs.builder()
            .end("string")
            .start("string")
            .build())
        .build());
    
    configuration_feature_resource = azure.appconfiguration.ConfigurationFeature("configurationFeatureResource",
        configuration_store_id="string",
        description="string",
        enabled=False,
        etag="string",
        key="string",
        label="string",
        locked=False,
        name="string",
        percentage_filter_value=0,
        tags={
            "string": "string",
        },
        targeting_filters=[azure.appconfiguration.ConfigurationFeatureTargetingFilterArgs(
            default_rollout_percentage=0,
            groups=[azure.appconfiguration.ConfigurationFeatureTargetingFilterGroupArgs(
                name="string",
                rollout_percentage=0,
            )],
            users=["string"],
        )],
        timewindow_filters=[azure.appconfiguration.ConfigurationFeatureTimewindowFilterArgs(
            end="string",
            start="string",
        )])
    
    const configurationFeatureResource = new azure.appconfiguration.ConfigurationFeature("configurationFeatureResource", {
        configurationStoreId: "string",
        description: "string",
        enabled: false,
        etag: "string",
        key: "string",
        label: "string",
        locked: false,
        name: "string",
        percentageFilterValue: 0,
        tags: {
            string: "string",
        },
        targetingFilters: [{
            defaultRolloutPercentage: 0,
            groups: [{
                name: "string",
                rolloutPercentage: 0,
            }],
            users: ["string"],
        }],
        timewindowFilters: [{
            end: "string",
            start: "string",
        }],
    });
    
    type: azure:appconfiguration:ConfigurationFeature
    properties:
        configurationStoreId: string
        description: string
        enabled: false
        etag: string
        key: string
        label: string
        locked: false
        name: string
        percentageFilterValue: 0
        tags:
            string: string
        targetingFilters:
            - defaultRolloutPercentage: 0
              groups:
                - name: string
                  rolloutPercentage: 0
              users:
                - string
        timewindowFilters:
            - end: string
              start: string
    

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

    ConfigurationStoreId string
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    Description string
    The description of the App Configuration Feature.
    Enabled bool
    The status of the App Configuration Feature. By default, this is set to false.
    Etag string
    Key string
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    Label string
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    Locked bool
    Should this App Configuration Feature be Locked to prevent changes?
    Name string
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    PercentageFilterValue double
    A number representing the value of the percentage required to enable this feature.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    TargetingFilters List<ConfigurationFeatureTargetingFilter>
    A targeting_filter block as defined below.
    TimewindowFilters List<ConfigurationFeatureTimewindowFilter>
    A timewindow_filter block as defined below.
    ConfigurationStoreId string
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    Description string
    The description of the App Configuration Feature.
    Enabled bool
    The status of the App Configuration Feature. By default, this is set to false.
    Etag string
    Key string
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    Label string
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    Locked bool
    Should this App Configuration Feature be Locked to prevent changes?
    Name string
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    PercentageFilterValue float64
    A number representing the value of the percentage required to enable this feature.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    TargetingFilters []ConfigurationFeatureTargetingFilterArgs
    A targeting_filter block as defined below.
    TimewindowFilters []ConfigurationFeatureTimewindowFilterArgs
    A timewindow_filter block as defined below.
    configurationStoreId String
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description String
    The description of the App Configuration Feature.
    enabled Boolean
    The status of the App Configuration Feature. By default, this is set to false.
    etag String
    key String
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label String
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked Boolean
    Should this App Configuration Feature be Locked to prevent changes?
    name String
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentageFilterValue Double
    A number representing the value of the percentage required to enable this feature.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    targetingFilters List<ConfigurationFeatureTargetingFilter>
    A targeting_filter block as defined below.
    timewindowFilters List<ConfigurationFeatureTimewindowFilter>
    A timewindow_filter block as defined below.
    configurationStoreId string
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description string
    The description of the App Configuration Feature.
    enabled boolean
    The status of the App Configuration Feature. By default, this is set to false.
    etag string
    key string
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label string
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked boolean
    Should this App Configuration Feature be Locked to prevent changes?
    name string
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentageFilterValue number
    A number representing the value of the percentage required to enable this feature.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    targetingFilters ConfigurationFeatureTargetingFilter[]
    A targeting_filter block as defined below.
    timewindowFilters ConfigurationFeatureTimewindowFilter[]
    A timewindow_filter block as defined below.
    configuration_store_id str
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description str
    The description of the App Configuration Feature.
    enabled bool
    The status of the App Configuration Feature. By default, this is set to false.
    etag str
    key str
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label str
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked bool
    Should this App Configuration Feature be Locked to prevent changes?
    name str
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentage_filter_value float
    A number representing the value of the percentage required to enable this feature.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    targeting_filters Sequence[ConfigurationFeatureTargetingFilterArgs]
    A targeting_filter block as defined below.
    timewindow_filters Sequence[ConfigurationFeatureTimewindowFilterArgs]
    A timewindow_filter block as defined below.
    configurationStoreId String
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description String
    The description of the App Configuration Feature.
    enabled Boolean
    The status of the App Configuration Feature. By default, this is set to false.
    etag String
    key String
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label String
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked Boolean
    Should this App Configuration Feature be Locked to prevent changes?
    name String
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentageFilterValue Number
    A number representing the value of the percentage required to enable this feature.
    tags Map<String>
    A mapping of tags to assign to the resource.
    targetingFilters List<Property Map>
    A targeting_filter block as defined below.
    timewindowFilters List<Property Map>
    A timewindow_filter block as defined below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConfigurationFeature 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ConfigurationFeature Resource

    Get an existing ConfigurationFeature 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?: ConfigurationFeatureState, opts?: CustomResourceOptions): ConfigurationFeature
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            configuration_store_id: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            etag: Optional[str] = None,
            key: Optional[str] = None,
            label: Optional[str] = None,
            locked: Optional[bool] = None,
            name: Optional[str] = None,
            percentage_filter_value: Optional[float] = None,
            tags: Optional[Mapping[str, str]] = None,
            targeting_filters: Optional[Sequence[ConfigurationFeatureTargetingFilterArgs]] = None,
            timewindow_filters: Optional[Sequence[ConfigurationFeatureTimewindowFilterArgs]] = None) -> ConfigurationFeature
    func GetConfigurationFeature(ctx *Context, name string, id IDInput, state *ConfigurationFeatureState, opts ...ResourceOption) (*ConfigurationFeature, error)
    public static ConfigurationFeature Get(string name, Input<string> id, ConfigurationFeatureState? state, CustomResourceOptions? opts = null)
    public static ConfigurationFeature get(String name, Output<String> id, ConfigurationFeatureState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    ConfigurationStoreId string
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    Description string
    The description of the App Configuration Feature.
    Enabled bool
    The status of the App Configuration Feature. By default, this is set to false.
    Etag string
    Key string
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    Label string
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    Locked bool
    Should this App Configuration Feature be Locked to prevent changes?
    Name string
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    PercentageFilterValue double
    A number representing the value of the percentage required to enable this feature.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    TargetingFilters List<ConfigurationFeatureTargetingFilter>
    A targeting_filter block as defined below.
    TimewindowFilters List<ConfigurationFeatureTimewindowFilter>
    A timewindow_filter block as defined below.
    ConfigurationStoreId string
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    Description string
    The description of the App Configuration Feature.
    Enabled bool
    The status of the App Configuration Feature. By default, this is set to false.
    Etag string
    Key string
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    Label string
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    Locked bool
    Should this App Configuration Feature be Locked to prevent changes?
    Name string
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    PercentageFilterValue float64
    A number representing the value of the percentage required to enable this feature.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    TargetingFilters []ConfigurationFeatureTargetingFilterArgs
    A targeting_filter block as defined below.
    TimewindowFilters []ConfigurationFeatureTimewindowFilterArgs
    A timewindow_filter block as defined below.
    configurationStoreId String
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description String
    The description of the App Configuration Feature.
    enabled Boolean
    The status of the App Configuration Feature. By default, this is set to false.
    etag String
    key String
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label String
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked Boolean
    Should this App Configuration Feature be Locked to prevent changes?
    name String
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentageFilterValue Double
    A number representing the value of the percentage required to enable this feature.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    targetingFilters List<ConfigurationFeatureTargetingFilter>
    A targeting_filter block as defined below.
    timewindowFilters List<ConfigurationFeatureTimewindowFilter>
    A timewindow_filter block as defined below.
    configurationStoreId string
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description string
    The description of the App Configuration Feature.
    enabled boolean
    The status of the App Configuration Feature. By default, this is set to false.
    etag string
    key string
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label string
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked boolean
    Should this App Configuration Feature be Locked to prevent changes?
    name string
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentageFilterValue number
    A number representing the value of the percentage required to enable this feature.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    targetingFilters ConfigurationFeatureTargetingFilter[]
    A targeting_filter block as defined below.
    timewindowFilters ConfigurationFeatureTimewindowFilter[]
    A timewindow_filter block as defined below.
    configuration_store_id str
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description str
    The description of the App Configuration Feature.
    enabled bool
    The status of the App Configuration Feature. By default, this is set to false.
    etag str
    key str
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label str
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked bool
    Should this App Configuration Feature be Locked to prevent changes?
    name str
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentage_filter_value float
    A number representing the value of the percentage required to enable this feature.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    targeting_filters Sequence[ConfigurationFeatureTargetingFilterArgs]
    A targeting_filter block as defined below.
    timewindow_filters Sequence[ConfigurationFeatureTimewindowFilterArgs]
    A timewindow_filter block as defined below.
    configurationStoreId String
    Specifies the id of the App Configuration. Changing this forces a new resource to be created.
    description String
    The description of the App Configuration Feature.
    enabled Boolean
    The status of the App Configuration Feature. By default, this is set to false.
    etag String
    key String
    The key of the App Configuration Feature. The value for name will be used if this is unspecified. Changing this forces a new resource to be created.
    label String
    The label of the App Configuration Feature. Changing this forces a new resource to be created.
    locked Boolean
    Should this App Configuration Feature be Locked to prevent changes?
    name String
    The name of the App Configuration Feature. Changing this forces a new resource to be created.
    percentageFilterValue Number
    A number representing the value of the percentage required to enable this feature.
    tags Map<String>
    A mapping of tags to assign to the resource.
    targetingFilters List<Property Map>
    A targeting_filter block as defined below.
    timewindowFilters List<Property Map>
    A timewindow_filter block as defined below.

    Supporting Types

    ConfigurationFeatureTargetingFilter, ConfigurationFeatureTargetingFilterArgs

    DefaultRolloutPercentage int
    A number representing the percentage of the entire user base.
    Groups List<ConfigurationFeatureTargetingFilterGroup>
    One or more groups blocks as defined below.
    Users List<string>
    A list of users to target for this feature.
    DefaultRolloutPercentage int
    A number representing the percentage of the entire user base.
    Groups []ConfigurationFeatureTargetingFilterGroup
    One or more groups blocks as defined below.
    Users []string
    A list of users to target for this feature.
    defaultRolloutPercentage Integer
    A number representing the percentage of the entire user base.
    groups List<ConfigurationFeatureTargetingFilterGroup>
    One or more groups blocks as defined below.
    users List<String>
    A list of users to target for this feature.
    defaultRolloutPercentage number
    A number representing the percentage of the entire user base.
    groups ConfigurationFeatureTargetingFilterGroup[]
    One or more groups blocks as defined below.
    users string[]
    A list of users to target for this feature.
    default_rollout_percentage int
    A number representing the percentage of the entire user base.
    groups Sequence[ConfigurationFeatureTargetingFilterGroup]
    One or more groups blocks as defined below.
    users Sequence[str]
    A list of users to target for this feature.
    defaultRolloutPercentage Number
    A number representing the percentage of the entire user base.
    groups List<Property Map>
    One or more groups blocks as defined below.
    users List<String>
    A list of users to target for this feature.

    ConfigurationFeatureTargetingFilterGroup, ConfigurationFeatureTargetingFilterGroupArgs

    Name string
    The name of the group.
    RolloutPercentage int
    Rollout percentage of the group.
    Name string
    The name of the group.
    RolloutPercentage int
    Rollout percentage of the group.
    name String
    The name of the group.
    rolloutPercentage Integer
    Rollout percentage of the group.
    name string
    The name of the group.
    rolloutPercentage number
    Rollout percentage of the group.
    name str
    The name of the group.
    rollout_percentage int
    Rollout percentage of the group.
    name String
    The name of the group.
    rolloutPercentage Number
    Rollout percentage of the group.

    ConfigurationFeatureTimewindowFilter, ConfigurationFeatureTimewindowFilterArgs

    End string
    The latest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    Start string
    The earliest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    End string
    The latest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    Start string
    The earliest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    end String
    The latest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    start String
    The earliest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    end string
    The latest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    start string
    The earliest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    end str
    The latest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    start str
    The earliest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    end String
    The latest timestamp the feature is enabled. The timestamp must be in RFC3339 format.
    start String
    The earliest timestamp the feature is enabled. The timestamp must be in RFC3339 format.

    Import

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

    $ pulumi import azure:appconfiguration/configurationFeature:ConfigurationFeature test https://appconfname1.azconfig.io/kv/.appconfig.featureflag%2FkeyName?label=labelName
    

    If you wish to import with an empty label then simply leave the label’s name blank:

    $ pulumi import azure:appconfiguration/configurationFeature:ConfigurationFeature test https://appconfname1.azconfig.io/kv/.appconfig.featureflag%2FkeyName?label=
    

    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.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi