To create a Traffic Manager profile using Azure PowerShell, use the New-AzureTraficManagerProfile cmdlet.
For example, this code creates a profile named ContosoTM with a domain name of contoso-web-tm.trafficmanager.net,and a Failover load balancing method.
New-AzureTrafficManagerProfile -Name ContosoTM -DomainName contoso-web-tm.trafficmanager.net -LoadBalancingMethod Failover -MonitorPort 80 -MonitorProtocol Http -MonitorRelativePath "/" -Ttl 30
For example, this code creates a profile named ContosoTM with a domain name of contoso-web-tm.trafficmanager.net,and a Failover load balancing method.
New-AzureTrafficManagerProfile -Name ContosoTM -DomainName contoso-web-tm.trafficmanager.net -LoadBalancingMethod Failover -MonitorPort 80 -MonitorProtocol Http -MonitorRelativePath "/" -Ttl 30