You create a virtual machine folder and resource pools on the VI workload domain vCenter Server to group vRealize Automation-managed workloads.
UI Procedure
- Log in to vCenter Server at https://<vcenter_server_fqdn>/ui as administrator@vsphere.local.
Create a folder for the vRealize Automation-provisioned workload virtual machines.
In the VMs and templates inventory, expand the VI workload domain vCenter Server tree.
Right-click the VI workload domain data center and select
.In the New folder dialog box, enter the folder name and click OK.
Create a resource pool for the vRealize Automation-provisioned workload virtual machines.
In the Hosts and clusters inventory, expand the VI workload domain vCenter Server tree.
Right-click the default cluster for the VI workload domain and select New resource pool.
In the New resource pool dialog box, enter the resource pool name and click OK.
Repeat these steps for each VI workload domain vCenter Server in each VMware Cloud Foundation instance.
Terraform Procedure
Navigate to the Terraform example that you cloned from the repository.
cd terraform-examples/vsphere/vsphere-folders-resource-pool-workload
-
Duplicate the terraform.tfvars.example file to terraform.tfvars in the directory.
copy terraform.tfvars.example terraform.tfvars
Open the terraform.tfvars file, update the variables according to your values in the VMware Cloud Foundation Planning and Preparation Workbook, and save the file.
-
Initialize the current directory and the required Terraform providers.
terraform init
-
Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
-
Apply the Terraform plan.
terraform apply tfplan
Repeat these steps for each VI workload domain vCenter Server in each VMware Cloud Foundation instance by duplicating the originating directory contents from the example to a different working directory.
PowerShell Procedure
-
Start Windows PowerShell.
-
Replace the values in the sample code with values from your VMware Cloud Foundation Planning and Preparation Workbook and run the commands in the PowerShell console.
$sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io" $sddcManagerUser = "administrator@vsphere.local" $sddcManagerPass = "VMw@re1!" $sddcDomainName = "sfo-w01" $vmFolder = "sfo-w01-fd-workload" $resourcePoolName = "sfo-w01-cl01-rp-workload"
-
Perform the configuration by running the command in the PowerShell console.
Add-VMFolder -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -folderName $vmFolder Add-ResourcePool -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -resourcePoolName $resourcePoolName