Azure / Azure/static-web-apps

Failed to add custom domain to SWA with error message: Name <var> is not valid.

Open
#923 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
CNAME record is generated in Azure DNS while an error message is displayed in the portal.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to Portal
2. Click on Custom Domains ->Add
3. Enter subdomain
4. See error
5. Navigate to Azure DNS
6. See CNAME Record

**Expected behavior**
A clear and concise description of what you expected to happen.
Not create the CNAME record and clearly describe the error.

**Screenshots**
If applicable, add screenshots to help explain your problem.

Adding the custom domain requires the FQDN and errors if the subdomain is provided.
![image](https://user-images.githubusercontent.com/1166193/190636623-f76a899d-4581-4ec3-b4d3-461756ae86c6.png)
However, the CNAME record is generated if using Azure DNS.
![image](https://user-images.githubusercontent.com/1166193/190637268-bef92125-fbed-484b-ab68-7ccb1569c421.png)

**Behavior**
Adding the FQDN resolves the issue.

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.