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-AzureSqlServerAuditing

Disable-AzureSqlServerAuditing

microsoft.azure.commands.sql.dll

Synopsis

Disables auditing of all the databases that rely on the auditing setting of the given database server.

Syntax

Disable-AzureSqlServerAuditing [-PassThru] [-ServerName] [-ResourceGroupName] [<CommonParameters>]

Detailed Description

The Disable-AzureSqlServerAuditing cmdlet disables auditing of all the databases that rely on the auditing setting of the given database server. To use the cmdlet, use the ResourceGroupName and ServerName parameters to identify the database server.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 server identifiers (i.e., ResourceGroupName and ServerName)

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

-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. 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 server. 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