1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. NetworkExperimentProfile
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.network.NetworkExperimentProfile

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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Defines an Network Experiment Profile and lists of Experiments Azure REST API version: 2019-11-01. Prior API version in Azure Native 1.x: 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.Network.NetworkExperimentProfile("networkExperimentProfile", new()
        {
            EnabledState = AzureNative.Network.State.Enabled,
            Location = "WestUs",
            ProfileName = "MyProfile",
            ResourceGroupName = "MyResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewNetworkExperimentProfile(ctx, "networkExperimentProfile", &network.NetworkExperimentProfileArgs{
    			EnabledState:      pulumi.String(network.StateEnabled),
    			Location:          pulumi.String("WestUs"),
    			ProfileName:       pulumi.String("MyProfile"),
    			ResourceGroupName: pulumi.String("MyResourceGroup"),
    		})
    		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.network.NetworkExperimentProfile;
    import com.pulumi.azurenative.network.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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    network_experiment_profile = azure_native.network.NetworkExperimentProfile("networkExperimentProfile",
        enabled_state=azure_native.network.State.ENABLED,
        location="WestUs",
        profile_name="MyProfile",
        resource_group_name="MyResourceGroup")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const networkExperimentProfile = new azure_native.network.NetworkExperimentProfile("networkExperimentProfile", {
        enabledState: azure_native.network.State.Enabled,
        location: "WestUs",
        profileName: "MyProfile",
        resourceGroupName: "MyResourceGroup",
    });
    
    resources:
      networkExperimentProfile:
        type: azure-native:network:NetworkExperimentProfile
        properties:
          enabledState: Enabled
          location: WestUs
          profileName: MyProfile
          resourceGroupName: MyResourceGroup
    

    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:network:NetworkExperimentProfile
    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 NetworkExperimentProfileArgs
    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 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 string
    The unique name of the resource.
    args NetworkExperimentProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkExperimentProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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.Network.NetworkExperimentProfile("networkExperimentProfileResource", new()
    {
        ResourceGroupName = "string",
        EnabledState = "string",
        Location = "string",
        Name = "string",
        ProfileName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := network.NewNetworkExperimentProfile(ctx, "networkExperimentProfileResource", &network.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"),
    	},
    })
    
    var networkExperimentProfileResource = new NetworkExperimentProfile("networkExperimentProfileResource", NetworkExperimentProfileArgs.builder()
        .resourceGroupName("string")
        .enabledState("string")
        .location("string")
        .name("string")
        .profileName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    network_experiment_profile_resource = azure_native.network.NetworkExperimentProfile("networkExperimentProfileResource",
        resource_group_name="string",
        enabled_state="string",
        location="string",
        name="string",
        profile_name="string",
        tags={
            "string": "string",
        })
    
    const networkExperimentProfileResource = new azure_native.network.NetworkExperimentProfile("networkExperimentProfileResource", {
        resourceGroupName: "string",
        enabledState: "string",
        location: "string",
        name: "string",
        profileName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:network:NetworkExperimentProfile
    properties:
        enabledState: string
        location: string
        name: string
        profileName: string
        resourceGroupName: string
        tags:
            string: string
    

    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 string
    Name of the Resource group within the Azure subscription.
    EnabledState string | Pulumi.AzureNative.Network.State
    The state of the Experiment
    Location string
    Resource location.
    Name string
    The name of the Profile
    ProfileName string
    The Profile identifier associated with the Tenant and Partner
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName 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 string
    The Profile identifier associated with the Tenant and Partner
    Tags map[string]string
    Resource tags.
    resourceGroupName 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 String
    The Profile identifier associated with the Tenant and Partner
    tags Map<String,String>
    Resource tags.
    resourceGroupName 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 string
    The Profile identifier associated with the Tenant and Partner
    tags {[key: string]: string}
    Resource tags.
    resource_group_name 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 str
    The Profile identifier associated with the Tenant and Partner
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName 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 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:

    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.
    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.
    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.
    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.
    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.
    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:network:NetworkExperimentProfile MyProfile /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName} 
    

    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi