Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Azure Front Door] REST API Calls result into error when a "." is included into the customDomainName field. #21779

Open
ChaitanyaNaykodi-MSFT opened this issue Dec 6, 2022 · 3 comments
Labels
Network - Front Door Service Attention This issue is responsible by Azure service team.

Comments

@ChaitanyaNaykodi-MSFT
Copy link

AFD Rest API calls such as AFD Custom Domains - Get, AFD Custom Domains - Update etc. result into error when a "." is included into the customDomainName field.

"error": {
"code": "BadRequest",
"message": "Property 'AfdDomainEntityKey.AfdDomainName' cannot be set to 'hostname.domain.com'. "
}

The solution here is to replace the "." with "-" to successfully execute the API Call.

It will be helpful if this information is added to the docs. Thank you!

Reference: https://learn.microsoft.com/en-us/answers/questions/1109140/index.html

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Dec 6, 2022
@keryul keryul added Service Attention This issue is responsible by Azure service team. Network - Front Door labels Dec 7, 2022
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Dec 7, 2022
@ghost
Copy link

ghost commented Dec 7, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @cdnfdsuppgithub.

Issue Details

AFD Rest API calls such as AFD Custom Domains - Get, AFD Custom Domains - Update etc. result into error when a "." is included into the customDomainName field.

"error": {
"code": "BadRequest",
"message": "Property 'AfdDomainEntityKey.AfdDomainName' cannot be set to 'hostname.domain.com'. "
}

The solution here is to replace the "." with "-" to successfully execute the API Call.

It will be helpful if this information is added to the docs. Thank you!

Reference: https://learn.microsoft.com/en-us/answers/questions/1109140/index.html

Author: ChaitanyaNaykodi-MSFT
Assignees: -
Labels:

Service Attention, Network - Front Door, needs-triage

Milestone: -

@iamsunny
Copy link

@ChaitanyaNaykodi-MSFT, Thanks for sharing!

For me it was to replace the dot (".") with double hyphens ("--"). Single hyphen didn't work! 🎉

@krusicbr
Copy link

krusicbr commented Jan 9, 2024

Thank you for sharing. This is still happening, confirming 'iamsunny' replacement of the dot (".") with double hyphens ("--") works. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Network - Front Door Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants