I'm retriving a VM utilization details in a variable($report)which is in JSON format.
$report looks something like:
{
{
"VM_Name" : "VMtest1"
"Datastore":"KJo91"
},
{
"VM_Name" : "VMtest2"
"Datastore":"KJo91"
},so on....
}
Now I need to import this into MongoDB via powershell. Is it possible?Or should I save it as a Jsonfile and import? For both cases required a powershell command.
Thank you in advance.