New-NTNXProtectionDomain prints "protectionDomainName cannot be null" when I run it without any parameters, but the parameter protectionDomainName doesn't seem to exist.
New-NTNXProtectionDomainprotectionDomainName cannot be null
The help doesn't show how to use the Cmdlet:
Get-Help New-NTNXProtectionDomain -fullNAMENew-NTNXProtectionDomainSYNOPSISAdd a Protection Domain.SYNTAXDESCRIPTIONPARAMETERSThis cmdlet supports the common parameters: Verbose, Debug,ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). INPUTSOUTPUTSRELATED LINKS
Intellisense gives some more info, but nothing that resembles "protectionDomainName":
Best answer by cbrown
I just ran some tests in the lab here, and it seems that the cmdlet uses the -Input flag for protectionDomainName. It also doesn't accept the PD Name without the flag, which it should. Here's what I ran in my lab:
$n = Get-NutanixClusterNew-NTNXProtectionDomain -Input testDomain -NutanixClusters $n
New-NTNXProtectionDomain -Input testDomain2 -Servers [CVM_IP]
Now we can see the PDs created:
Get-NTNXProtectionDomain -name testDomain
name : testDomain
Get-NTNXProtectionDomain -name testDomain2
name : testDomain2
I'm going to file a bug on this, the flag should be more intuative (having a -name flag would be much better), but in the mean time -input should work.