Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

New-VesterConfig: Add Parameters #199

@midacts

Description

@midacts

To use parameters and get rid of all the Read-Host/interactively filling out the form

Expected Behavior

$Params = @{
'Datacenter' = 'DC1'
'Cluster' = 'C1'
'DatastoreCluster' = 'DSC1'
'VMHost' = 'VMH1'
'VM' = 'VM1'
'VDS' = 'VDS1'
'Verbose' = $True
}
New-VesterConfig @params

This instead of having to interactively fill it out.
This is just a rough draft.
Future state: We can have it so it dynamically pulls in the tests (with Get-VesterTest) based on the parameters sent
We should update some of the scope (i.e.: Network to VDS)

Here is a rough draft.

Current Behavior

You must interactively fill out the form

Possible Solution

rough draft

Context

When running New-VesterConfig

Your Environment

  • Vester module version used: Current
  • PowerCLI version: 6.5.4
  • Pester version: 4.0.2
  • Operating System and PowerShell version: Windows 2012 R2 with PS 5.1.14409.1012

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions