Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Remove-AzSqlDatabaseSensitivityClassification

Module:
Az.Sql Module

Removes the information types and sensitivity labels of columns in the database.

Syntax

ClassificationObjectParameterSet (Default)

Remove-AzSqlDatabaseSensitivityClassification
 -ClassificationObject <SqlDatabaseSensitivityClassificationModel>
 [-PassThru]
 [-AsJob]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

ColumnParameterSet

Remove-AzSqlDatabaseSensitivityClassification
 [-ResourceGroupName] <String>
 [-ServerName] <String>
 [-DatabaseName] <String>
 -SchemaName <String>
 -TableName <String>
 -ColumnName <String>
 [-PassThru]
 [-AsJob]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

DatabaseObjectColumnParameterSet

Remove-AzSqlDatabaseSensitivityClassification
 -DatabaseObject <AzureSqlDatabaseModel>
 -SchemaName <String>
 -TableName <String>
 -ColumnName <String>
 [-PassThru]
 [-AsJob]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

The Remove-AzSqlDatabaseSensitivityClassification cmdlet removes the information types and sensitivity labels of columns in the database.

Examples

Example 1: Remove information type and sensitivity label of a column in an Azure SQL Database.

Remove-AzSqlDatabaseSensitivityClassification -ResourceGroupName resourceGroup -ServerName server -DatabaseName database -SchemaName schema -TableName table -ColumnName column

Example 2: Remove current information types and sensitivity labels of columns in an Azure SQL database using Piping.

Get-AzSqlDatabaseSensitivityClassification -ResourceGroupName resourceGroup -ServerName server -DatabaseName database | Remove-AzSqlDatabaseSensitivityClassification

Example 3: Remove information type and sensitivity label of a column in an Azure SQL database using Piping.

Get-AzSqlDatabase -ResourceGroupName resourceGroup -ServerName server -DatabaseName database | Remove-AzSqlDatabaseSensitivityClassification -SchemaName schema -TableName table -ColumnName column

Parameters

-AsJob

Run cmdlet in the background

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ClassificationObject

An object representing a SQL Database Sensitivity Classification.

Parameter properties

Type:SqlDatabaseSensitivityClassificationModel
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ColumnName

Name of column.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DatabaseName

The name of the Azure SQL database.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-DatabaseObject

The SQL database object.

Parameter properties

Type:AzureSqlDatabaseModel
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-PassThru

Specifies whether to output the sensitivity classification model at end of cmdlet execution

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceGroupName

The name of the resource group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SchemaName

Name of schema.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ServerName

SQL server name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-TableName

Name of table.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

SqlDatabaseSensitivityClassificationModel

Outputs

Boolean

Related Links


Feedback

Was this page helpful?