Powershell Set-AzureRmSqlDatabaseVulnerabilityAssessmentRuleBaseline RUle VA1288 - Data Classification

John Couch 181 Reputation points
2022-01-07T18:49:11.917+00:00

Does anyone know how to force existing results to baseline? I have tried using the below configurations, but it doesn't work. I have tried passing TRUE, FALSE...e.tc. as values, doesn't work.

$ResourceGroup = ""
$Server = ""
$Database = ""

$Values = @('schemaname' ),@('tablename' ),@('columnname' )
Set-AzureRmSqlDatabaseVulnerabilityAssessmentRuleBaseline -ResourceGroupName $ResourceGroup -ServerName $Server -DatabaseName $Database -RuleId "VA1288" -BaselineResult $Values

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. John Couch 181 Reputation points
    2022-01-13T15:40:26.077+00:00

    After reaching out to Microsoft, it turns out the solution is. He said it was looking for a True or False value and it applies to all of the classifications currently.

    $ResourceGroup = ""
    $Server = ""
    $Database = ""

    $Values = @('1' )
    Set-AzureRmSqlDatabaseVulnerabilityAssessmentRuleBaseline -ResourceGroupName $ResourceGroup -ServerName $Server -DatabaseName $Database -RuleId "VA1288" -BaselineResult $Values


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.