Redigera

Dela via


Complete-AzSqlInstanceDatabaseLogReplay

Completes Log Replay service for the given database.

Syntax

Complete-AzSqlInstanceDatabaseLogReplay
        -LastBackupName <String>
        [-Name] <String>
        [-InstanceName] <String>
        [-ResourceGroupName] <String>
        [-PassThru]
        [-DefaultProfile <IAzureContextContainer>]
        [-WhatIf]
        [-Confirm]
        [<CommonParameters>]
Complete-AzSqlInstanceDatabaseLogReplay
        -LastBackupName <String>
        [-PassThru]
        [-InputObject] <AzureSqlManagedDatabaseModel>
        [-DefaultProfile <IAzureContextContainer>]
        [-WhatIf]
        [-Confirm]
        [<CommonParameters>]

Description

The Complete-AzSqlInstanceDatabaseLogReplay cmdlet completes the Log Replay service on the given database.

Examples

Example 1

Complete-AzSqlInstanceDatabaseLogReplay -ResourceGroupName "ResourceGroup01" -InstanceName "ManagedInstance01" -Name "ManagedDatabaseName" -LastBackupName "last_backup.bak"

This command will complete Log Replay service for the given database after last backup gets restored.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

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

-InputObject

The instance database object.

Type:AzureSqlManagedDatabaseModel
Aliases:InstanceDatabase
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-InstanceName

The name of the instance.

Type:String
Aliases:ManagedInstanceName
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-LastBackupName

The name of the last backup file to restore.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the instance database.

Type:String
Aliases:InstanceDatabaseName
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Defines Whether return the sync group.

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

-ResourceGroupName

The name of the resource group.

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

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

AzureSqlManagedDatabaseModel