Skip to content

Commit

Permalink
Merge pull request #11279 from Styxxy/patch-1
Browse files Browse the repository at this point in the history
Restore-AzSqlInstanceDatabase - fix "an" -> "a"
  • Loading branch information
isra-fel authored Mar 12, 2020
2 parents 8b6126e + 8387d5f commit d6e6b33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Sql/Sql/help/Restore-AzSqlInstanceDatabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,22 @@ PS C:\> $GeoBackup | Restore-AzSqlInstanceDatabase -FromGeoBackup -TargetInstanc
The first command gets the geo-redundant backup for the database named Database01, and then stores it in the $GeoBackup variable.
The second command restores the backup in $GeoBackup to the instance database named Database01_restored.

### Example 4: Restore an deleted instance database from a point in time
### Example 4: Restore a deleted instance database from a point in time
```
PS C:\> $deletedDatabase = Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName "ResourceGroup01" -InstanceName "managedInstance1" -DatabaseName "DB1"
PS C:\> Restore-AzSqlinstanceDatabase -Name $deletedDatabase.Name -InstanceName $deletedDatabase.ManagedInstanceName -ResourceGroupName $deletedDatabase.ResourceGroupName -DeletionDate $deletedDatabase.DeletionDate -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
```

The first command gets the deleted instance databases named 'DB1' on Instance 'managedInstance1'
The first command gets the deleted instance databases named 'DB1' on Instance 'managedInstance1'.
The second command restores the the fetched database, from the specified point-in-time backup to the instance database named Database01_restored.

### Example 5: Restore an deleted instance database from a point in time
### Example 5: Restore a deleted instance database from a point in time
```
PS C:\> $deletedDatabase = Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName "ResourceGroup01" -InstanceName "managedInstance1" -DatabaseName "DB1"
PS C:\> Restore-AzSqlinstanceDatabase -InputObject $deletedDatabase[0] -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
```

The first command gets the deleted instance databases named 'DB1' on Instance 'managedInstance1'
The first command gets the deleted instance databases named 'DB1' on Instance 'managedInstance1'.
The second command restores the the fetched database, from the specified point-in-time backup to the instance database named Database01_restored using input object.

### Example 6: Restore a database from LTR backup.
Expand Down

0 comments on commit d6e6b33

Please sign in to comment.