Add, disable, enable, delete, or move endpoints
The Web Apps feature in Azure App Service already provides failover and round-robin traffic routing functionality for websites within a datacenter, regardless of the website mode. Azure Traffic Manager allows you to specify failover and round-robin traffic routing for websites and cloud services in different datacenters. The first step necessary to provide that functionality is to add the cloud service or website endpoint to Traffic Manager.
You can also disable individual endpoints that are part of a Traffic Manager profile. Disabling an endpoint leaves it as part of the profile, but the profile acts as if the endpoint is not included in it. This action is useful for temporarily removing an endpoint that is in maintenance mode or being redeployed. Once the endpoint is up and running again, it can be enabled.
Note
Disabling an endpoint has nothing to do with its deployment state in Azure. A healthy endpoint remains up and able to receive traffic even when disabled in Traffic Manager. Additionally, disabling an endpoint in one profile does not affect its status in another profile.
To add a cloud service or an App service endpoint to a Traffic Manager profile
- Using a web browser, sign in to the Azure portal.
- In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then select the Traffic Manager profile in the results that the displayed.
- In the Traffic Manager profile blade, in the Settings section, select Endpoints.
- In the Endpoints blade that is displayed, select Add.
- In the Add endpoint blade, complete as follows:
- For Type, select Azure endpoint.
- Provide a Name by which you want to recognize this endpoint.
- For Target resource type, from the drop-down, choose the appropriate resource type.
- For Target resource, select the Choose... selector to list resources under the same subscription in the Resources blade. In the Resource blade that is displayed, pick the service that you want to add as the first endpoint.
- For Priority, select as 1. This results in all traffic going to this endpoint if it's healthy.
- Keep Add as disabled unchecked.
- Select OK
- Repeat steps 4 and 5 to add the next Azure endpoint. Make sure to add it with its Priority value set at 2.
- When the addition of both endpoints is complete, they're displayed in the Traffic Manager profile blade along with their monitoring status as Online.
Note
After you add or remove an endpoint from a profile using the Failover traffic routing method, the failover priority list may not be ordered the way you want. You can adjust the order of the Failover Priority List on the Configuration page. For more information, see Configure Failover traffic routing.
To disable an endpoint
- Using a web browser, sign in to the Azure portal.
- In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then select the Traffic Manager profile in the results that are displayed.
- In the Traffic Manager profile blade, in the Settings section, select Endpoints.
- Select the endpoint that you want to disable.
- In the Endpoint blade, change the endpoint status to Disabled, and then select Save.
- Clients continue to send traffic to the endpoint for the duration of Time-to-Live (TTL). You can change the TTL on the Configuration page of the Traffic Manager profile.
To enable an endpoint
- Using a web browser, sign in to the Azure portal.
- In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then select the Traffic Manager profile in the results that are displayed.
- In the Traffic Manager profile blade, in the Settings section, select Endpoints.
- Select the endpoint that you want to enable.
- In the Endpoint blade, change the endpoint status to Enabled, and then select Save.
- Clients continue to send traffic to the endpoint for the duration of Time-to-Live (TTL). You can change the TTL on the Configuration page of the Traffic Manager profile.
To delete an endpoint
- Using a web browser, sign in to the Azure portal.
- In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then select the Traffic Manager profile in the results that are displayed.
- In the Traffic Manager profile blade, in the Settings section, select Endpoints.
- Select the endpoint that you want to delete.
- In the Endpoint blade, select Delete
To move an endpoint
- Using a web browser, sign in to the Azure portal.
- In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then select the Traffic Manager profile in the results that are displayed.
- Inside the resource's blade, select the Move option. Follow the instructions to move the resource to the desired subscription or resource group.
- When the resource has been successfully moved, return to the Azure Traffic Manager Profile that had the resource as an endpoint.
- Locate and select the old endpoint that was previously linked to the resource you moved. Select Delete to remove this old endpoint from the Traffic Manager profile.
- Select Add to create and configure a new endpoint that targets the recently moved Azure resource.
For more information, see: How do I move my Traffic Manager profile's Azure endpoints to a different resource group or subscription?