< Back

Get-AzureRmSqlDatabaseRestorePoints

Tue Jan 29, 2019 10:08 pm

NAME Get-AzureRmSqlDatabaseRestorePoints



SYNOPSIS

Retrieves the distinct restore points from which a SQL Data Warehouse can be restored.





SYNTAX

Get-AzureRmSqlDatabaseRestorePoints [-ResourceGroupName] <String> [-ServerName] <String> [-DatabaseName] <String> [-DefaultProfile

<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmSqlDatabaseRestorePoints cmdlet retrieves the distinct restore points that an Azure SQL Data Warehouse can be restored from. For an

Azure SQL Database, the restore window is continuous. This means that any point in time in the backup retention period of the database can be used

as a restore point.



This cmdlet is also supported by the SQL Server Stretch Database service on Azure.





PARAMETERS

-DatabaseName <String>

Specifies the name of the SQL Database.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group to which the SQL Database is assigned.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ServerName <String>

Specifies the name of the AzureSQL Server that hosts the database.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS



NOTES









Example 1: Get all restore points



PS C:\\>Get-AzureRmSqlDatabaseRestorePoints -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"

ResourceGroupName : resourcegroup01

ServerName : server01

DatabaseName : database01

Location : Central US

RestorePointType : CONTINUOUS

RestorePointCreationDate :

EarliestRestoreDate : 8/12/2015 12:00:00 AM

RestorePointLabel : RestorePoint01



This command returns all available restore points for the Azure SQL Database named Database01.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... torepoints