az webapp config ssl
Note
此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 Learn more about extensions.
为 Web 应用配置 SSL 证书。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az webapp config ssl bind |
将 SSL 证书绑定到 Web 应用。 |
Core | GA |
az webapp config ssl bind (appservice-kube 扩展) |
将 SSL 证书绑定到 Web 应用。 |
Extension | GA |
az webapp config ssl create |
在 Web 应用中创建主机名的托管证书。 |
Core | Preview |
az webapp config ssl delete |
从 Web 应用中删除 SSL 证书。 |
Core | GA |
az webapp config ssl import |
从密钥库将 SSL 或App 服务证书导入 Web 应用。 |
Core | GA |
az webapp config ssl list |
列出 Web 应用的 SSL 证书。 |
Core | GA |
az webapp config ssl show |
显示 Web 应用的 SSL 证书的详细信息。 |
Core | GA |
az webapp config ssl unbind |
从 Web 应用取消绑定 SSL 证书。 |
Core | GA |
az webapp config ssl unbind (appservice-kube 扩展) |
从 Web 应用取消绑定 SSL 证书。 |
Extension | GA |
az webapp config ssl upload |
将 SSL 证书上传到 Web 应用。 |
Core | GA |
az webapp config ssl bind
将 SSL 证书绑定到 Web 应用。
az webapp config ssl bind --certificate-thumbprint
--ssl-type {IP, SNI}
[--hostname]
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
将 SSL 证书绑定到 Web 应用。 (autogenerated)
az webapp config ssl bind --certificate-thumbprint {certificate-thumbprint} --name MyWebapp --resource-group MyResourceGroup --ssl-type SNI
必需参数
ssl 证书指纹。
ssl 证书类型。
属性 | 值 |
---|---|
接受的值: | IP, SNI |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
自定义域名。 如果为空,将自动选择主机名。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl bind (appservice-kube 扩展)
将 SSL 证书绑定到 Web 应用。
az webapp config ssl bind --certificate-thumbprint
--ssl-type {IP, SNI}
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
将 SSL 证书绑定到 Web 应用。 (autogenerated)
az webapp config ssl bind --certificate-thumbprint {certificate-thumbprint} --name MyWebapp --resource-group MyResourceGroup --ssl-type SNI
必需参数
ssl 证书指纹。
ssl 证书类型。
属性 | 值 |
---|---|
接受的值: | IP, SNI |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl create
此命令处于预览阶段,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
在 Web 应用中创建主机名的托管证书。
az webapp config ssl create --hostname
--name
--resource-group
[--certificate-name]
[--slot]
示例
为 cname.mycustomdomain.com 创建托管证书。
az webapp config ssl create --resource-group MyResourceGroup --name MyWebapp --hostname cname.mycustomdomain.com
必需参数
自定义域名。
Web 应用的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
证书的名称。
槽的名称。 如果未指定,则默认为生产槽。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl delete
从 Web 应用中删除 SSL 证书。
az webapp config ssl delete --certificate-thumbprint
--resource-group
示例
从 Web 应用中删除 SSL 证书。 (autogenerated)
az webapp config ssl delete --certificate-thumbprint {certificate-thumbprint} --resource-group MyResourceGroup
必需参数
ssl 证书指纹。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl import
从密钥库将 SSL 或App 服务证书导入 Web 应用。
az webapp config ssl import --key-vault
--key-vault-certificate-name
[--certificate-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
示例
从 Key Vault 将 SSL 或应用服务证书证书导入 Web 应用。 请注意,Web 空间中的所有 Web 应用程序也将能够使用该证书。
az webapp config ssl import --resource-group MyResourceGroup --name MyWebapp --key-vault MyKeyVault --key-vault-certificate-name MyCertificateName
使用资源 ID 将 SSL 或应用服务证书导入到 Key Vault 中的 Web 应用(通常,如果 Key Vault 位于另一个订阅中)。 请注意,Web 空间中的所有 Web 应用程序也将能够使用该证书。
az webapp config ssl import --resource-group MyResourceGroup --name MyWebapp --key-vault '/subscriptions/[sub id]/resourceGroups/[rg]/providers/Microsoft.KeyVault/vaults/[vault name]' --key-vault-certificate-name MyCertificateName
将 SSL 或应用服务证书从 Key Vault 导入到 Web 空间。 请注意,Web 空间中的所有 Web 应用程序也将能够使用该证书。
az webapp config ssl import --resource-group MyResourceGroup --key-vault MyKeyVault --key-vault-certificate-name MyCertificateName
必需参数
Key Vault 的名称或资源 ID。
Key Vault 中证书的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
证书的名称。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 这用于设置证书导入的 Web 空间的位置。 如果未指定,则将使用资源组的位置。 如果您在多个区域/Web 空间中有应用程序,则必须指定应用程序的名称以设置证书导入的 Web 空间的位置。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl list
列出 Web 应用的 SSL 证书。
az webapp config ssl list --resource-group
示例
列出 Web 应用的 SSL 证书。 (autogenerated)
az webapp config ssl list --resource-group MyResourceGroup
必需参数
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl show
显示 Web 应用的 SSL 证书的详细信息。
az webapp config ssl show --certificate-name
--resource-group
示例
显示 Web 应用的 SSL 证书的详细信息。 (autogenerated)
az webapp config ssl show --resource-group MyResourceGroup --certificate-name cname.mycustomdomain.com
必需参数
证书的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl unbind
从 Web 应用取消绑定 SSL 证书。
az webapp config ssl unbind --certificate-thumbprint
[--hostname]
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
必需参数
ssl 证书指纹。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
自定义域名。 如果为空,将自动选择主机名。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl unbind (appservice-kube 扩展)
从 Web 应用取消绑定 SSL 证书。
az webapp config ssl unbind --certificate-thumbprint
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
必需参数
ssl 证书指纹。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config ssl upload
将 SSL 证书上传到 Web 应用。
az webapp config ssl upload --certificate-file
--certificate-password
[--certificate-name]
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
将 SSL 证书上传到 Web 应用。 (autogenerated)
az webapp config ssl upload --certificate-file {certificate-file} --certificate-password {certificate-password} --name MyWebapp --resource-group MyResourceGroup
必需参数
.pfx 文件的文件路径。
ssl 证书密码。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
证书的名称。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |