Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: vRA Connection Profiles #163

Open
chelnak opened this issue Dec 26, 2017 · 1 comment
Open

Feature: vRA Connection Profiles #163

chelnak opened this issue Dec 26, 2017 · 1 comment
Assignees
Milestone

Comments

@chelnak
Copy link
Contributor

chelnak commented Dec 26, 2017

@jonathanmedd Here's the first draft for connection profiles.

https://github.com/jakkulabs/PowervRA/tree/feature-profiles

Would be cool if you could review in the new year.

Examples:

# --- Create a profile
New-vRAConnectionProfile -Name "dev-lab" -Tenant "tenant01" -Server "server.vra.local" -Username "user01" -IgnoreCertRequirements -SslProtocol

# --- Retrieve a Profile
Get-vRAConnectionProfile -Name "dev-lab"

# --- Update a Profile
Set-vRAConnectionProfile -Name "dev-lab" -Tenant "Tenant02"

# --- Connect to vRA
Connect-vRAServer -ProfileName "dev-lab"

# --- Remove a Profile
Remove-vRAConnectionProfile -Name "dev-lab"

Notes

  1. Profiles do not store your password. You will be prompted to enter it when using Connect-vRAServer
  2. Get-vRAConnectionProfile's Name param & Connect-vRAServer's ProfileName param use dynamic parameters and support tab completion
  3. Tested on Core & Windows

Running locally

Run the following to use locally:

.\tools\build.ps1
Remove-Module -Name PowervRA -Force
Import-Module .\Release\PowervRA\PowervRA.psd1 -Force
@jonathanmedd
Copy link
Contributor

@chelnak Very nice - I like it a lot!

A couple of things:

  1. Is it possible to give it Credential object support for Connect-vRAServer ? - maybe be able to supply the name of a Credential variable to use (of course this would have to be made in the PS session before it could be used via the profile.)
  2. There was a minor typo in a comment in Connect-vRAServer line 117 - I've corrected it for you

@jonathanmedd jonathanmedd modified the milestones: v3.1.0, 3.1.2, Future Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants