Creating your own PowerShell repository is, fortunately, not that hard. In order to create a simple testing environment with an Active Directory domain, a public key infrastructure, a SQL server and a web server, we are using the AutomatedLab lab framework and a machine running Hyper-V. The framework can also use Azure or VMware. This environment more closely resembles an actual enterprise infrastructure.
While setting up the gallery this way requires the Windows operating system and the full .NET Framework, other NuGet Galleries might have different prerequisites.
In order to build a lab environment to test in, the following script can be used. It will require the Windows Server 2016 ISO...