New-​Azure​Rm​Traffic​Manager​Profile

Creates a Traffic Manager profile.

Syntax

New-AzureRmTrafficManagerProfile
   -MonitorPath <String>
   -MonitorPort <UInt32>
   -MonitorProtocol <String>
   -Name <String>
   -RelativeDnsName <String>
   -ResourceGroupName <String>
   -TrafficRoutingMethod <String>
   -Ttl <UInt32>
   [-ProfileStatus <String>]
   [-Tag <Hashtable>]
   [<CommonParameters>]

Description

The New-AzureRmTrafficManagerProfile cmdlet creates an Azure Traffic Manager profile. Specify the Name parameter and required settings. This cmdlet returns a local object that represents the new profile.

This cmdlet does not configure Traffic Manager endpoints. You can update the local profile object by using the Add-AzureRmTrafficManagerEndpointConfig cmdlet. Then upload changes to Traffic Manager by using the Set-AzureRmTrafficManagerProfile cmdlet. Alternatively, you can add endpoints by using the New-AzureRmTrafficManagerEndpoint cmdlet.

Examples

Example 1: Create a profile

PS C:\>New-AzureRmTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" -ProfileStatus Enabled -TrafficRoutingMethod Performance -RelativeDnsName "contosoapp" -TTL 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/default.aspx"

This command creates an Azure Traffic Manager profile named ContosoProfile in resource group ResourceGroup11. The DNS FQDN is contosoapp.trafficmanager.net.

Required Parameters

-MonitorPath

Specifies the path that is used to monitor endpoint health. Specify a value relative to the endpoint domain name. This value must begin with a slash (/).

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MonitorPort

Specifies the TCP port that is used to monitor endpoint health. Valid values are integers from 1 through 65535.

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MonitorProtocol

Specifies the protocol to use to monitor endpoint health. Valid values are: - HTTP

  • HTTPS
Type:String
Parameter Sets:HTTP, HTTPS
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies a name for the Traffic Manager profile that this cmdlet creates.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RelativeDnsName

Specifies the relative DNS name that this Traffic Manager profile provides. Traffic Manager combines this value and the DNS domain name that Azure Traffic Manager uses to form the fully qualified domain name (FQDN) of the profile.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of a resource group. This cmdlet creates a Traffic Manager profile in the group that this parameter specifies.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TrafficRoutingMethod

Specifies the traffic routing method. This method determines which endpoint Traffic Manager returns in response to incoming DNS queries. Valid values are: - Performance

  • Weighted
  • Priority
Type:String
Parameter Sets:Performance, Weighted, Priority
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Ttl

Specifies the DNS Time to Live (TTL) value.

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ProfileStatus

Specifies the status of the profile. Valid values are: Enabled and Disabled.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tag

Specifies tags as an array of hash tables.

Type:Hashtable
Aliases:Tags
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.Network.TrafficManagerProfile