你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az cdn

管理 Azure 内容分发网络(CDN)。

命令

名称 说明 类型 Status
az cdn custom-domain

管理 Azure CDN 自定义域,为终结点提供自定义主机名。

Core GA
az cdn custom-domain create

在终结点中创建新的自定义域。

Core GA
az cdn custom-domain delete

删除终结点中的现有自定义域。

Core GA
az cdn custom-domain disable-https

禁用自定义域的 https 传递。

Core GA
az cdn custom-domain enable-https

为自定义域启用 HTTPS。 可以使用“az cdn custom-domain list”获取自定义域的资源名称。

Core GA
az cdn custom-domain list

列出终结点中的所有现有自定义域。

Core GA
az cdn custom-domain show

获取终结点中的现有自定义域。

Core GA
az cdn custom-domain update

更新终结点中的新自定义域。

Core GA
az cdn custom-domain wait

将 CLI 置于等待状态,直到满足条件。

Core GA
az cdn edge-node

查看所有可用的 CDN 边缘节点。

Core GA
az cdn edge-node list

列表是用于向最终用户传送 CDN 内容的全局状态点(POP)位置。

Core GA
az cdn endpoint

管理 CDN 终结点。

Core GA
az cdn endpoint create

在指定的订阅、资源组和配置文件下创建具有指定终结点名称的新 CDN 终结点。

Core GA
az cdn endpoint delete

删除具有指定订阅、资源组和配置文件下指定终结点名称的现有 CDN 终结点。

Core GA
az cdn endpoint list

列出现有的 CDN 终结点。

Core GA
az cdn endpoint load

将内容预加载到 CDN。 可用于 Verizon 配置文件。

Core GA
az cdn endpoint name-exists

检查资源名称的可用性。 对于名称全局唯一(例如 CDN 终结点)的资源,这是必需的。

Core GA
az cdn endpoint purge

从 CDN 中删除内容。

Core GA
az cdn endpoint rule

管理终结点的传递规则。

Core Preview
az cdn endpoint rule action

管理终结点的传递规则操作。

Core Preview
az cdn endpoint rule action add

将操作添加到传递规则。

Core Preview
az cdn endpoint rule action remove

从传递规则中删除操作。

Core Preview
az cdn endpoint rule action show

使用终结点显示传递规则。

Core Preview
az cdn endpoint rule add

将传递规则添加到 CDN 终结点。

Core Preview
az cdn endpoint rule condition

管理终结点的传递规则条件。

Core Preview
az cdn endpoint rule condition add

向传递规则添加条件。

Core Preview
az cdn endpoint rule condition remove

从传递规则中删除条件。

Core Preview
az cdn endpoint rule condition show

显示与终结点关联的传递规则。

Core Preview
az cdn endpoint rule remove

从终结点中删除传递规则。

Core Preview
az cdn endpoint rule show

显示与终结点关联的传递规则。

Core Preview
az cdn endpoint show

获取具有指定订阅、资源组和配置文件下指定终结点名称的现有 CDN 终结点。

Core GA
az cdn endpoint start

启动处于停止状态的现有 CDN 终结点。

Core GA
az cdn endpoint stop

停止现有的正在运行的 CDN 终结点。

Core GA
az cdn endpoint update

使用指定订阅、资源组和配置文件下的指定终结点名称更新现有 CDN 终结点。 创建终结点后只能更新标记。 若要更新源,请使用“更新源”作。 若要更新源组,请使用“更新源”组作。 若要更新自定义域,请使用“更新自定义域”作。

Core GA
az cdn endpoint validate-custom-domain

验证自定义域映射,以确保它映射到 DNS 中正确的 CDN 终结点。

Core GA
az cdn endpoint wait

将 CLI 置于等待状态,直到满足条件。

Core GA
az cdn name-exists

检查资源名称的可用性。 对于名称全局唯一(例如 CDN 终结点)的资源,这是必需的。

Core GA
az cdn origin

列出或显示与 CDN 终结点相关的现有源。

Core GA
az cdn origin-group

管理终结点的源组。

Core GA
az cdn origin-group create

在指定的终结点中创建新的源组。

Core GA
az cdn origin-group delete

删除终结点中的现有源组。

Core GA
az cdn origin-group list

列出终结点中的所有现有源组。

Core GA
az cdn origin-group show

获取终结点中的现有源组。

Core GA
az cdn origin-group update

更新指定终结点中的新源组。

Core GA
az cdn origin-group wait

将 CLI 置于等待状态,直到满足条件。

Core GA
az cdn origin create

在指定的终结点内创建新源。

Core GA
az cdn origin delete

删除终结点中的现有源。

Core GA
az cdn origin list

列出终结点中的所有现有源。

Core GA
az cdn origin show

获取终结点中的现有源。

Core GA
az cdn origin update

更新指定终结点中的新源。

Core GA
az cdn origin wait

将 CLI 置于等待状态,直到满足条件。

Core GA
az cdn profile

管理 Azure 内容分发网络(CDN)。

Core GA
az cdn profile-migration

经典 cdn 配置文件迁移作。

Core Preview
az cdn profile-migration abort

中止迁移到 Azure Frontdoor Premium/Standard。

Core Preview
az cdn profile-migration check-compatibility

检查 CDN 配置文件是否可以迁移到 Azure Frontdoor(标准/高级)配置文件。

Core Preview
az cdn profile-migration commit

提交已迁移的 Azure Frontdoor(标准/高级)配置文件。

Core Preview
az cdn profile-migration migrate

将 CDN 配置文件迁移到 Azure Frontdoor(标准/高级)配置文件。 此步骤准备迁移的配置文件,然后提交以完成迁移。

Core Preview
az cdn profile create

使用指定订阅和资源组下的配置文件名称创建新的 Azure Front Door 标准版或 Azure Front Door Premium 或 CDN 配置文件。

Core GA
az cdn profile delete

删除具有指定参数的现有 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 配置文件。 删除配置文件将导致删除所有子资源,包括终结点、源和自定义域。

Core GA
az cdn profile list

列出 Azure 订阅中的所有 Azure Front Door 标准版、Azure Front Door Premium 和 CDN 配置文件。

Core GA
az cdn profile show

获取具有指定订阅和资源组下指定配置文件名称的 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 配置文件。

Core GA
az cdn profile update

使用指定订阅和资源组下的配置文件名称更新新的 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 配置文件。

Core GA
az cdn usage

检查给定订阅下 CDN 配置文件的配额和实际使用情况。

Core GA

az cdn name-exists

检查资源名称的可用性。 对于名称全局唯一(例如 CDN 终结点)的资源,这是必需的。

az cdn name-exists --name
                   [--type {Microsoft.Cdn/Profiles/AfdEndpoints, Microsoft.Cdn/Profiles/Endpoints}]

示例

检查资源名称 contoso 是否可用。

az cdn name-exists --name contoso

必需参数

--name

要验证的资源名称。

属性
Parameter group: CheckNameAvailabilityInput Arguments

可选参数

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

--type

要验证其名称的资源的类型。

属性
Parameter group: CheckNameAvailabilityInput Arguments
默认值: Microsoft.Cdn/Profiles/Endpoints
接受的值: Microsoft.Cdn/Profiles/AfdEndpoints, Microsoft.Cdn/Profiles/Endpoints
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az cdn usage

检查给定订阅下 CDN 配置文件的配额和实际使用情况。

az cdn usage [--max-items]
             [--next-token]

可选参数

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

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。

属性
Parameter group: Pagination Arguments
--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

属性
Parameter group: Pagination Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False