This template creates an Azure Traffic Manager profile using external endpoints.
{"type": "microsoft.network/trafficmanagerprofiles", "apiversion": "2018-08-01", "name": "externalendpointexample", "location": "global", "properties": {"profilestatus": "enabled", "trafficroutingmethod": "performance", "dnsconfig": {"relativename": "[parameters('uniquednsname')]", "ttl": 30}, "monitorconfig": {"protocol": "https", "port": 443, "path": "/", "expectedstatuscoderanges": [{"min": 200, "max": 202}, {"min": 301, "max": 302}]}, "endpoints": [{"type": "microsoft.network/trafficmanagerprofiles/externalendpoints", "name": "endpoint1", "properties": {"target": "www.microsoft.com", "endpointstatus": "enabled", "endpointlocation": "northeurope"}}, {"type": "microsoft.network/trafficmanagerprofiles/externalendpoints", "name": "endpoint2", "properties": {"target": "docs.microsoft.com", "endpointstatus": "enabled", "endpointlocation": "southcentralus"}}]}} 