Edit

Share via


Restore-AzWebAppBackup

Restores an Azure Web App Backup.

Syntax

FromResourceName

Restore-AzWebAppBackup
    [-ResourceGroupName] <String>
    [-Name] <String>
    [[-Slot] <String>]
    [-StorageAccountUrl] <String>
    [-BlobName] <String>
    [-AppServicePlan <String>]
    [-Databases <DatabaseBackupSetting[]>]
    [-IgnoreConflictingHostNames]
    [-DefaultProfile <IAzureContextContainer>]
    [-Overwrite]
    [<CommonParameters>]

FromWebApp

Restore-AzWebAppBackup
    [-WebApp] <PSSite>
    [-StorageAccountUrl] <String>
    [-BlobName] <String>
    [-AppServicePlan <String>]
    [-Databases <DatabaseBackupSetting[]>]
    [-IgnoreConflictingHostNames]
    [-DefaultProfile <IAzureContextContainer>]
    [-Overwrite]
    [<CommonParameters>]

Description

The Restore-AzWebAppBackup cmdlet restores an Azure Web App Backup.

Examples

Example 1

Restore-AzWebAppBackup -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -StorageAccountUrl "https://storageaccount.file.core.windows.net" -BlobName "myBlob"

Restores a backup of the specified app ContosoWebApp that is within resource group Default-Web-WestUS in blob "myBlob" located at https://storageaccount.file.core.windows.net

Example 2

The Restore-AzWebAppBackup cmdlet restores an Azure Web App Backup. (autogenerated)

Restore-AzWebAppBackup -BlobName 'myBlob' -Name 'ContosoWebApp' -Overwrite -ResourceGroupName 'Default-Web-WestUS' -StorageAccountUrl 'https://storageaccount.file.core.windows.net'

Parameters

-AppServicePlan

The name of the App Service Plan for the restored app. If left empty, the app's current App Service Plan is used.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-BlobName

Blob Name

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:4
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Databases

Databases of type DatabaseBackupSetting[]

Parameter properties

Type:

DatabaseBackupSetting[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IgnoreConflictingHostNames

Ignore Conflicting HostNames Option

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Name

WebApp Name

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromResourceName
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Overwrite

Overwrite Option

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ResourceGroupName

Resource Group Name

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromResourceName
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Slot

WebApp Slot Name

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromResourceName
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-StorageAccountUrl

Storage Account Url

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-WebApp

WebApp Object

Parameter properties

Type:PSSite
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromWebApp
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

DatabaseBackupSetting

SwitchParameter

PSSite

Outputs

Void