question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not update TrafficManagerProfile Endpoint

See original GitHub issue

Following code does not update traffic manager profile:

tmp.Update().DefineAzureTargetEndpoint(name)
                        .ToResourceId(id)
                        .WithTrafficDisabled()
                        .WithRoutingPriority(11).Attatch().Apply();

Checked the code:

https://github.com/Azure/azure-libraries-for-net/blob/0e725531319775e348c21540c9a2c25000106c32/src/ResourceManagement/TrafficManager/TrafficManagerProfileImpl.cs#L111-L112

The following line will update the endpoint as expected:

await endpoints.CommitAndGetAllAsync(cancellationToken);

But then next line will reset it back, since ‘Inner’ contains the old state.

 ProfileInner profileInner = await Manager.Inner.Profiles.CreateOrUpdateAsync(ResourceGroupName, Name, Inner, cancellationToken);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
abharath27commented, Aug 8, 2018

@hovsepm Thanks for fixing this

0reactions
hovsepmcommented, Aug 6, 2018

@abharath27 1.14 is out. Please upgrade your reference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot add endpoints to Traffic Manager Profile
Using the Azure Portal to add an endpoint to a WebApp in same region (East US) and resource group as my (new) traffic...
Read more >
can't update traffic manager profiles #4734 - Azure/azure-cli
I'm trying to update the DNS TTL from az, however I keep getting this error: Endpoint name '' is invalid. Endpoint names cannot...
Read more >
Azure traffic manager endpoint update fails with 'The ...
Azure traffic manager endpoint update fails with 'The resourceTargetId property is invalid or missing' The values for those different flags ...
Read more >
Unit 6 Create a Traffic Manager profile using the Azure portal
You will then create a Traffic Manager profile based on endpoint priority. ... On the Monitoring tab, select the No option for Enable...
Read more >
azure.azcollection.azure_rm_trafficmanager module
Synopsis . Create, update and delete a Traffic Manager profile. ... No two endpoints can share the same priority value.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found