Add Get/Set/Remove-DbaDbDataClassification commands#10301
Add Get/Set/Remove-DbaDbDataClassification commands#10301potatoqualitee merged 4 commits intodevelopmentfrom
Conversation
Implements data classification support for SQL Server table columns. Classification metadata is stored as extended properties (sys_information_type_id, sys_information_type_name, sys_sensitivity_label_id, sys_sensitivity_label_name), compatible with SSMS Data Discovery & Classification and Azure SQL Database. - Get-DbaDbDataClassification: retrieves classifications from any database - Set-DbaDbDataClassification: upserts classifications with built-in MIP GUID mappings - Remove-DbaDbDataClassification: removes all classification properties from columns Closes #6316 (do *DataClassification*) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
|
@claude Tests fail with: |
|
Claude finished @andreasjordan's task in 12m 28s —— View job Test Failure Investigation
Root CauseThe test failure was caused by using incorrect Why the specific error occurred:
Already FixedYou already resolved this in your two
All three test files now use No Further Changes NeededThe fix is correct. The tests should pass once run against a live SQL Server instance. |
|
The result has one element and is not an array, so testing for Count beeing 1 is not correct. Testing for not null is enought. |
|
Very nice, even takes care of the sql server minimum version, thank you 🙏🏼 |
Implements data classification support for SQL Server table columns (issue #6316).
Classification metadata is stored as extended properties compatible with SSMS Data Discovery & Classification and Azure SQL Database.
Get-DbaDbDataClassification: retrieves classifications from any databaseSet-DbaDbDataClassification: upserts classifications with built-in MIP GUID mappingsRemove-DbaDbDataClassification: removes all classification properties from columnsCloses #6316
Generated with Claude Code