Files
PowerCLI-Example-Scripts/Modules/VMware.vSphere.SsoAdmin/README.md
2021-02-17 11:12:14 +02:00

1.3 KiB

PowerCLI Example module for managing vSphere SSO Admin

This module is combination of .NET binary libraries for accessing vSphere SSO Admin API and PowerShell advanced functions exposing cmdlet-like interface to the SSO Admin features.

The module supports PowerShell 5.1 and PowerShell 7.0 and above.

Install-Module VMware.vSphere.SsoAdmin

Using the source code

'/src' directory

This directory contains the .NET binaries sources code and Pester integration tests that cover both the binaries and the module advanced functions functionality.

Required build tools

  • PowerShell 7.0
  • dotnet sdk

Required test tools

  • PowerShell 7.0
  • PowerCLI 12.0
  • Pester 5.0.0

'/src/build.ps1' script

The script builds the binaries and publishes them to the 'net45' and 'netcoreapp3.1' directories of the module.

It has also the option to run module Pester tests. The optional parameters for VC server and credentials has to be specified in order the script to run the tests. Tests run in separate PowreShell process because PowerShell has to load the module binaries which are build output.

'/src/test/RunTests.ps1' script

This script can be used to run the tests