az cdn custom-domain

Manage Azure CDN Custom Domains to provide custom host names for endpoints.

Commands

az cdn custom-domain create Create a new custom domain to provide a hostname for a CDN endpoint.
az cdn custom-domain delete Delete the custom domain of a CDN.
az cdn custom-domain list Lists all of the existing custom domains within an endpoint.
az cdn custom-domain show Show details for the custom domain of a CDN.

az cdn custom-domain create

Create a new custom domain to provide a hostname for a CDN endpoint.

az cdn custom-domain create --endpoint-name
--hostname
--name
--profile-name
--resource-group

Examples

Create a custom domain within an endpoint and profile.

az cdn custom-domain create -g group --endpoint-name endpoint --profile-name profile     -n domain-name --hostname www.example.com

Required Parameters

--endpoint-name
Name of the endpoint under the profile which is unique globally.
--hostname
The host name of the custom domain. Must be a domain name.
--name -n
--profile-name
Name of the CDN profile which is unique within the resource group.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az cdn custom-domain delete

Delete the custom domain of a CDN.

az cdn custom-domain delete --endpoint-name
--name
--profile-name
--resource-group

Examples

Delete a custom domain.

az cdn custom-domain delete -g group --endpoint-name endpoint --profile-name profile     -n domain-name

Required Parameters

--endpoint-name
Name of the endpoint under the profile which is unique globally.
--name -n
Name of the custom domain.
--profile-name
Name of the CDN profile which is unique within the resource group.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az cdn custom-domain list

Lists all of the existing custom domains within an endpoint.

az cdn custom-domain list --endpoint-name
--profile-name
--resource-group

Required Parameters

--endpoint-name
Name of the endpoint under the profile which is unique globally.
--profile-name
Name of the CDN profile which is unique within the resource group.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az cdn custom-domain show

Show details for the custom domain of a CDN.

az cdn custom-domain show --endpoint-name
--name
--profile-name
--resource-group

Examples

Get the details of a custom domain.

az cdn custom-domain show -g group --endpoint-name endpoint --profile-name profile     -n domain-name

Required Parameters

--endpoint-name
Name of the endpoint under the profile which is unique globally.
--name -n
Name of the custom domain.
--profile-name
Name of the CDN profile which is unique within the resource group.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.