Examples/07-Bulk-ImportTargetSets.ps1

<#
    Demonstrates bulk, CSV-driven target set creation. Target sets are
    documented by CyberArk as subject to change without notice - see
    docs/LIMITATIONS.md before relying on this in production automation.

    Expected CSV columns: target_set, secret_type
#>


$targetSets = Import-Csv -Path './targetsets.csv' | ForEach-Object {
    @{
        target_set  = $_.target_set
        secret_type = $_.secret_type
    }
}

New-SIATargetSet -Body $targetSets