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.

[BUG] Issue with updating custom domain in route - Azure Front Door (Premium/Standard)

See original GitHub issue

Library name and version

Azure.ResourceManager.Cdn v1.0.0-beta.5

Describe the bug

There is no option to update a created custom domain in an existing route in Azure Front Door (Premium/Standard)

Expected behavior

the property CustomDomains in AfdRoutePatch should have read and write access.

Actual behavior

In REST API, I am able to update a route with a newly added custom domain - https://docs.microsoft.com/en-us/rest/api/frontdoor/azurefrontdoorstandardpremium/routes/updat

but using C# library (Azure.ResourceManager.Cdn v1.0.0-beta.5), the custom domain property is read-only so the CustomDomains cannot be set.

Reproduction Steps

  1. Create a custom domain in an Azure Front Door profile. customDomains.CreateOrUpdateAsync()

  2. Try to add the created custom domain in an existing route. route.UpdateAsync(WaitUntil.Completed, new AfdRoutePatch { _CustomDomains_ = customDomains });

Environment

.NET SDK (reflecting any global.json): Version: 5.0.406 Commit: 3a48fd6fe5

Runtime Environment: OS Name: Windows OS Version: 10.0.22000 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.406\

Host (useful for support): Version: 5.0.15 Commit: 3065735be7

.NET SDKs installed: 5.0.406 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
baskaranauccommented, May 17, 2022

Hi @Yao725 , Thank you. It’s working as expected.

0reactions
Yao725commented, May 18, 2022

Np, will close this issue as it’s resolved, feel free to reopen it or open a new one if you still have problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Azure Front Door common issues
Cause. The problem occurs if you didn't configure a routing rule for the custom domain that was added as the frontend host. A...
Read more >
Azure Front Door Custom domain not routing to origin group
The route has been updated to include both the original origin-abc-123-azurefd.net domain and then the newly registered domain. Everything in ...
Read more >
Adding custom domain in Front door Premium gives error
Failed to create the custom domain 'web-test-mycompany-com'. Error: Domain hostname cannot be updated after creation. An Azure service that ...
Read more >
Azure Front Door - Microsoft Q&A
Adding custom domain in Front door Premium gives error. We have a DNS Zone in Azure DNS. It is ci.mycompany.com. NS records in...
Read more >
Azure Front Door Error - Microsoft Q&A
Check if you have added your custom domain properly which destination as frontend host name. Check if you have set the interval to...
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