The endpoints are where Azure Traffic Manager will resolve DNS queries to for your domain.After creating the Azure Traffic Manager profile, you must add the endpoints to the profile that you want Azure Traffic Manager to resolve DNS queries to. In the management portal, you can add, delete, and disable endpoints on the Endpoints page of the Azure Traffic Manager profile.
Adding, deleting, and disabling endpoints in an Azure Traffic Manager profile
You can use Azure PowerShell to add an endpoint by using the Get-AzureTrafficManagerProfile, Add-AzureTrafficManagerEndpoint, and Set-AzureTrafficManagerProfile cmdlets, as shown in the following code.
$tmProfile = Get-AzureTrafficManagerProfile -Name "ContosoTM"
Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $tmProfile
-DomainName "contoso-web-west.azurewebsites.net" -Type AzureWebsite
-Status Enabled | Set-AzureTrafficManagerProfile
To remove an endpoint, use the Remove-AzureTraficManagerEndpoint cmdlet as shown here.
$tmProfile = Get-AzureTrafficManagerProfile -Name "ContosoTM"
Remove-AzureTrafficManagerEndpoint -TrafficManagerProfile $tmProfile `
-DomainName "contoso-web-west.azurewebsites.net" |
Set-AzureTrafficManagerProfile
To disable an endpoint, use the Set-AzureTraficManagerEndpoint cmdlet as shown here.
$tmProfile = Get-AzureTrafficManagerProfile -Name "ContosoTM"
Set-AzureTrafficManagerEndpoint -TrafficManagerProfile $tmProfile
-DomainName "contoso-web-west.azurewebsites.net" -Status Disabled | Set-AzureTrafficManagerProfile
Adding, deleting, and disabling endpoints in an Azure Traffic Manager profile
You can use Azure PowerShell to add an endpoint by using the Get-AzureTrafficManagerProfile, Add-AzureTrafficManagerEndpoint, and Set-AzureTrafficManagerProfile cmdlets, as shown in the following code.
$tmProfile = Get-AzureTrafficManagerProfile -Name "ContosoTM"
Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $tmProfile
-DomainName "contoso-web-west.azurewebsites.net" -Type AzureWebsite
-Status Enabled | Set-AzureTrafficManagerProfile
To remove an endpoint, use the Remove-AzureTraficManagerEndpoint cmdlet as shown here.
$tmProfile = Get-AzureTrafficManagerProfile -Name "ContosoTM"
Remove-AzureTrafficManagerEndpoint -TrafficManagerProfile $tmProfile `
-DomainName "contoso-web-west.azurewebsites.net" |
Set-AzureTrafficManagerProfile
To disable an endpoint, use the Set-AzureTraficManagerEndpoint cmdlet as shown here.
$tmProfile = Get-AzureTrafficManagerProfile -Name "ContosoTM"
Set-AzureTrafficManagerEndpoint -TrafficManagerProfile $tmProfile
-DomainName "contoso-web-west.azurewebsites.net" -Status Disabled | Set-AzureTrafficManagerProfile