Get-AzWebAppSnapshot

Gets the snapshots available for a web app.

Syntax

Get-AzWebAppSnapshot
   [-UseDisasterRecovery]
   [-ResourceGroupName] <String>
   [-Name] <String>
   [[-Slot] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzWebAppSnapshot
   [-UseDisasterRecovery]
   [-WebApp] <PSSite>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzWebAppSnapshot cmdlet returns all snapshots for a web app. Snapshots are automatic backups of a web app's files and settings. A snapshot can be restored with the Restore-AzWebAppSnapshot cmdlet.

Examples

Example 1

PS C:\> Get-AzWebAppSnapshot -ResourceGroupName "Default-Web-WestUS" -Name "ContosoApp" -Slot "Staging"

Get the snapshots for a web app named "ContosoApp" with a slot named "Staging" in the "Default-Web-WestUS" resource group

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the web app.

Type:String
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-ResourceGroupName

The name of the resource group.

Type:String
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Slot

The name of the web app slot.

Type:String
Position:2
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-UseDisasterRecovery

Read the snapshots from a secondary scale unit.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WebApp

The web app object

Type:PSSite
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

PSSite

Outputs

AzureWebAppSnapshot