az webapp config backup

Manage backups for web apps.

Commands

az webapp config backup create Create a backup of a web app.
az webapp config backup list List backups of a web app.
az webapp config backup restore Restore a web app from a backup.
az webapp config backup show Show the backup schedule for a web app.
az webapp config backup update Configure a new backup schedule for a web app.

az webapp config backup create

Create a backup of a web app.

az webapp config backup create --container-url
--resource-group
--webapp-name
[--backup-name]
[--db-connection-string]
[--db-name]
[--db-type {LocalMySql, MySql, PostgreSql, SqlAzure}]
[--slot]

Required Parameters

--container-url
URL with SAS token to the blob storage container.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--webapp-name
The name of the webapp.

Optional Parameters

--backup-name
Name of the backup. If unspecified, the backup will be named with the webapp name and a timestamp.
--db-connection-string
Connection string for the database in the backup.
--db-name
Name of the database in the backup.
--db-type
Type of database in the backup.
accepted values: LocalMySql, MySql, PostgreSql, SqlAzure
--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp config backup list

List backups of a web app.

az webapp config backup list --resource-group
--webapp-name
[--slot]

Required Parameters

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

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp config backup restore

Restore a web app from a backup.

az webapp config backup restore --backup-name
--container-url
--resource-group
--webapp-name
[--db-connection-string]
[--db-name]
[--db-type {LocalMySql, MySql, PostgreSql, SqlAzure}]
[--ignore-hostname-conflict]
[--overwrite]
[--slot]
[--target-name]

Required Parameters

--backup-name
Name of the backup to restore.
--container-url
URL with SAS token to the blob storage container.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--webapp-name
The name of the webapp.

Optional Parameters

--db-connection-string
Connection string for the database in the backup.
--db-name
Name of the database in the backup.
--db-type
Type of database in the backup.
accepted values: LocalMySql, MySql, PostgreSql, SqlAzure
--ignore-hostname-conflict
Ignores custom hostnames stored in the backup.
--overwrite
Overwrite the source webapp, if --target-name is not specified.
--slot -s
The name of the slot. Default to the productions slot if not specified.
--target-name
The name to use for the restored webapp. If unspecified, will default to the name that was used when the backup was created.

az webapp config backup show

Show the backup schedule for a web app.

az webapp config backup show --resource-group
--webapp-name
[--slot]

Required Parameters

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

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp config backup update

Configure a new backup schedule for a web app.

az webapp config backup update --resource-group
--webapp-name
[--container-url]
[--db-connection-string]
[--db-name]
[--db-type {LocalMySql, MySql, PostgreSql, SqlAzure}]
[--frequency]
[--retain-one {false, true}]
[--retention]
[--slot]

Required Parameters

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

Optional Parameters

--container-url
URL with SAS token to the blob storage container.
--db-connection-string
Connection string for the database in the backup.
--db-name
Name of the database in the backup.
--db-type
Type of database in the backup.
accepted values: LocalMySql, MySql, PostgreSql, SqlAzure
--frequency
How often to backup. Use a number followed by d or h, e.g. 5d = 5 days, 2h = 2 hours.
--retain-one
Always keep one backup, regardless of how old it is.
accepted values: false, true
--retention
How many days to keep a backup before automatically deleting it. Set to 0 for indefinite retention.
--slot -s
The name of the slot. Default to the productions slot if not specified.