Web Apps - List Backups
Description for Gets existing backups of an app.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups?api-version=2025-03-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
name
|
path | True |
string |
Name of the app. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| Other Status Codes |
An unexpected 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 |
Examples
List web app backups
Sample request
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups?api-version=2025-03-01
Sample response
{
"value": [
{
"name": "sitef6141",
"type": "Microsoft.Web/sites",
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345",
"properties": {
"name": "sitef6141_2024-11-01",
"blobName": "sitef6141_2024-11-01",
"created": "2022-09-03T17:33:11.641Z",
"databases": [
{
"name": "backenddb",
"connectionString": "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;<Attribute>=<value>]",
"connectionStringName": "backend",
"databaseType": "SqlAzure"
},
{
"name": "statsdb",
"connectionString": "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;<Attribute>=<value>]",
"connectionStringName": "stats",
"databaseType": "SqlAzure"
}
],
"finishedTimeStamp": "2022-09-05T17:33:11.641Z",
"id": 12345,
"lastRestoreTimeStamp": "2022-09-04T17:33:11.641Z",
"log": "Succeeded",
"scheduled": true,
"sizeInBytes": 56091883,
"status": "InProgress",
"storageAccountUrl": "DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey=<account-key>",
"websiteSizeInBytes": 56091883
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
Backup |
Backup description. |
|
Backup |
Collection of backup items. |
|
Backup |
Backup status. |
|
created |
The type of identity that created the resource. |
|
Database |
Database backup settings. |
|
Database |
Database type (e.g. SqlAzure / MySql). |
|
Default |
App Service error response. |
|
Default |
Error model. |
|
Default |
Detailed errors. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
BackupItem
Backup description.
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| kind |
string |
Kind of resource. |
| name |
string |
The name of the resource |
| properties.blobName |
string |
Name of the blob which contains data for this backup. |
| properties.correlationId |
string |
Unique correlation identifier. Please use this along with the timestamp while communicating with Azure support. |
| properties.created |
string (date-time) |
Timestamp of the backup creation. |
| properties.databases |
List of databases included in the backup. |
|
| properties.finishedTimeStamp |
string (date-time) |
Timestamp when this backup finished. |
| properties.id |
integer (int32) |
Id of the backup. |
| properties.lastRestoreTimeStamp |
string (date-time) |
Timestamp of a last restore operation which used this backup. |
| properties.log |
string |
Details regarding this backup. Might contain an error message. |
| properties.name |
string |
Name of this backup. |
| properties.scheduled |
boolean |
True if this backup has been created due to a schedule being triggered. |
| properties.sizeInBytes |
integer (int64) |
Size of the backup in bytes. |
| properties.status |
Backup status. |
|
| properties.storageAccountUrl |
string |
SAS URL for the storage account container which contains this backup. |
| properties.websiteSizeInBytes |
integer (int64) |
Size of the original web app which has been backed up. |
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
BackupItemCollection
Collection of backup items.
| Name | Type | Description |
|---|---|---|
| nextLink |
string (uri) |
The link to the next page of items |
| value |
The BackupItem items on this page |
BackupItemStatus
Backup status.
| Value | Description |
|---|---|
| InProgress | |
| Failed | |
| Succeeded | |
| TimedOut | |
| Created | |
| Skipped | |
| PartiallySucceeded | |
| DeleteInProgress | |
| DeleteFailed | |
| Deleted |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
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).
| Value | Description |
|---|---|
| SqlAzure | |
| MySql | |
| LocalMySql | |
| PostgreSql |
DefaultErrorResponse
App Service error response.
| Name | Type | Description |
|---|---|---|
| error |
Error model. |
DefaultErrorResponseError
Error model.
| Name | Type | Description |
|---|---|---|
| code |
string |
Standardized string to programmatically identify the error. |
| 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. |
DefaultErrorResponseErrorDetailsItem
Detailed errors.
| 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. |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |