Hello. We're trying to use CLI commands in Powershell to create a datastore and LUN the same way as we do in the VSC plugin in the vSphere client. Here is the command (specific names have been changed for security): "Add-VscDatastore -storageSystemId 701429001234 -datastoreName DS_testPS -hostName samplehostname -datastoreProtocol VMFS -containerName samplevolume -isThin $true -datastoresize 5 -svm svmname". Here is the output we're receiving:
PS C:\Users\Administrator> Add-VscDatastore -storageSystemId 701429001234 -datastoreName DS_testPS -hostName samplehostname -datastoreProtocol VMFS -containerName samplevolume -isThin $true -datastoresize 5 -blockSize 1 - svm svmname Add-VscDatastore : A parameter cannot be found that matches parameter name 'blockSize'. At line:1 char:200 + ... atastoresize 5 -blockSize 1 -svm svmname+ ~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Add-VscDatastore], ParameterBindin gException + FullyQualifiedErrorId : NamedParameterNotFound,VSC.AddDatastore PS C:\Users\Administrator> Add-VscDatastore -storageSystemId 701429001234 -datastoreName DS_testPS -hostName samplehostname datastoreProtocol VMFS -containerName samplevolume -isThin $true -datastoresize 5 -svm svmname Add-VscDatastore : Objectreference not set to an instance of an object. At line:1 char:1 + Add-VscDatastore -storageSystemId 701429001234 -datastoreName DS_testPS -hostNam ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-VscDatastore], NullReferenceException + FullyQualifiedErrorId : System.NullReferenceException,VSC.AddDatastore".
Any assistance would be appreciated.