5 Essential Tips for Maximizing Your Experience at Nutanix .NEXT for Bloggers
We have below script which is changing VM's project from default to some other project but after we execute invoke-webrequest, we notice that it will change Vm's "spec_version" to different number than it's in out $body variable. That's the reason why invoke-webrequest is given below error. Just before we run invoke-webrequest, we checked that vm's configuration metadata "spec_version" is same than in $body that we are trying invoke. So it seems that invoke-webrequest is somehow first changing the vm's spec_version in vm's configuration data (in our case to 18) and after that trying to invoke spec_version = 16 on top of that. But because the version should be same, it's failing. Same error occured when you are trying the same in REST Explorer - "vms". SCRIPT: Import-Module d:\temp\PSNutanixPrismCentral.psm1 Invoke-NutanixPrismCentralLogin -Username "username@xxx.local" -Uri "https://prismcentral.xxxx.local:9440" # Get non default projects $Projects = Get-NutanixPrismCentralProje
How to list Prism Central servers that belongs only to certain project. For example list only those Vm's that belongs to project "default". "Powerstate" expression name is "powerstate" but what is corresponding name of "project" which I should use to call "project" name? This script is showing vmname and powerstate (runned against Prism Central): Get-NTNXVM | Select @{Expression={$_.vmname};Label=”VMName”},@{Expression={$_.powerstate};Label=”PowerState”}
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.