Using vRA with VMC on AWS: Getting Started
vRealize Automation can be used to automate the deployment of workloads to a VMware Cloud on AWS Software-Defined Data Center (SDDC). Let’s learn how you can get started with using vRealize Automation with VMware Cloud on AWS.
Demo Product Versions
- vRA Cloud
- VMware Cloud on AWS (SDDC version 1.14v4)
VMC on AWS:
- SDDC deployed
- Access to the SDDC
- Deploy a vRA Cloud Proxy in the VMC on AWS SDDC.
- Add firewall rules for vRA Cloud Proxy.
- Configure vRA resources to consume VMC on AWS SDDC.
Demo / Example
Deploy a vRA Cloud Proxy
- In vRA Cloud Assembly, go to Infrastructure > Cloud Proxies. Click “NEW”.
- Click “DOWNLOAD OVA”. You can use the OVA file link as well, but from my experiences, downloading it locally has been more successful instead of using the link. Remember to rename the OVF template to
vCenter1_vmc_va.ovaafter it’s done downloading.
- Go to the VMC on AWS SDDC vSphere Client and deploy OVF template.
Note that since this is a VMC on AWS SDDC, you can only select the WorkloadDatastore.
Go back to vRA Cloud Assembly to copy the One-Time Key (OTK).
I’m going to leave all the networking properties blank and let DHCP assign an IP address to this VM.
- Once the vRA Cloud Proxy is deployed, power it on. The Cloud Proxy will receive an IP address on the network that you’ve chosen during the deployment. Note the IP address.
Create Firewall Rules for vRA Cloud Proxy
- Go to VMC on AWS UI > Networking & Security > Groups > Management Groups. Click “ADD GROUP” to create a new group for the vRA Cloud Proxy VM. Click “Set Members”.
- Type in the vRA Cloud Proxy VM IP address that you noted down from earlier.
- Go to Networking & Security > Gateway Firewall > Management Gateway. Add three rules like shown in the screenshot below. These rules allow communications between the vRA Cloud Proxy and vCenter, ESXi, and NSX respectively. Remember to publish the rules.
- Go to VMC on AWS UI > Networking & Security > Groups > Compute Groups. Create a new group for the vRA Cloud Proxy VM like you did in the Management Groups section.
- Go to Networking & Security > Gateway Firewall > Compute Gateway. Add a rule that allows vRA Cloud Proxy to send outbound traffic to the Internet, as shown in the screenshot below. Remember to publish the rule.
- Go to vRA Cloud Assembly > Infrastructure > Cloud Proxies. After some time, you will see the Cloud Proxy VM here. This can take several hours.
Configure vRA Cloud Assembly Resources
- Create a VMC on AWS cloud account.
- For the VMC API token, you can generate by clicking on your name > My Account > API Tokens > GENERATE TOKEN.
Give access to VMware Cloud on AWS. Remember to save the token in a safe place if you’d like to use it again in the future. You will not be able to see the token again after you see it generated the first time.
- Go to “Compute” and click “Cluster-1 / Compute-ResourcePool”. Give it a capability tag. This is the only place vRA is allowed to deploy workloads in a VMC on AWS SDDC.
- Create a cloud zone. Give it a capability tag; use the same one you’ve used for the Compute-ResourcePool.
- Click “Compute” and manually select “Cluster-1 / Compute-ResourcePool”.
- Create a network profile and give it a capability tag; use the same on you’ve been using. Configure the network profile appropriately depending on the use case.
- Create a storage profile and select “WorkloadDatastore”. Give a same capability tag here as well.
- Remember to create an image mapping and a flavor mapping.
vRA can now deploy to the VMC on AWS SDDC. Remember to use the capability tag that you’ve created when creating the template that deploys to the VMC on AWS SDDC!
Demo / Example Template YAML
Credit: Thanks to my colleague, Michael Patton, for working with me on this.