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]
                       [--query-examples]
                       [--resource-group]
                       [--slot]
                       [--subscription]

Optional Parameters

--name -n

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

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

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

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]

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.