Creating an external endpoint is similar to creating an Azure endpoint. All you need to do is, change the type, add the location, and specify the target. You can do this by running the following command:
az network traffic-manager endpoint create --name CLIEndpoint --profile-name CLIProfile --resource-group PacktPub --type externalEndpoints --target-resource-id <Enter the resource id> --endpoint-location westeurope –target www.gamezakhana.com