Hello Atul.
Since your topic of question and inject changed, we suggest to keep them separate question post. We understand from your revised question the topic is about apply custom domain names.
Here are the steps to apply a custom domain for azureacr.io
:
- Create a custom domain: You can create a custom domain using a domain registrar of your choice. Ensure that you have access to the domain's DNS records.
- Create a certificate: Create a certificate for your custom domain. You can use a certificate authority of your choice to create the certificate.
- Add a CNAME record: Add a CNAME record to your domain's DNS records. The CNAME record should point to the login server of your registry. For example, if your registry is named
myregistry.azurecr.io
, the CNAME record should point tomyregistry.azurecr.io
. - Configure your registry: Configure your registry to use the custom domain and certificate. You can do this by creating a new
az acr update
command with the--custom-domain
and--ssl-cert
parameters.