Make sure TC_CLOUD_TOKEN is set to your corresponding token value, download the agent and start it.
To use Testcontainers Cloud with Azure Pipelines you need to set TC_CLOUD_TOKEN to your corresponding service account token. You can generate the token in the Testcontainers Cloud dashboard. Then add the token to your pipeline by setting an variable in your pipeline settings and using it as an environment variable in for the task.
Next you need to configure your Azure Pipelines pipeline job to install and use Testcontainers Cloud. You can use the Testcontainers Cloud agent installation script and start it before running your tests.
You can use the following configuration step for your azure-pipelines.yml before the pipeline executes the build tool command to run the tests.
- task: Bash@3
script: 'sh -c "$(curl -fsSL https://get.testcontainers.cloud/bash)"'