commands

^

Test-DbaDbDataMaskingConfig

Author Sander Stad (@sqlstad), sqlstad.nl
Availability Windows, Linux, macOS

 

Want to see the source code for this command? Check out Test-DbaDbDataMaskingConfig on GitHub.
Want to see the Bill Of Health for this command? Check out Test-DbaDbDataMaskingConfig.

Synopsis

Checks the masking configuration if it's valid

Description

When you're dealing with large masking configurations, things can get complicated and messy. This function will test for a range of rules and returns all the tables and columns that contain errors.

Syntax

Test-DbaDbDataMaskingConfig
    [-FilePath] <String>
    [-EnableException]
    [<CommonParameters>]

 

Examples

 

Example: 1
PS C:\> Test-DbaDbDataMaskingConfig -FilePath C:\temp\_datamasking\db1.json

Test the configuration file

Required Parameters

-FilePath

Path to the file to test

Alias
Required True
Pipeline false
Default Value

Optional Parameters

-EnableException

By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message. This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting. Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.

Alias
Required False
Pipeline false
Default Value False