I have a traffic manager profile in azure and I want to add endpoints to my traffic manager using my python script. I referred to the python sdk for azure to add the endpoints.
We can add or update endpoint using this function
tm_client.endpoints.create_or_update()
But I don't seem to understand the parameters which needs to be passed in this function. If anyone could post a sample code or help me out with it.
If you want to add an endpoint to Azure traffic manager, you need to define
Endpoint
object,profileName
,groupName
andendpointType
. Besides, please note that we have to define differentEndpoint
object according to the endpoint type and traffic routing method. For more details, please refer to here.For example. My traffic routing method is
Priority
and the endpoint type isAzureEndpoints
For example
Contributor
role to the sp