< Back

Stop-AzureRmSqlDatabaseActivity

Tue Jan 29, 2019 10:10 pm

NAME Stop-AzureRmSqlDatabaseActivity



SYNOPSIS

Cancels the asynchronous updates operation on the database.





SYNTAX

Stop-AzureRmSqlDatabaseActivity [-ResourceGroupName] <String> [-ServerName] <String> -DatabaseName <String> [-DefaultProfile

<IAzureContextContainer>] [-ElasticPoolName <String>] [-OperationId <Guid>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Stop-AzureRmSqlDatabaseActivity cmdlet cancels the asynchronous updates operation on the database.





PARAMETERS

-DatabaseName <String>

Specifies the name of the database for which this cmdlet gets status.



Required? true

Position? named

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



-ElasticPoolName <String>

The name of the Azure SQL Elastic Pool.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-OperationId <Guid>

Specifies the ID of the operation that this cmdlet gets.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group to which the 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 Microsoft SQL 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

Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel







NOTES









Example 1: Cancel the asynchronous updates operation on the database



PS C:\\>Stop-AzureRmSqlDatabaseActivity -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" -OperationId

af97005d-9243-4f8a-844e-402d1cc855f5



OperationId : af97005d-9243-4f8a-844e-402d1cc855f5

ServerName : Server01

DatabaseName : Database01

State : CANCELLED

Operation : UpdateLogicalDatabase

ErrorCode :

ErrorMessage :

ErrorSeverity :

StartTime : 10/15/2017 02:49:42 PM

EndTime : 10/15/2017 02:49:43 PM

PercentComplete :

Properties : Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel+DatabaseState



This command cancels the asynchronous updates operation on the database.







RELATED LINKS

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