Skip to content

Commit

Permalink
{SQL} Fix #11023: Fix incorrect input type object reference (#20242)
Browse files Browse the repository at this point in the history
* {SQL} Fix #11023: Fix incorrect input type object reference

Fixes #11023

* Update Restore-AzSqlInstanceDatabase.md
  • Loading branch information
RakeshMohanMSFT authored Nov 25, 2022
1 parent 00a371c commit 537fc6a
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 @@ -109,7 +109,7 @@ The restored database is created as a new instance database.

### Example 1: Restore an instance database from a point in time
```powershell
Restore-AzSqlinstanceDatabase -Name "Database01" -InstanceName "managedInstance1" -ResourceGroupName "ResourceGroup01" -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
Restore-AzSqlInstanceDatabase -Name "Database01" -InstanceName "managedInstance1" -ResourceGroupName "ResourceGroup01" -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
```

The command restores the instance database Database01 from the specified point-in-time backup to the instance database named Database01_restored.
Expand All @@ -133,7 +133,7 @@ The second command restores the backup in $GeoBackup to the instance database na
### Example 4: Restore a deleted instance database from a point in time
```powershell
$deletedDatabase = Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName "ResourceGroup01" -InstanceName "managedInstance1" -DatabaseName "DB1"
Restore-AzSqlinstanceDatabase -FromPointInTimeBackup -Name $deletedDatabase.Name -InstanceName $deletedDatabase.ManagedInstanceName -ResourceGroupName $deletedDatabase.ResourceGroupName -DeletionDate $deletedDatabase.DeletionDate -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
Restore-AzSqlInstanceDatabase -FromPointInTimeBackup -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'.
Expand All @@ -142,7 +142,7 @@ The second command restores the the fetched database, from the specified point-i
### Example 5: Restore a deleted instance database from a point in time
```powershell
$deletedDatabase = Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName "ResourceGroup01" -InstanceName "managedInstance1" -DatabaseName "DB1"
Restore-AzSqlinstanceDatabase -FromPointInTimeBackup -InputObject $deletedDatabase[0] -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
Restore-AzSqlInstanceDatabase -FromPointInTimeBackup -InputObject $deletedDatabase[0] -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
```

The first command gets the deleted instance databases named 'DB1' on Instance 'managedInstance1'.
Expand Down Expand Up @@ -485,7 +485,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel
### Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel
### Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel
Expand Down

0 comments on commit 537fc6a

Please sign in to comment.