Cmdlet Reference¶
This document covers the custom PowerShell functions provided by the core modules.
ConfigManager Module¶
Export-SolutionConfig¶
Generates a solution-specific JSON configuration file from the master environment.
Parameters
| Parameter | Type | Description |
|---|---|---|
-Solution |
string | Solution name: vmfleet, fio, iperf, hammerdb, stress-ng |
-MasterConfigPath |
string | Path to master-environment.yml (default: config/variables/master-environment.yml) |
-OutputPath |
string | Output path for generated JSON (default: config/variables/solutions/{solution}.json) |
Get-ConfigValue¶
Retrieves a configuration value with override chain support.
Logger Module¶
Write-Log¶
Writes a structured log entry to the component log file.
Severity Levels
DEBUG— Detailed diagnostic informationINFO— General operational messagesWARNING— Potential issues that don't stop executionERROR— Failures that affect the current operationCRITICAL— Fatal errors requiring immediate attention
Start-LogSession / Stop-LogSession¶
Manages log session lifecycle with correlation IDs.
$sessionId = Start-LogSession -Component "VMFleet" -RunId "run-001"
# ... operations ...
Stop-LogSession -SessionId $sessionId
StateManager Module¶
New-RunState¶
Creates a new run state file for tracking automation progress.
Update-RunPhase¶
Updates the status of a specific phase in the run state.
Phase Statuses
pending— Not yet startedrunning— Currently executingcompleted— Successfully finishedfailed— Encountered an errorskipped— Intentionally bypassed
Test-PhaseCompleted¶
Checks if a phase has already completed (for resume support).
CredentialManager Module¶
Get-ManagedCredential¶
Retrieves credentials from the configured source.
Credential Sources
KeyVault— Retrieve from Azure Key VaultInteractive— Prompt user withGet-CredentialParameter— Expect credential passed as parameter
MonitoringManager Module¶
Start-MetricCollection¶
Begins background metric collection for the specified categories.
Start-MetricCollection [-Categories <string[]>] [-SampleIntervalSeconds <int>] [-OutputPath <string>]
Stop-MetricCollection¶
Stops background metric collection and finalizes output files.
ReportGenerator Module¶
New-TestReport¶
Generates test reports in the specified formats.