az webapp deleted
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage deleted web apps.
Commands
Name | Description | Type | Status |
---|---|---|---|
az webapp deleted list |
List web apps that have been deleted. |
Core | Preview |
az webapp deleted restore |
Restore a deleted web app. |
Core | Preview |
az webapp deleted list
Command group 'webapp deleted' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List web apps that have been deleted.
az webapp deleted list [--name]
[--resource-group]
[--slot]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using az configure --defaults web=<name>
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the deleted web app slot.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az webapp deleted restore
Command group 'webapp deleted' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Restore a deleted web app.
Restores the files and settings of a deleted web app to the specified web app.
az webapp deleted restore --deleted-id
[--ids]
[--name]
[--resource-group]
[--restore-content-only]
[--slot]
[--subscription]
[--target-app-svc-plan]
Examples
Restore a deleted app to the Staging slot of 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
Restore a deleted app to the app MySite. Do not restore the deleted app's settings.
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
Restore a deleted web app. (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
Required Parameters
Resource ID of the deleted web app.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the web app to restore the deleted content to.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Restore only deleted files without web app settings.
Slot to restore the deleted content to.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The app service plan for the new azure web app.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |