I would suggest adding the Name field to the JSON schema. If the Import-VIRole function supported the pipeline, you could import multiple roles like below. You could also specify the Name explicitly when calling the function to override the name in the JSON file.
dir '*.json' | Import-VIRole -vCenter vcenter01.mydomain.com
I would suggest adding the Name field to the JSON schema. If the Import-VIRole function supported the pipeline, you could import multiple roles like below. You could also specify the Name explicitly when calling the function to override the name in the JSON file.