Web Apps - Restore From Backup Blob
Description for Restores an app from a backup blob in Azure Storage.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromBackupBlob?api-version=2024-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Name of the app. |
resource
|
path | True |
string |
Name of the resource group to which the resource belongs. Regex pattern: |
subscription
|
path | True |
string |
Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API Version |
Request Body
Name | Required | Type | Description |
---|---|---|---|
properties.overwrite | True |
boolean |
|
properties.storageAccountUrl | True |
string |
SAS URL to the container. |
kind |
string |
Kind of resource. |
|
properties.adjustConnectionStrings |
boolean |
|
|
properties.appServicePlan |
string |
Specify app service plan that will own restored site. |
|
properties.blobName |
string |
Name of a blob which contains the backup. |
|
properties.databases |
Collection of databases which should be restored. This list has to match the list of databases included in the backup. |
||
properties.hostingEnvironment |
string |
App Service Environment name, if needed (only when restoring an app to an App Service Environment). |
|
properties.ignoreConflictingHostNames |
boolean |
Changes a logic when restoring an app with custom domains. |
|
properties.ignoreDatabases |
boolean |
Ignore the databases and only restore the site content |
|
properties.operationType |
Operation type. |
||
properties.siteName |
string |
Name of an app. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Restore operation started. |
|
202 Accepted |
Restore operation started. |
|
Other Status Codes |
App Service error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Definitions
Name | Description |
---|---|
Backup |
Operation type. |
Database |
Database backup settings. |
Database |
Database type (e.g. SqlAzure / MySql). |
Default |
App Service error response. |
Details | |
Error |
Error model. |
Restore |
Description of a restore request. |
BackupRestoreOperationType
Operation type.
Name | Type | Description |
---|---|---|
Clone |
string |
|
CloudFS |
string |
|
Default |
string |
|
Relocation |
string |
|
Snapshot |
string |
DatabaseBackupSetting
Database backup settings.
Name | Type | Description |
---|---|---|
connectionString |
string |
Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one. |
connectionStringName |
string |
Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options. |
databaseType |
Database type (e.g. SqlAzure / MySql). |
|
name |
string |
DatabaseType
Database type (e.g. SqlAzure / MySql).
Name | Type | Description |
---|---|---|
LocalMySql |
string |
|
MySql |
string |
|
PostgreSql |
string |
|
SqlAzure |
string |
DefaultErrorResponse
App Service error response.
Name | Type | Description |
---|---|---|
error |
Error model. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
Error
Error model.
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
details |
Details[] |
Detailed errors. |
innererror |
string |
More information to debug error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
RestoreRequest
Description of a restore request.
Name | Type | Default value | Description |
---|---|---|---|
id |
string |
Resource Id. |
|
kind |
string |
Kind of resource. |
|
name |
string |
Resource Name. |
|
properties.adjustConnectionStrings |
boolean |
|
|
properties.appServicePlan |
string |
Specify app service plan that will own restored site. |
|
properties.blobName |
string |
Name of a blob which contains the backup. |
|
properties.databases |
Collection of databases which should be restored. This list has to match the list of databases included in the backup. |
||
properties.hostingEnvironment |
string |
App Service Environment name, if needed (only when restoring an app to an App Service Environment). |
|
properties.ignoreConflictingHostNames |
boolean |
False |
Changes a logic when restoring an app with custom domains. |
properties.ignoreDatabases |
boolean |
False |
Ignore the databases and only restore the site content |
properties.operationType | Default |
Operation type. |
|
properties.overwrite |
boolean |
|
|
properties.siteName |
string |
Name of an app. |
|
properties.storageAccountUrl |
string |
SAS URL to the container. |
|
type |
string |
Resource type. |