vmware / powerclicore

PowerCLI Core Dockerfile
Apache License 2.0
97 stars 48 forks source link

Disable progress bar by default #54

Closed dmilov closed 3 years ago

dmilov commented 3 years ago

PowerShell progress bar has issues in the Photon OS base container reported in https://stackoverflow.com/questions/60065251/error-running-powercli-from-docker-image-on-gitlab-ci-cd/66795047#66795047 To work around the issues I disable the progress bar setting the ProgressPreference to SilentlyContinue in the PowerShell profile file.

Testing done:

Get-Vm wcp-esx3 | New-Snapshot -Name 'test'

Name                 Description                    PowerState
----                 -----------                    ----------
test                                                 PoweredOff