Azure CDN custom domain for .lk not working - azure

We have hosted our static website under storage account and we want to point that to our custom domain(not .com we have a .lk domain(srilanka)). As per microsoft documentation we have added a CNAME record under our domain. Even we have added the cdnverify also. But that domain is not recognized under the azure cdn custom domain. We have waited more than a day. But we have tested with one .com domain that works fine. Any extra configurations we need to do for .lk domains?

As mentioned in the comment
Make sure your blob container is public .
To confirm that your custom domain is mapped to your blob service
endpoint, create a blob in a public container within your storage
account.
Validate the CDN endpoint is properly configured

Related

Azure Storage account static website custom domain without www

I've got my React app running on azure Storage account static website (frontend only). I've bought a domain and attached it to static website following this instructions - https://learn.microsoft.com/en-us/azure/storage/blobs/storage-custom-domain-name
All great - I've managed to access the website using www.mydomain.com
However, the issue is that looks like to be able to access it without the www bit I'll have to use Azure CDN which looks pretty pricey.
Does anyone know if there is a way to access my domain without www without using Azure CDN?
• Yes, you can map the Azure storage account’s static website created with the custom domain through the public DNS zone created in Azure and accordingly creating a ‘CNAME’ record for it in the DNS zone. Once, you create a ‘CNAME’ record for the static website’s custom domain mapped with any other hostname or DNS record other than ‘www’, you will be able to access the website with that DNS record/FQDN or IP address mapped along with it.
• Please find the below snapshots given for the configuration done regarding the above. Accordingly, I have deployed the static website in the storage account and enabled the CDN in it too. Then, I deployed a DNS zone for the custom domain name in which I created a ‘CNAME’ host record for the static website’s created endpoint URL and tried to access it and it was successful. I also ensured that the DNS record created was not ‘www’*.
Please find the below link for more detailed information regarding the above configuration: -
https://learn.microsoft.com/en-us/azure/cdn/cdn-map-content-to-custom-domain?tabs=azure-dns%2Cazure-portal%2Cazure-portal-cleanup

Map Custom Subdomain to Azure Storage Container

I have a domain (i.e. https://www.example.com). This domain points to content in an Azure Storage container. I have set up this container as a static website following these steps. Now, I need to add a subdomain (i.e. https://subdomain.example.com) that points to a separate Azure Storage container.
I thought I could do this by adding a CNAME record to my DNS that points to the container url. However, my domain provider will not let me use a URL that includes a path. I don't know if this is a DNS rule or something my domain provider does. Regardless, the Azure Storage container has a path (i.e. http://mystorageaccount.blob.core.windows.net/mycontainer). For this reason, I can't point a subdomain to an Azure Storage container via a CNAME record. My domain provider will only allow me to use (http://mystorageaccount.blob.core.windows.net) which clearly doesn't reference the container.
How do I point a subdomain to an Azure Storage container?
Thank you!
According to the docs, the only available workflow now is to replace storage domain with custom domain, so you can't specify container there.
You could use url rewrite feature instead to redirect HTTP calls to specific route (in your case to your container).
Alternatively, take a look at Azure Storage static website hosting. It should allow defining custom "route entry" according to your logic

Adding a custom domain name (NOT a subdomain) to a static site hosted on Azure Storage

I have a domain registered through GoDaddy.
Currently there is an A record where:
Host: #
Points To: IP Address
This is pointing to a server that is currently serving the site.
I also have the site in an Azure Storage static web blob, and the endpoint is serving up the site and all is good.
I have tried registering a custom domain via the "asverify" method (see below), and Azure reports that it works. My custom domain "example.com" is accepted and all appears good except, navigating to https://example.com never works (after disabling the A record above).
Create a CNAME record with your DNS provider that points from the "asverify" subdomain (like asverify.www.contoso.com) to asverify.staticweb.blob.core.windows.net or asverify.staticweb.z5.web.core.windows.net. After this step completes, enter your domain below (exclude the 'asverify' subdomain). This method does not incur any downtime. To use this method, select the 'Use indirect CNAME validation' checkbox.
I have done something similar previously with AppServices. I have another domain that I have added to an AppService that is not a subdomain (so it is https://anotherexample.com NOT https://www.anotherexample.com). That was done with adding a TXT record to the DNS at GoDaddy, and works perfectly.
Does Azure Storage allow you to do this with a non-subdomain? That is the only way that I want to access the site.
Does Azure Storage allow you to do this with a non-subdomain?
Unfortunately, Azure Storage does not allow you to use non-subdomains to perform this operation. The subdomain is required, root domains are not supported.
please see:here.
While Azure Storage doesn't allow it as stated by the other anwser. You could very easily place an Azure CDN infront of it that does. To do this from the portal just go to the storage resource and search for the Azure CDN blade. From there you can create an endpoint to the storage or its static website. After creating the endpoint you can go to the resource and use the Custom Domain blade to set it up using a CNAME record.

How to add multiple custom domain to Azure Storage Account hosting static website?

Does anyone know how to add multiple domains to Azure Storage Account static website hosting?
For example, Azure only accepts one or the other www.domain.com and domain.com. Currently, one or the other domain name works fine with the DNS CNAME record but only with one.
Any suggestions will be appreciated.
The workaround would be to map Azure CDN to your Storage Account. This also gives you HTTPS support, which is what you should want anyways. You can then map multiple custom domains to the CDN.
How to add multiple custom domain to Azure Storage Account hosting static website?
In short, it's impossible.
Enabling multiple custom domains for a single storage account is planned for the coming year. You can vote up this feedback to promote this feature to be achieved.

Problem about setting custom domain for static web on Files Storage Azure

Problem about setting custom domain for static web on Files Storage Azure.
I already added domain in config screen and set cname in domain but still didn't worked.
enter image description here
The problem is that you are mapping a root domain, not subdomains. From Configure a custom domain name for your Azure storage account,
The mapping does only work for subdomains (e.g. www.contoso.com). If
you want to have your web endpoint available on the root domain (e.g.
contoso.com), then you have to Add a custom domain to your Azure CDN
endpoint.
In this case, you can try to use a subdomain like sub.contoso.com in your DNS provider. Otherwise, you need a CDN endpoint for that root domain. For more details, you can get from this blog.

Resources