I have set of unit test case and they are invoking a set of PowerShell commands. everything works fine on local machine but once pushed in to Azure pipelines, I get error as "New-CosmosDbContext is not recognized. Please check the spelling". It seems the Import command is not working when pushed to azure devops pipeline. Any idea as how we can fix this?
The lines what I am using is :
Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
Start-CosmosDbEmulator
Get-CosmosDbEmulatorStatus
$cosmosDbContext = New-CosmosDbContext -Emulator