Closed gdbarron closed 4 months ago
The help for Set-VcConnector seems to not capture the -ID
parameter, but it's there for sure, and there's examples for it. I'm a bit confused between -Connector <String>
and the help text on it saying If not provided, the ID will be looked up by the name in the manifest
.
I was testing Set-VcConnector -ID <MyID> -Disable
and Set-VcConnector -ID <MyID> -Disable:false
If only ManifestPath is provided, and not ID/Connector, we need to know which connector to update. To do that, we use the connector name from ManifestPath and perform a lookup of existing connectors to get the ID. I've cleaned up and simplified the code a bit.
Tested both code-path's in final merge: updating via -ID and -ManifestPath. Works like I would expect.
New-VcConnector
,Get-VcConnector
,Set-VcConnector
, andRemove-VcConnector