az webapp deleted
此命令组处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
管理已删除的 Web 应用。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az webapp deleted list |
列出已删除的 Web 应用。 |
Core | Preview |
az webapp deleted restore |
还原已删除的 Web 应用。 |
Core | Preview |
az webapp deleted list
命令组“webapp deleted”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出已删除的 Web 应用。
az webapp deleted list [--name]
[--resource-group]
[--slot]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
已删除的 Web 应用槽的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | 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 deleted restore
命令组“webapp deleted”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
还原已删除的 Web 应用。
将已删除的 Web 应用的文件和设置还原到指定的 Web 应用。
az webapp deleted restore --deleted-id
[--ids]
[--name]
[--resource-group]
[--restore-content-only]
[--slot]
[--subscription]
[--target-app-svc-plan]
示例
将已删除的应用还原到 MySite 的过渡槽。
az webapp deleted restore -g MyResourceGroup -n MySite -s Staging --deleted-id /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/locations/location/deletedSites/1234
将已删除的应用还原到应用 MySite。 请勿还原已删除的应用设置。
az webapp deleted restore -g MyResourceGroup -n MySite --deleted-id /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/locations/location/deletedSites/1234 --restore-content-only
还原已删除的 Web 应用。 (autogenerated)
az webapp deleted restore --deleted-id /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/deletedSites/1234 --name MySite --resource-group MyResourceGroup --subscription MySubscription
必需参数
已删除的 Web 应用的资源 ID。
可选参数
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 应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
仅还原没有 Web 应用设置的已删除文件。
要还原已删除内容的槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
新 Azure Web 应用的应用服务计划。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |