powershell-module-for-vmware-cloud-foundation icon indicating copy to clipboard operation
powershell-module-for-vmware-cloud-foundation copied to clipboard

Set-VCFCluster does not require the JSON parameter, but fails when it is not provided due to attempted validation of the JSON

Open feardamhan opened this issue 9 months ago • 0 comments

Code of Conduct

  • [X] I have read and agree to the project's Code of Conduct.

PowerVCF

2.4.1.1000

VMware Cloud Foundation

5.1

PowerShell

7.4.1

Guest Operating System

Windows 2019

Environment Details

No response

Description

Set-VCFCluster does not require the JSON parameter, but fails when it is not provided due to attempted validation of the JSON May effect other cmdlets

Expected Behavior

JSON validation should be bypassed if json file not supplied

Actual Behavior

Exception Message: Cannot validate argument on parameter 'json'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

Steps to Reproduce

Set-VCFCluster -id $clusterID -markforDeletion

Log Fragments and Files

No response

Screenshots

No response

Additional Context

No response

feardamhan avatar May 03 '24 09:05 feardamhan