az webapp deleted

Manage deleted web apps.

Commands

az webapp deleted list List web apps that have been deleted.
az webapp deleted restore Restore a deleted web app.

az webapp deleted list

List web apps that have been deleted.

az webapp deleted list [--name]
[--resource-group]
[--slot]
[--subscription]

Optional Parameters

--name -n

Name of the web app. You can configure the default using 'az configure --defaults web='.

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

--subscription

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

az webapp deleted restore

Restore a deleted web app.

az webapp deleted restore --deleted-id
[--ids]
[--name]
[--resource-group]
[--restore-content-only]
[--slot]
[--subscription]

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/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/deletedSites/1234 --restore-content-only

Required Parameters

--deleted-id

Resource ID of the deleted web app.

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

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