az cdn custom-domain

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

Commands

az cdn custom-domain create Creates a new custom domain which provides a custom hostname for an endpoint origin.
az cdn custom-domain delete Deletes an existing custom domain within an endpoint.
az cdn custom-domain list Lists all of the existing custom domains within an endpoint.
az cdn custom-domain show Gets an exisitng custom domain within an endpoint.

az cdn custom-domain create

Creates a new custom domain which must point to the hostname of the endpoint. For example, the custom domain hostname cdn.contoso.com would need to have a CNAME record pointing to the hostname of the endpoint related to this custom domain.

az cdn custom-domain create --endpoint-name
--hostname
--name
--profile-name
--resource-group
[--location]
[--tags]

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 --host-name 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=.

Optional Parameters

--location -l

Location. You can configure the default location using az configure --defaults location=.

--tags

Space separated tags in 'key[=value]' format. Use "" to clear existing tags.

az cdn custom-domain delete

Deletes an existing custom domain within an endpoint.

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=.

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=.

az cdn custom-domain show

Gets an exisitng custom domain within an endpoint.

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

Examples

Show 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=.