A PowerShell module that wraps some features of testcontainers-dotnet
, allowing to use these features as PowerShell commandlets.
Add-Type -Path "$PSScriptRoot\src\TestcontainersPwsh.Kusto\bin\Debug\net8.0\Testcontainers.Kusto.dll"
$container = (New-Object -TypeName Testcontainers.Kusto.KustoBuilder).Build()
$container.StartAsync().GetAwaiter().GetResult();
Invoke-WebRequest -Uri $container.GetConnectionString() -Method Get
$container.StopAsync().GetAwaiter().GetResult();
$container.DisposeAsync().AsTask().Wait();
Import-Module "$PSScriptRoot\src\TestcontainersPwsh.Kusto\TestcontainersPwsh.Kusto.psd1"
$container = New-KustoContainer
$container | Start-Container
Invoke-WebRequest -Uri $container.GetConnectionString() -Method Get
$container | Stop-Container
$container | Remove-Container
This project uses the testcontainers-dotnet library, which is licensed under the MIT License.