PowervRA is a PowerShell module built on top of the services exposed by the vRealize Automation REST API.
Note: this module is a community project and is not in any way supported by VMware.
PowervRA 4.x and above is only compatible with vRA 8.x and the Cloud version. The API was completely changed after vRA 7.x and PowervRA has been re-written to support that going forward.
Version | Tested |
---|---|
8.0 | ✅ |
Cloud API: 2019-01-15 | ✅ |
For vRA versions prior to 8.0 / Cloud, the following are supported when using PowervRA release 3.x, currently 3.7.0. To install that version from the PowerShell Gallery use:
Install-Module -Name PowervRA -RequiredVersion 3.7.0 -Scope CurrentUser
Version | Tested |
---|---|
6.2.4* | ✅ |
7.0 | ✅ |
7.0.1 | ✅ |
7.1 | ✅ |
7.2 | ✅ |
7.3 | ✅ |
- Support for 6.2.4 is limited given API restrictions. Functions which don't support 6.2.4 will exit early and cleanly.
Edition | Version | Tested |
---|---|---|
PowerShell | 7, 6.2.4 | ✅ |
Windows PowerShell | 5.1 | ✅ |
Listed here are the breaking changes made which required the major version to be incremented
PowervRA Version | Breaking Change |
---|---|
4.x -> 5.x | Removed UserAttribute Parameter from Connect-vRAServer |
3.x -> 4.x | Re-written module to work with new vRA 8.x and Cloud API |
You can grab the latest version of the module from the PowerShell Gallery by running the following command:
Install-Module -Name PowervRA -Scope CurrentUser
For vRA 7.x and earlier compatibilty, be sure to use the latest 3.x version of PowervRA, currently 3.7.0:
Install-Module -Name PowervRA -RequiredVersion 3.7.0 -Scope CurrentUser
Once you have installed and imported PowervRA, use Connect-vRAServer to connect to your vRA instance:
vRA 8 On-Premises
Connect-vRAServer -Server vraappliance01.domain.local -Credential (Get-Credential)
If your instance has a self signed certificate you must use the IgnoreCertRequirements switch:
Connect-vRAServer -Server vraappliance01.domain.local -Credential (Get-Credential) -IgnoreCertRequirements
vRA Cloud
Connect-vRAServer -Server api.mgmt.cloud.vmware.com -APIToken 'CuIKrjQgI6htiyRgIyd0ZtQM91fqg6AQyQhwPFJYgzBsaIKxKcWHLAGk81kknulQ'
Connect-vRAServer -Server vra.corp.local -Tenant tenant01 -Credential (Get-Credential)
If your instance has a self signed certificate you must use the IgnoreCertRequirements switch:
Connect-vRAServer -Server vra.corp.local -Tenant tenant01 -Credential (Get-Credential) -IgnoreCertRequirements
When developing, use the provided build script and import the module that is inside the Release directory.
You do not have to manually edit src\PowervRA.psd1 when adding new functions
# --- Run the build script
.\tools\build.ps1
# --- Import release module
Import-Module .\Release\PowervRA\PowervRA.psd1 -Force
The default build will run some quick tests to catch any errors before you push your changes.
Documentation for each command can be viewed with Get-Help, e.g.:
Get-Help Get-vRACloudAccount
or online here.