Venafi / VenafiPS

Powershell module to fully automate your Venafi TLS Protect Datacenter and Cloud platforms!
https://venafips.readthedocs.io/
Apache License 2.0
18 stars 7 forks source link

Remove-TppCertificateAssociation -RemoveAll is broken #168

Closed wilddev65 closed 1 year ago

wilddev65 commented 1 year ago

Remove-TppCertificateAssociation -RemoveAll uses an old command for Get-TppAttribute that no longer works;

        'RemoveAll*' {
            $associatedApps = $Path |
            Get-TppAttribute -Attribute "Consumers" -EffectivePolicy -VenafiSession $VenafiSession |
            Select-Object -ExpandProperty Value

This should be like follows as there is no longer a switch for EffectivePolicy and the Select-Object cannot find a Value;

        'RemoveAll*' {
            $associatedApps = $Path |
            Get-TppAttribute -Attribute "Consumers" -VenafiSession $VenafiSession |
            Select-Object -ExpandProperty Consumers