ConfigurationFeature

class ConfigurationFeature : KotlinCustomResource

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

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()
.location("West Europe")
.build());
var appconf = new ConfigurationStore("appconf", ConfigurationStoreArgs.builder()
.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")
.label("test-ackeylabel")
.enabled(true)
.build());
}
}

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=

Properties

Link copied to clipboard

Specifies the id of the App Configuration. Changing this forces a new resource to be created.

Link copied to clipboard
val description: Output<String>?

The description of the App Configuration Feature.

Link copied to clipboard
val enabled: Output<Boolean>?

The status of the App Configuration Feature. By default, this is set to false.

Link copied to clipboard
val etag: Output<String>
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val key: Output<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.

Link copied to clipboard
val label: Output<String>?

The label of the App Configuration Feature. Changing this forces a new resource to be created.

Link copied to clipboard
val locked: Output<Boolean>?

Should this App Configuration Feature be Locked to prevent changes?

Link copied to clipboard
val name: Output<String>

The name of the App Configuration Feature. Changing this forces a new resource to be created.

Link copied to clipboard

A number representing the value of the percentage required to enable this feature.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard

A targeting_filter block as defined below.

Link copied to clipboard

A timewindow_filter block as defined below.

Link copied to clipboard
val urn: Output<String>