We recommend using Azure Native.
azure.trafficmanager.Profile
Explore with Pulumi AI
Manages a Traffic Manager Profile to which multiple endpoints can be attached.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as random from "@pulumi/random";
const server = new random.RandomId("server", {
    keepers: {
        azi_id: "1",
    },
    byteLength: 8,
});
const example = new azure.core.ResourceGroup("example", {
    name: "trafficmanagerProfile",
    location: "West Europe",
});
const exampleTrafficManagerProfile = new azure.network.TrafficManagerProfile("example", {
    name: server.hex,
    resourceGroupName: example.name,
    trafficRoutingMethod: "Weighted",
    dnsConfig: {
        relativeName: server.hex,
        ttl: 100,
    },
    monitorConfig: {
        protocol: "HTTP",
        port: 80,
        path: "/",
        intervalInSeconds: 30,
        timeoutInSeconds: 9,
        toleratedNumberOfFailures: 3,
    },
    tags: {
        environment: "Production",
    },
});
import pulumi
import pulumi_azure as azure
import pulumi_random as random
server = random.RandomId("server",
    keepers={
        "azi_id": "1",
    },
    byte_length=8)
example = azure.core.ResourceGroup("example",
    name="trafficmanagerProfile",
    location="West Europe")
example_traffic_manager_profile = azure.network.TrafficManagerProfile("example",
    name=server.hex,
    resource_group_name=example.name,
    traffic_routing_method="Weighted",
    dns_config={
        "relative_name": server.hex,
        "ttl": 100,
    },
    monitor_config={
        "protocol": "HTTP",
        "port": 80,
        "path": "/",
        "interval_in_seconds": 30,
        "timeout_in_seconds": 9,
        "tolerated_number_of_failures": 3,
    },
    tags={
        "environment": "Production",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		server, err := random.NewRandomId(ctx, "server", &random.RandomIdArgs{
			Keepers: pulumi.StringMap{
				"azi_id": pulumi.String("1"),
			},
			ByteLength: pulumi.Int(8),
		})
		if err != nil {
			return err
		}
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("trafficmanagerProfile"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = network.NewTrafficManagerProfile(ctx, "example", &network.TrafficManagerProfileArgs{
			Name:                 server.Hex,
			ResourceGroupName:    example.Name,
			TrafficRoutingMethod: pulumi.String("Weighted"),
			DnsConfig: &network.TrafficManagerProfileDnsConfigArgs{
				RelativeName: server.Hex,
				Ttl:          pulumi.Int(100),
			},
			MonitorConfig: &network.TrafficManagerProfileMonitorConfigArgs{
				Protocol:                  pulumi.String("HTTP"),
				Port:                      pulumi.Int(80),
				Path:                      pulumi.String("/"),
				IntervalInSeconds:         pulumi.Int(30),
				TimeoutInSeconds:          pulumi.Int(9),
				ToleratedNumberOfFailures: pulumi.Int(3),
			},
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() => 
{
    var server = new Random.RandomId("server", new()
    {
        Keepers = 
        {
            { "azi_id", "1" },
        },
        ByteLength = 8,
    });
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "trafficmanagerProfile",
        Location = "West Europe",
    });
    var exampleTrafficManagerProfile = new Azure.Network.TrafficManagerProfile("example", new()
    {
        Name = server.Hex,
        ResourceGroupName = example.Name,
        TrafficRoutingMethod = "Weighted",
        DnsConfig = new Azure.Network.Inputs.TrafficManagerProfileDnsConfigArgs
        {
            RelativeName = server.Hex,
            Ttl = 100,
        },
        MonitorConfig = new Azure.Network.Inputs.TrafficManagerProfileMonitorConfigArgs
        {
            Protocol = "HTTP",
            Port = 80,
            Path = "/",
            IntervalInSeconds = 30,
            TimeoutInSeconds = 9,
            ToleratedNumberOfFailures = 3,
        },
        Tags = 
        {
            { "environment", "Production" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomId;
import com.pulumi.random.RandomIdArgs;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.TrafficManagerProfile;
import com.pulumi.azure.network.TrafficManagerProfileArgs;
import com.pulumi.azure.network.inputs.TrafficManagerProfileDnsConfigArgs;
import com.pulumi.azure.network.inputs.TrafficManagerProfileMonitorConfigArgs;
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 server = new RandomId("server", RandomIdArgs.builder()
            .keepers(Map.of("azi_id", 1))
            .byteLength(8)
            .build());
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("trafficmanagerProfile")
            .location("West Europe")
            .build());
        var exampleTrafficManagerProfile = new TrafficManagerProfile("exampleTrafficManagerProfile", TrafficManagerProfileArgs.builder()
            .name(server.hex())
            .resourceGroupName(example.name())
            .trafficRoutingMethod("Weighted")
            .dnsConfig(TrafficManagerProfileDnsConfigArgs.builder()
                .relativeName(server.hex())
                .ttl(100)
                .build())
            .monitorConfig(TrafficManagerProfileMonitorConfigArgs.builder()
                .protocol("HTTP")
                .port(80)
                .path("/")
                .intervalInSeconds(30)
                .timeoutInSeconds(9)
                .toleratedNumberOfFailures(3)
                .build())
            .tags(Map.of("environment", "Production"))
            .build());
    }
}
resources:
  server:
    type: random:RandomId
    properties:
      keepers:
        azi_id: 1
      byteLength: 8
  example:
    type: azure:core:ResourceGroup
    properties:
      name: trafficmanagerProfile
      location: West Europe
  exampleTrafficManagerProfile:
    type: azure:network:TrafficManagerProfile
    name: example
    properties:
      name: ${server.hex}
      resourceGroupName: ${example.name}
      trafficRoutingMethod: Weighted
      dnsConfig:
        relativeName: ${server.hex}
        ttl: 100
      monitorConfig:
        protocol: HTTP
        port: 80
        path: /
        intervalInSeconds: 30
        timeoutInSeconds: 9
        toleratedNumberOfFailures: 3
      tags:
        environment: Production
Create Profile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Profile(name: string, args: ProfileArgs, opts?: CustomResourceOptions);@overload
def Profile(resource_name: str,
            args: ProfileArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Profile(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            dns_config: Optional[ProfileDnsConfigArgs] = None,
            max_return: Optional[int] = None,
            monitor_config: Optional[ProfileMonitorConfigArgs] = None,
            name: Optional[str] = None,
            profile_status: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            traffic_routing_method: Optional[str] = None,
            traffic_view_enabled: Optional[bool] = None)func NewProfile(ctx *Context, name string, args ProfileArgs, opts ...ResourceOption) (*Profile, error)public Profile(string name, ProfileArgs args, CustomResourceOptions? opts = null)
public Profile(String name, ProfileArgs args)
public Profile(String name, ProfileArgs args, CustomResourceOptions options)
type: azure:trafficmanager:Profile
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 ProfileArgs
- 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 ProfileArgs
- 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 ProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProfileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Profile 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 Profile resource accepts the following input properties:
- DnsConfig ProfileDns Config 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- MonitorConfig ProfileMonitor Config 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- ResourceGroup stringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- TrafficRouting stringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- MaxReturn int
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- Name string
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- ProfileStatus string
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TrafficView boolEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- DnsConfig ProfileDns Config Args 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- MonitorConfig ProfileMonitor Config Args 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- ResourceGroup stringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- TrafficRouting stringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- MaxReturn int
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- Name string
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- ProfileStatus string
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- map[string]string
- A mapping of tags to assign to the resource.
- TrafficView boolEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dnsConfig ProfileDns Config 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- monitorConfig ProfileMonitor Config 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- resourceGroup StringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- trafficRouting StringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- maxReturn Integer
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- name String
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profileStatus String
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- Map<String,String>
- A mapping of tags to assign to the resource.
- trafficView BooleanEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dnsConfig ProfileDns Config 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- monitorConfig ProfileMonitor Config 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- resourceGroup stringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- trafficRouting stringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- maxReturn number
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- name string
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profileStatus string
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- trafficView booleanEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dns_config ProfileDns Config Args 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- monitor_config ProfileMonitor Config Args 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- resource_group_ strname 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- traffic_routing_ strmethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- max_return int
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- name str
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profile_status str
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- traffic_view_ boolenabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dnsConfig Property Map
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- monitorConfig Property Map
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- resourceGroup StringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- trafficRouting StringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- maxReturn Number
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- name String
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profileStatus String
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- Map<String>
- A mapping of tags to assign to the resource.
- trafficView BooleanEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
Outputs
All input properties are implicitly available as output properties. Additionally, the Profile resource produces the following output properties:
Look up Existing Profile Resource
Get an existing Profile 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?: ProfileState, opts?: CustomResourceOptions): Profile@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dns_config: Optional[ProfileDnsConfigArgs] = None,
        fqdn: Optional[str] = None,
        max_return: Optional[int] = None,
        monitor_config: Optional[ProfileMonitorConfigArgs] = None,
        name: Optional[str] = None,
        profile_status: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        traffic_routing_method: Optional[str] = None,
        traffic_view_enabled: Optional[bool] = None) -> Profilefunc GetProfile(ctx *Context, name string, id IDInput, state *ProfileState, opts ...ResourceOption) (*Profile, error)public static Profile Get(string name, Input<string> id, ProfileState? state, CustomResourceOptions? opts = null)public static Profile get(String name, Output<String> id, ProfileState state, CustomResourceOptions options)resources:  _:    type: azure:trafficmanager:Profile    get:      id: ${id}- 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.
- DnsConfig ProfileDns Config 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- Fqdn string
- The FQDN of the created Profile.
- MaxReturn int
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- MonitorConfig ProfileMonitor Config 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- Name string
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- ProfileStatus string
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- ResourceGroup stringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TrafficRouting stringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- TrafficView boolEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- DnsConfig ProfileDns Config Args 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- Fqdn string
- The FQDN of the created Profile.
- MaxReturn int
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- MonitorConfig ProfileMonitor Config Args 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- Name string
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- ProfileStatus string
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- ResourceGroup stringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- TrafficRouting stringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- TrafficView boolEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dnsConfig ProfileDns Config 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- fqdn String
- The FQDN of the created Profile.
- maxReturn Integer
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- monitorConfig ProfileMonitor Config 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- name String
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profileStatus String
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- resourceGroup StringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- trafficRouting StringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- trafficView BooleanEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dnsConfig ProfileDns Config 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- fqdn string
- The FQDN of the created Profile.
- maxReturn number
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- monitorConfig ProfileMonitor Config 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- name string
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profileStatus string
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- resourceGroup stringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- trafficRouting stringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- trafficView booleanEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dns_config ProfileDns Config Args 
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- fqdn str
- The FQDN of the created Profile.
- max_return int
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- monitor_config ProfileMonitor Config Args 
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- name str
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profile_status str
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- resource_group_ strname 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- traffic_routing_ strmethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- traffic_view_ boolenabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
- dnsConfig Property Map
- This block specifies the DNS configuration of the Profile. One dns_configblock as defined below.
- fqdn String
- The FQDN of the created Profile.
- maxReturn Number
- The amount of endpoints to return for DNS queries to this Profile. Possible values range from - 1to- 8.- NOTE: - max_returnmust be set when the- traffic_routing_methodis- MultiValue.
- monitorConfig Property Map
- This block specifies the Endpoint monitoring configuration for the Profile. One monitor_configblock as defined below.
- name String
- The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profileStatus String
- The status of the profile, can be set to either EnabledorDisabled. Defaults toEnabled.
- resourceGroup StringName 
- The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
- trafficRouting StringMethod 
- Specifies the algorithm used to route traffic. Possible values are Geographic,Weighted,Performance,Priority,SubnetandMultiValue.- Geographic- Traffic is routed based on Geographic regions specified in the Endpoint.
- MultiValue- All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type- Externaland are specified as IPv4 or IPv6 addresses.
- Performance- Traffic is routed via the User's closest Endpoint
- Priority- Traffic is routed to the Endpoint with the lowest- priorityvalue.
- Subnet- Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile.
- Weighted- Traffic is spread across Endpoints proportional to their- weightvalue.
 
- trafficView BooleanEnabled 
- Indicates whether Traffic View is enabled for the Traffic Manager profile.
Supporting Types
ProfileDnsConfig, ProfileDnsConfigArgs      
- RelativeName string
- The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- Ttl int
- The TTL value of the Profile used by Local DNS resolvers and clients.
- RelativeName string
- The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- Ttl int
- The TTL value of the Profile used by Local DNS resolvers and clients.
- relativeName String
- The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- ttl Integer
- The TTL value of the Profile used by Local DNS resolvers and clients.
- relativeName string
- The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- ttl number
- The TTL value of the Profile used by Local DNS resolvers and clients.
- relative_name str
- The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- ttl int
- The TTL value of the Profile used by Local DNS resolvers and clients.
- relativeName String
- The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- ttl Number
- The TTL value of the Profile used by Local DNS resolvers and clients.
ProfileMonitorConfig, ProfileMonitorConfigArgs      
- Port int
- The port number used by the monitoring checks.
- Protocol string
- The protocol used by the monitoring checks, supported values are HTTP,HTTPSandTCP.
- CustomHeaders List<ProfileMonitor Config Custom Header> 
- One or more custom_headerblocks as defined below.
- ExpectedStatus List<string>Code Ranges 
- A list of status code ranges in the format of 100-101.
- IntervalIn intSeconds 
- The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: 30(normal probing) and10(fast probing). The default value is30.
- Path string
- The path used by the monitoring checks. Required when protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.
- TimeoutIn intSeconds 
- The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.
- ToleratedNumber intOf Failures 
- The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between 0and9. The default value is3
- Port int
- The port number used by the monitoring checks.
- Protocol string
- The protocol used by the monitoring checks, supported values are HTTP,HTTPSandTCP.
- CustomHeaders []ProfileMonitor Config Custom Header 
- One or more custom_headerblocks as defined below.
- ExpectedStatus []stringCode Ranges 
- A list of status code ranges in the format of 100-101.
- IntervalIn intSeconds 
- The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: 30(normal probing) and10(fast probing). The default value is30.
- Path string
- The path used by the monitoring checks. Required when protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.
- TimeoutIn intSeconds 
- The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.
- ToleratedNumber intOf Failures 
- The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between 0and9. The default value is3
- port Integer
- The port number used by the monitoring checks.
- protocol String
- The protocol used by the monitoring checks, supported values are HTTP,HTTPSandTCP.
- customHeaders List<ProfileMonitor Config Custom Header> 
- One or more custom_headerblocks as defined below.
- expectedStatus List<String>Code Ranges 
- A list of status code ranges in the format of 100-101.
- intervalIn IntegerSeconds 
- The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: 30(normal probing) and10(fast probing). The default value is30.
- path String
- The path used by the monitoring checks. Required when protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.
- timeoutIn IntegerSeconds 
- The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.
- toleratedNumber IntegerOf Failures 
- The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between 0and9. The default value is3
- port number
- The port number used by the monitoring checks.
- protocol string
- The protocol used by the monitoring checks, supported values are HTTP,HTTPSandTCP.
- customHeaders ProfileMonitor Config Custom Header[] 
- One or more custom_headerblocks as defined below.
- expectedStatus string[]Code Ranges 
- A list of status code ranges in the format of 100-101.
- intervalIn numberSeconds 
- The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: 30(normal probing) and10(fast probing). The default value is30.
- path string
- The path used by the monitoring checks. Required when protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.
- timeoutIn numberSeconds 
- The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.
- toleratedNumber numberOf Failures 
- The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between 0and9. The default value is3
- port int
- The port number used by the monitoring checks.
- protocol str
- The protocol used by the monitoring checks, supported values are HTTP,HTTPSandTCP.
- custom_headers Sequence[ProfileMonitor Config Custom Header] 
- One or more custom_headerblocks as defined below.
- expected_status_ Sequence[str]code_ ranges 
- A list of status code ranges in the format of 100-101.
- interval_in_ intseconds 
- The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: 30(normal probing) and10(fast probing). The default value is30.
- path str
- The path used by the monitoring checks. Required when protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.
- timeout_in_ intseconds 
- The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.
- tolerated_number_ intof_ failures 
- The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between 0and9. The default value is3
- port Number
- The port number used by the monitoring checks.
- protocol String
- The protocol used by the monitoring checks, supported values are HTTP,HTTPSandTCP.
- customHeaders List<Property Map>
- One or more custom_headerblocks as defined below.
- expectedStatus List<String>Code Ranges 
- A list of status code ranges in the format of 100-101.
- intervalIn NumberSeconds 
- The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: 30(normal probing) and10(fast probing). The default value is30.
- path String
- The path used by the monitoring checks. Required when protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.
- timeoutIn NumberSeconds 
- The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.
- toleratedNumber NumberOf Failures 
- The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between 0and9. The default value is3
ProfileMonitorConfigCustomHeader, ProfileMonitorConfigCustomHeaderArgs          
Import
Traffic Manager Profiles can be imported using the resource id, e.g.
$ pulumi import azure:trafficmanager/profile:Profile exampleProfile /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/trafficManagerProfiles/mytrafficmanagerprofile1
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 azurermTerraform Provider.