Coder Social home page Coder Social logo

powervra's Introduction

Process PS Module

Welcome to PowervRA

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.

Compatibility

vRealize Automation

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.

PowerShell Editions

Edition Version Tested
PowerShell 7, 6.2.4
Windows PowerShell 5.1

Breaking Changes

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

Download

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

Quick Start

PowervRA 4.x, 5.x

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'

PowervRA 3.x

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

Running Locally

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

Documentation for each command can be viewed with Get-Help, e.g.:

Get-Help Get-vRACloudAccount

or online here.

powervra's People

Contributors

chelnak avatar jonathanmedd avatar stevio54 avatar jmedd-ats avatar sammcgeown avatar mpuckett159 avatar kclinden avatar otabut avatar blackcatdeployment avatar thitho007 avatar basvinken avatar skunkie avatar martin9700 avatar the-mentor avatar jimpallomeni avatar mponton avatar shorbachuk avatar scarnes54 avatar destroy-everything avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.