az cdn

Note

This reference is part of the cdn extension for the Azure CLI (version 2.85.0 or higher). The extension will automatically install the first time you run an az cdn command. Learn more about extensions.

Manage Azure Content Delivery Networks (CDNs).

Commands

Name Description Type Status
az cdn custom-domain

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

Extension GA
az cdn custom-domain create

Create a new custom domain within an endpoint.

Extension GA
az cdn custom-domain delete

Delete an existing custom domain within an endpoint.

Extension GA
az cdn custom-domain disable-https

Disable https delivery of the custom domain.

Extension GA
az cdn custom-domain enable-https

Enable HTTPS for a custom domain. The resource name of the custom domain could be obtained using "az cdn custom-domain list".

Extension GA
az cdn custom-domain list

List all of the existing custom domains within an endpoint.

Extension GA
az cdn custom-domain show

Get an existing custom domain within an endpoint.

Extension GA
az cdn custom-domain update

Update a new custom domain within an endpoint.

Extension GA
az cdn custom-domain wait

Place the CLI in a waiting state until a condition is met.

Extension GA
az cdn edge-node

View all available CDN edge nodes.

Extension GA
az cdn edge-node list

List are the global Point of Presence (POP) locations used to deliver CDN content to end users.

Extension GA
az cdn endpoint

Manage CDN endpoints.

Extension GA
az cdn endpoint create

Create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.

Extension GA
az cdn endpoint delete

Delete an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.

Extension GA
az cdn endpoint list

List existing CDN endpoints.

Extension GA
az cdn endpoint load

Pre-loads a content to CDN. Available for Verizon Profiles.

Extension GA
az cdn endpoint name-exists

Check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint.

Extension GA
az cdn endpoint purge

Removes a content from CDN.

Extension GA
az cdn endpoint rule

Manage delivery rules for an endpoint.

Extension Preview
az cdn endpoint rule action

Manage delivery rule actions for an endpoint.

Extension Preview
az cdn endpoint rule action add

Add an action to a delivery rule.

Extension Preview
az cdn endpoint rule action remove

Remove an action from a delivery rule.

Extension Preview
az cdn endpoint rule action show

Show delivery rules asscociate with the endpoint.

Extension Preview
az cdn endpoint rule add

Add a delivery rule to a CDN endpoint.

Extension Preview
az cdn endpoint rule condition

Manage delivery rule conditions for an endpoint.

Extension Preview
az cdn endpoint rule condition add

Add a condition to a delivery rule.

Extension Preview
az cdn endpoint rule condition remove

Remove a condition from a delivery rule.

Extension Preview
az cdn endpoint rule condition show

Show delivery rules associate with the endpoint.

Extension Preview
az cdn endpoint rule remove

Remove a delivery rule from an endpoint.

Extension Preview
az cdn endpoint rule show

Show delivery rules associate with the endpoint.

Extension Preview
az cdn endpoint show

Get an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.

Extension GA
az cdn endpoint start

Starts an existing CDN endpoint that is on a stopped state.

Extension GA
az cdn endpoint stop

Stops an existing running CDN endpoint.

Extension GA
az cdn endpoint update

Update an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update custom domains, use the Update Custom Domain operation.

Extension GA
az cdn endpoint validate-custom-domain

Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.

Extension GA
az cdn endpoint wait

Place the CLI in a waiting state until a condition is met.

Extension GA
az cdn name-exists

Check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint.

Extension GA
az cdn origin

List or show existing origins related to CDN endpoints.

Extension GA
az cdn origin-group

Manage origin groups of an endpoint.

Extension GA
az cdn origin-group create

Create a new origin group within the specified endpoint.

Extension GA
az cdn origin-group delete

Delete an existing origin group within an endpoint.

Extension GA
az cdn origin-group list

List all of the existing origin groups within an endpoint.

Extension GA
az cdn origin-group show

Get an existing origin group within an endpoint.

Extension GA
az cdn origin-group update

Update a new origin group within the specified endpoint.

Extension GA
az cdn origin-group wait

Place the CLI in a waiting state until a condition is met.

Extension GA
az cdn origin create

Create a new origin within the specified endpoint.

Extension GA
az cdn origin delete

Delete an existing origin within an endpoint.

Extension GA
az cdn origin list

List all of the existing origins within an endpoint.

Extension GA
az cdn origin show

Get an existing origin within an endpoint.

Extension GA
az cdn origin update

Update a new origin within the specified endpoint.

Extension GA
az cdn origin wait

Place the CLI in a waiting state until a condition is met.

Extension GA
az cdn profile

Manage Profile.

Extension GA
az cdn profile-migration

Classic cdn profile migration operations.

Extension Preview
az cdn profile-migration abort

Abort the migration to Azure Frontdoor Premium/Standard.

Extension Preview
az cdn profile-migration check-compatibility

Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile.

Extension Preview
az cdn profile-migration commit

Commit the migrated Azure Frontdoor(Standard/Premium) profile.

Extension Preview
az cdn profile-migration migrate

Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. This step prepares the profile for migration and will be followed by Commit to finalize the migration.

Extension Preview
az cdn profile create

Create a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile name under the specified subscription and resource group.

Extension GA
az cdn profile delete

Delete an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified parameters. Deleting a profile will result in the deletion of all of the sub-resources including endpoints, origins and custom domains.

Extension GA
az cdn profile deployment-version

Manage Deployment Version.

Extension GA
az cdn profile deployment-version approve

Approve the deployment of the version.

Extension GA
az cdn profile deployment-version compare

Compare the deployment version to another deployment version.

Extension GA
az cdn profile deployment-version list

List existing deployment versions by profile.

Extension GA
az cdn profile deployment-version show

Get an existing DeploymentVersion with the specified version name under the specified subscription, resource group and profile.

Extension GA
az cdn profile deployment-version update

Update an existing DeploymentVersion within a profile.

Extension GA
az cdn profile list

List all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an Azure subscription.

Extension GA
az cdn profile show

Get an Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.

Extension GA
az cdn profile update

Update a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile name under the specified subscription and resource group.

Extension GA
az cdn usage

Check the quota and actual usage of the CDN profiles under the given subscription.

Extension GA

az cdn name-exists

Check the availability of a resource name. This is needed for resources where name is globally unique, such as a CDN endpoint.

az cdn name-exists --name
                   [--acquire-policy-token]
                   [--change-reference]
                   [--type {Microsoft.Cdn/Profiles/AfdEndpoints, Microsoft.Cdn/Profiles/Endpoints}]

Examples

Check whether the resource name contoso is available or not.

az cdn name-exists --name contoso

Required Parameters

--name

The resource name to validate.

Property Value
Parameter group: CheckNameAvailabilityInput Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--type

The type of the resource whose name is to be validated.

Property Value
Parameter group: CheckNameAvailabilityInput Arguments
Default value: Microsoft.Cdn/Profiles/Endpoints
Accepted values: Microsoft.Cdn/Profiles/AfdEndpoints, Microsoft.Cdn/Profiles/Endpoints
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az cdn usage

Check the quota and actual usage of the CDN profiles under the given subscription.

az cdn usage [--acquire-policy-token]
             [--change-reference]
             [--max-items]
             [--next-token]

Examples

ResourceUsage_List

az cdn usage

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False