ProxmoxCLI
ProxmoxCLI copied to clipboard
Connect-PveServer RestMethod failed
Building from git worked, had to import the psm1, worked too, but when trying to connect to pve everything broke.
here's the log: `PS C:\Users\STAG\Desktop\ProxmoxCLI-master> Connect-PveServer -Server "10.114.133.85" -BypassSSLCheck Invoke-RestMethod : {"data":null} Au caractère C:\Users\STAG\Desktop\ProxmoxCLI-master\output\ProxmoxCLI\ProxmoxCLI.psm1:937 : 21
- ... $response = Invoke-RestMethod -Method Post -Uri $Url -Body $Body
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebEx ception
- FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand AVERTISSEMENT : Not able to connect to server: 10.114.133.85\n Response: `
The response is empty leading me to think that this is a credential problem.
What format of username are you using(username, username@pam, or username@pve)?
Other issues could be that if the port was changed away from 8006 then this script won't work.