az webapp config snapshot
管理 Web 应用快照。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az webapp config snapshot list |
列出 Web 应用的可还原快照。 |
Core | GA |
az webapp config snapshot restore |
还原 Web 应用快照。 |
Core | GA |
az webapp config snapshot list
列出 Web 应用的可还原快照。
az webapp config snapshot list --name
--resource-group
[--slot]
示例
列出 Web 应用的可还原快照。 (autogenerated)
az webapp config snapshot list --name MyWebApp --resource-group MyResourceGroup
必需参数
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
资源组的名称。 可以使用 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 snapshot restore
还原 Web 应用快照。
az webapp config snapshot restore --time
[--ids]
[--name]
[--resource-group]
[--restore-content-only]
[--slot]
[--source-name]
[--source-resource-group]
[--source-slot]
[--subscription]
示例
从快照还原 Web 应用文件。 覆盖 Web 应用的当前文件和设置。
az webapp config snapshot restore -g MyResourceGroup -n MySite --time 2018-12-11T23:34:16.8388367
将 Web 应用 SourceApp 的快照还原到 Web 应用 TargetApp。 仅使用 --restore-content-not restore 应用设置。 覆盖 TargetApp 的文件。
az webapp config snapshot restore -g TargetResourceGroup -n TargetApp --source-name SourceApp --source-resource-group OriginalResourceGroup --time 2018-12-11T23:34:16.8388367 --restore-content-only
必需参数
要还原的快照的时间戳。
可选参数
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 |
在不还原设置的情况下还原 Web 应用文件。
属性 | 值 |
---|---|
默认值: | False |
槽的名称。
要从中检索快照的 Web 应用的名称。
要从中检索快照的资源组的名称。
要从中检索快照的 Web 应用槽的名称。
订阅的名称或 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 |