You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve the issue, I received a suggestion to change the variable to $networkConfig = @{ 1 = "model=virtio,bridge=vmbr0,macaddr=$mac" } , but during debugging, I noticed that the value was not properly escaped in the URI.
The only way for $networkConfig to be accepted was to format it like this: $networkConfig = @{ 1 = "model%3Dvirtio%2Cbridge%3Dvmbr0%2Cmacaddr%3D$mac" }
Expected behavior
Accept <Hashtable> Format and maybe add a simple example to the documentation about the correct aproach.
Relevant log output
No response
Proxmox VE Version
8.1.3
Version (bug)
8.1.0
Version (working)
No response
On what operating system are you experiencing the issue?
Windows
Pull Request
I would like to do a Pull Request
The text was updated successfully, but these errors were encountered:
What happened?
I tried to pass a
<Hashtable>
argument to the Module, but I kept getting a response with a status code of 400. Here's the example:New-PveNodesQemu -Node $node -Vmid 105 -Memory 2048 -ScsiN $storageConfig -IdeN $bootableIso -NetN $networkConfig
To resolve the issue, I received a suggestion to change the variable to
$networkConfig = @{ 1 = "model=virtio,bridge=vmbr0,macaddr=$mac" }
, but during debugging, I noticed that the value was not properly escaped in the URI.The only way for
$networkConfig
to be accepted was to format it like this:$networkConfig = @{ 1 = "model%3Dvirtio%2Cbridge%3Dvmbr0%2Cmacaddr%3D$mac" }
Expected behavior
Accept
<Hashtable>
Format and maybe add a simple example to the documentation about the correct aproach.Relevant log output
No response
Proxmox VE Version
8.1.3
Version (bug)
8.1.0
Version (working)
No response
On what operating system are you experiencing the issue?
Windows
Pull Request
The text was updated successfully, but these errors were encountered: