For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tool Validation

Testing the RAS Custom Provider Script

The Custom Provider Test Framework is a PowerShell-based validation toolkit for testing RAS Custom Provider scripts outside the RAS Console. It helps script authors verify both low-level protocol methods and higher-level workflows such as template creation, maintenance mode operations, and host creation.

Purpose

The framework is intended to make development and troubleshooting easier by letting you send the same kinds of requests that RAS sends to a custom provider script. This allows you to validate script behavior before integrating it into a live RAS workflow. The tests cover connection handling, guest enumeration, guest control, template conversion, cloning, snapshot operations, and asynchronous task polling.

Framework structure

The test framework includes these core files:

  • CustomProvider.psd1 — main configuration file used to define how the provider script should be launched and which custom settings should be passed to it.

  • CustomProvider.psm1 — supporting module used by the test scripts.

  • Individual Test-*.ps1 scripts — each script exercises a specific provider method or higher-level workflow.

Last updated