Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Disable-AzureSqlDatabaseAuditing

Disable-AzureSqlDatabaseAuditing

microsoft.azure.commands.sql.dll

Synopsis

Disables an Azure Sql database's auditing.

Syntax

Disable-AzureSqlDatabaseAuditing [-DatabaseName] [-PassThru] [-ServerName] [-ResourceGroupName] [<CommonParameters>]

Detailed Description

The Disable-AzureSqlDatabaseAuditing cmdlet disables the auditing of an Azure Sql database. To use the cmdlet, use the ResourceGroupName, ServerName and DatabaseName parameters to identify the database.After the successful execution of the cmdlet, auditing of the database is disabled. If the command succeeds and the PassThru switch is on, it returns an object describing the current auditing setting used as well as the database identifiers (i.e., ResourceGroupName, ServerName and DatabaseName)

It is important to note that this cmdlet can be executed only in Azure Resource Manager mode. To switch to that mode run: Switch-AzureMode AzureResourceManager

Parameters

-DatabaseName <String>

Specifies the name of the database. Wildcards are not permitted.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Returns an object describing the auditing setting as well as the database's identifiers (i.e., ResourceGroupName, ServerName and DatabaseName) when the cmdlet succeeds. By default, this cmdlet does not return any output.

Aliases

None

Required?

false

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-ServerName <String>

Specifies the name of the database server holding the database. Wildcards are not permitted.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ResourceGroupName <String>

Specifies the name of the resource group of the database. Wildcards are not permitted.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type

None

Return Type

Microsoft.Azure.Commands.Sql.Security.Model.AuditingPolicy

Notes

Examples