'Manage Azure traffic manager from Azure function

There is an Azure traffic manager in which traffic to two datawarehouse instances is distributed. In an ADF pipeline run, I would like to automate the task of diverting the complete traffic to one datawarehouse instance by disabling the other endpoint, run a stored procedure on the datawarehouse to which traffic is disabled, then enable the previously disabled endpoint and disable the other endpoint and run another task. I believe this can be achieved by an Azure function or if there is any activity in ADF. Need some references/kick start to understanding how to achieve this



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source