title: Do you know how to create a custom domain name with azure command line?
body: <p><a href="https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest</a></p>
  <pre><code>1.Resource Group                        |  az group create -l westeurope -n Domains
  
  2.CDN &gt; profile  &gt; create               |  az cdn profile create -g Domains -n HomeProfile --sku Premium_Verizon
  
  3.CDN &gt; endpoint &gt; create               |  az cdn endpoint create -g Domains -n HomeEndpoint --profile-name HomeProfile --origin www.home1991-2000.com
  
  4.DNS &gt; Zones &gt; create                  |  az network dns zone create -g Domains -n www.home1991-2000.com
  
  5.DNS &gt; Record sets &gt; CNAME &gt; create    |  az network dns record-set cname create -g Domains -z www.home1991-2000.com -n HomeRecordSet
   
  6.eventgrid &gt; domain &gt; create           |  az eventgrid domain create -g Domains --name home1991-2000 -l westeurope
  
  7.CDN &gt; custom-domain &gt; create          |  az cdn custom-domain create -g Domains --endpoint-name HomeEndpoint --profile-name HomeProfile -n home1991-2000-name --hostname www.home1991-2000.com
  </code></pre>
  <p>I'm receive these bad request. Can anyone help ?</p>
  <p>BadRequest - We couldn't find a DNS record for custom domain that points to endpoint. To map a domain to this endpoint, create a CNAME record with your DNS provider for custom domain that points to endpoint.</p>