Skip to content

Commit e93da88

Browse files
amolramolr
authored andcommitted
Merge branch 'preview' of https://github.com/Azure/azure-powershell into preview
2 parents a555ede + 4295a5d commit e93da88

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/ResourceManager/Resources/Commands.Resources/help/Get-AzureRmADGroupMember.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6060
6161
[Get-AzureRmADServicePrincipal]()
6262
63-
[Get-AzureRmADGroupMemberMember]()
64-

src/ResourceManager/Sql/Commands.Sql/help/Restore-AzureRmSqlDatabase.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,23 @@ The second command restores the database in $Database from the specified point-i
7373
### Example 3: Restore a deleted database
7474
```
7575
PS C:\>$DeletedDatabase = Get-AzureRmSqlDeletedDatabaseBackup -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"
76-
PS C:\> Restore-AzureRmSqlDatabase -FromDeletedDatabaseBackup -DeletionDate $DeletedDatabase.DeletionDate -ResourceGroupName $DeletedDatabase.ResourceGroupName -ServerName $DeletedDatabase.ServerName -TargetDatabaseName "RestoredDatabase" -ResourceId $DeletedDatabase.ResourceID -Edition "Standard" -ServiceObjectiveName "S2"
76+
PS C:\> Restore-AzureRmSqlDatabase -FromDeletedDatabaseBackup -DeletionDate $DeletedDatabase.DeletionDate -ResourceGroupName $DeletedDatabase.ResourceGroupName -ServerName $DeletedDatabase.ServerName -TargetDatabaseName "RestoredDatabase" -ResourceId $DeletedDatabase.ResourceID -Edition "Standard" -ServiceObjectiveName "S2" -PointInTime UTCDateTime
7777
```
7878

79-
The first command gets the backup for the deleted SQL database named database01, and then stores it in the $DeletedDatabase variable.
79+
The first command gets the deleted database backup that you want to restore by using [Get-AzureRmSqlDeletedDatabaseBackup](./Get-AzureRMSqlDeletedDatabaseBackup.md).
80+
The second command starts the restore from the deleted database backup by using the [Restore-AzureRmSqlDatabase](./Restore-AzureRmSqlDatabase.md) cmdlet. If the -PointInTime parameter is not specified, the database will be restored to the deletion time.
81+
82+
### Example 4: Restore a deleted database into an elastic pool
83+
```
84+
PS C:\>$DeletedDatabase = Get-AzureRmSqlDeletedDatabaseBackup -ResourceGroupName $resourceGroupName -ServerName $sqlServerName -DatabaseName 'DatabaseToRestore'
85+
PS C:\> Restore-AzureRmSqlDatabase -FromDeletedDatabaseBackup -DeletionDate $DeletedDatabase.DeletionDate -ResourceGroupName $DeletedDatabase.ResourceGroupName -ServerName $DeletedDatabase.ServerName -TargetDatabaseName "RestoredDatabase" -ResourceId $DeletedDatabase.ResourceID -ElasticPoolName "elasticpool01" -PointInTime UTCDateTime
86+
```
87+
88+
The first command gets the deleted database backup that you want to restore by using [Get-AzureRmSqlDeletedDatabaseBackup](./Get-AzureRMSqlDeletedDatabaseBackup.md).
89+
The second command starts the restore from the deleted database backup by using [Restore-AzureRmSqlDatabase](./Restore-AzureRmSqlDatabase.md). If the -PointInTime parameter is not specified, the database will be restored to the deletion time.
8090

81-
The second command restores the backup for $DeletedDatabase to the target SQL database named RestoredDatabase.
8291

83-
### Example 4: Geo-Restore a database
92+
### Example 5: Geo-Restore a database
8493
```
8594
PS C:\>$GeoBackup = Get-AzureRmSqlDatabaseGeoBackup -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"
8695
PS C:\> Restore-AzureRmSqlDatabase -FromGeoBackup -ResourceGroupName "TargetResourceGroup" -ServerName "TargetServer" -TargetDatabaseName "RestoredDatabase" -ResourceId $GeoBackup.ResourceID -Edition "Standard" -RequestedServiceObjectiveName "S2"

0 commit comments

Comments
 (0)