Piping not working with Set-DatabricksPermissions
The command below is not working for setting the permissions on the cluster using piping.
$configObj | Add-DatabricksCluster | Pin-DatabricksCluster | Set-DatabricksPermissions -AccessControlList $acl
I had to do the following to make it work:
$clusterID = Add-DatabricksCluster -ClusterObject $configObj Pin-DatabricksCluster -ClusterID $clusterID.cluster_id Set-DatabricksPermissions -ClusterID $clusterID.cluster_id -AccessControlList $acl
The problem is that Pin-DatabricksCluster does not return any value(s) to the pipe so Set-DatabricksPermissions cannot work properly
I added this with 1.9.9.9 so it should work now
does this work now? can we close this issue?
My apologies for the delay in testing this.
Yes, I just tested by changing my code to use piping and it is definitely working.