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

Preview

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

--name -n

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>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--slot -s

Name of the deleted web app slot.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az webapp deleted restore

Preview

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

--deleted-id

Resource ID of the deleted web app.

Optional Parameters

--ids

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.

--name -n

Name of the web app to restore the deleted content to.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--restore-content-only

Restore only deleted files without web app settings.

--slot -s

Slot to restore the deleted content to.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--target-app-svc-plan

The app service plan for the new azure web app.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.