Note

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

Access to this page requires authorization. You can try .

Enable-AzSqlDatabaseSensitivityRecommendation

Module:
Az.Sql Module

Enables sensitivity recommendations on columns (recommendations are enabled by default on all columns) in the database.

Syntax

InputObjectParameterSet (Default)

Enable-AzSqlDatabaseSensitivityRecommendation
 -InputObject <SqlDatabaseSensitivityClassificationModel>
 [-PassThru]
 [-AsJob]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

ColumnParameterSet

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

DatabaseObjectColumnParameterSet

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

Description

The Enable-AzSqlDatabaseSensitivityRecommendation cmdlet enables sensitivity recommendations on columns in the database.

Examples

Example 1: Enable sensitivity recommendations on a given column in an Azure SQL Database.

Enable-AzSqlDatabaseSensitivityRecommendation -ResourceGroupName resourceGroup -ServerName server -DatabaseName database -SchemaName schema -TableName table -ColumnName column

Example 2: Enable sensitivity recommendations on a given column Azure SQL database using Piping.

Get-AzSqlDatabase -ResourceGroupName resourceGroup -ServerName server -DatabaseName database | Enable-AzSqlDatabaseSensitivityRecommendation -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

-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

-InputObject

An object representing a SQL Database Sensitivity Classification.

Parameter properties

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

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?