1. Packages
  2. Azure Native
  3. API Docs
  4. frontdoor
  5. NetworkExperimentProfile
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.frontdoor.NetworkExperimentProfile

Explore with Pulumi AI

Defines an Network Experiment Profile and lists of Experiments

Uses Azure REST API version 2019-11-01.

Example Usage

Creates an NetworkExperiment Profile in a Resource Group

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var networkExperimentProfile = new AzureNative.FrontDoor.NetworkExperimentProfile("networkExperimentProfile", new()
    {
        EnabledState = AzureNative.FrontDoor.State.Enabled,
        Location = "WestUs",
        ProfileName = "MyProfile",
        ResourceGroupName = "MyResourceGroup",
    });

});
Copy
package main

import (
	frontdoor "github.com/pulumi/pulumi-azure-native-sdk/frontdoor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := frontdoor.NewNetworkExperimentProfile(ctx, "networkExperimentProfile", &frontdoor.NetworkExperimentProfileArgs{
			EnabledState:      pulumi.String(frontdoor.StateEnabled),
			Location:          pulumi.String("WestUs"),
			ProfileName:       pulumi.String("MyProfile"),
			ResourceGroupName: pulumi.String("MyResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.frontdoor.NetworkExperimentProfile;
import com.pulumi.azurenative.frontdoor.NetworkExperimentProfileArgs;
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 networkExperimentProfile = new NetworkExperimentProfile("networkExperimentProfile", NetworkExperimentProfileArgs.builder()
            .enabledState("Enabled")
            .location("WestUs")
            .profileName("MyProfile")
            .resourceGroupName("MyResourceGroup")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const networkExperimentProfile = new azure_native.frontdoor.NetworkExperimentProfile("networkExperimentProfile", {
    enabledState: azure_native.frontdoor.State.Enabled,
    location: "WestUs",
    profileName: "MyProfile",
    resourceGroupName: "MyResourceGroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

network_experiment_profile = azure_native.frontdoor.NetworkExperimentProfile("networkExperimentProfile",
    enabled_state=azure_native.frontdoor.State.ENABLED,
    location="WestUs",
    profile_name="MyProfile",
    resource_group_name="MyResourceGroup")
Copy
resources:
  networkExperimentProfile:
    type: azure-native:frontdoor:NetworkExperimentProfile
    properties:
      enabledState: Enabled
      location: WestUs
      profileName: MyProfile
      resourceGroupName: MyResourceGroup
Copy

Create NetworkExperimentProfile Resource

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

Constructor syntax

new NetworkExperimentProfile(name: string, args: NetworkExperimentProfileArgs, opts?: CustomResourceOptions);
@overload
def NetworkExperimentProfile(resource_name: str,
                             args: NetworkExperimentProfileArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def NetworkExperimentProfile(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             resource_group_name: Optional[str] = None,
                             enabled_state: Optional[Union[str, State]] = None,
                             location: Optional[str] = None,
                             name: Optional[str] = None,
                             profile_name: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None)
func NewNetworkExperimentProfile(ctx *Context, name string, args NetworkExperimentProfileArgs, opts ...ResourceOption) (*NetworkExperimentProfile, error)
public NetworkExperimentProfile(string name, NetworkExperimentProfileArgs args, CustomResourceOptions? opts = null)
public NetworkExperimentProfile(String name, NetworkExperimentProfileArgs args)
public NetworkExperimentProfile(String name, NetworkExperimentProfileArgs args, CustomResourceOptions options)
type: azure-native:frontdoor:NetworkExperimentProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NetworkExperimentProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NetworkExperimentProfileArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkExperimentProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkExperimentProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NetworkExperimentProfileArgs
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 networkExperimentProfileResource = new AzureNative.FrontDoor.NetworkExperimentProfile("networkExperimentProfileResource", new()
{
    ResourceGroupName = "string",
    EnabledState = "string",
    Location = "string",
    Name = "string",
    ProfileName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := frontdoor.NewNetworkExperimentProfile(ctx, "networkExperimentProfileResource", &frontdoor.NetworkExperimentProfileArgs{
	ResourceGroupName: pulumi.String("string"),
	EnabledState:      pulumi.String("string"),
	Location:          pulumi.String("string"),
	Name:              pulumi.String("string"),
	ProfileName:       pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var networkExperimentProfileResource = new NetworkExperimentProfile("networkExperimentProfileResource", NetworkExperimentProfileArgs.builder()
    .resourceGroupName("string")
    .enabledState("string")
    .location("string")
    .name("string")
    .profileName("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
network_experiment_profile_resource = azure_native.frontdoor.NetworkExperimentProfile("networkExperimentProfileResource",
    resource_group_name="string",
    enabled_state="string",
    location="string",
    name="string",
    profile_name="string",
    tags={
        "string": "string",
    })
Copy
const networkExperimentProfileResource = new azure_native.frontdoor.NetworkExperimentProfile("networkExperimentProfileResource", {
    resourceGroupName: "string",
    enabledState: "string",
    location: "string",
    name: "string",
    profileName: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:frontdoor:NetworkExperimentProfile
properties:
    enabledState: string
    location: string
    name: string
    profileName: string
    resourceGroupName: string
    tags:
        string: string
Copy

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

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
EnabledState string | Pulumi.AzureNative.FrontDoor.State
The state of the Experiment
Location string
Resource location.
Name string
The name of the Profile
ProfileName Changes to this property will trigger replacement. string
The Profile identifier associated with the Tenant and Partner
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
EnabledState string | State
The state of the Experiment
Location string
Resource location.
Name string
The name of the Profile
ProfileName Changes to this property will trigger replacement. string
The Profile identifier associated with the Tenant and Partner
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.
enabledState String | State
The state of the Experiment
location String
Resource location.
name String
The name of the Profile
profileName Changes to this property will trigger replacement. String
The Profile identifier associated with the Tenant and Partner
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
enabledState string | State
The state of the Experiment
location string
Resource location.
name string
The name of the Profile
profileName Changes to this property will trigger replacement. string
The Profile identifier associated with the Tenant and Partner
tags {[key: string]: string}
Resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Resource group within the Azure subscription.
enabled_state str | State
The state of the Experiment
location str
Resource location.
name str
The name of the Profile
profile_name Changes to this property will trigger replacement. str
The Profile identifier associated with the Tenant and Partner
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.
enabledState String | "Enabled" | "Disabled"
The state of the Experiment
location String
Resource location.
name String
The name of the Profile
profileName Changes to this property will trigger replacement. String
The Profile identifier associated with the Tenant and Partner
tags Map<String>
Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the NetworkExperimentProfile resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
ResourceState string
Resource status.
Type string
Resource type.
Etag string
Gets a unique read-only string that changes whenever the resource is updated.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
ResourceState string
Resource status.
Type string
Resource type.
Etag string
Gets a unique read-only string that changes whenever the resource is updated.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
resourceState String
Resource status.
type String
Resource type.
etag String
Gets a unique read-only string that changes whenever the resource is updated.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
resourceState string
Resource status.
type string
Resource type.
etag string
Gets a unique read-only string that changes whenever the resource is updated.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
resource_state str
Resource status.
type str
Resource type.
etag str
Gets a unique read-only string that changes whenever the resource is updated.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
resourceState String
Resource status.
type String
Resource type.
etag String
Gets a unique read-only string that changes whenever the resource is updated.

Supporting Types

State
, StateArgs

Enabled
Enabled
Disabled
Disabled
StateEnabled
Enabled
StateDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:frontdoor:NetworkExperimentProfile MyProfile /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName} 
Copy

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

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0