This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Add DirectLineClientTests to FunctionalTest project using ARM #1721
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Add new DirectLineClientTests to FunctionalTests project to test sending a message to an echo bot deployed in Azure with ARM Templates and check its response.

Steps to configure the Pipeline:
1- Define three environment variables: AppId, AppSecret and BotName and mark the first two as Secrets.


2- Add a PowerShell Script Task to download the .zip that contains the latest version of the EchoBot Sample.
The script is:
3- Configure one Azure CLI Task to:
The output goes into a json file from where we will recover the channel key later.
The script is:
4- Add a new PowerShell Script Task to read the json file generated in the previous step and get the secret key to connect to the bot. It also sets an environment variable with this value.
The script is:
5- After the Tests run, add a new Azure CLI Task to delete the resource group we've created in the first step.

The script is:
We strongly recommend setting this task to run Even if a previous task has failed, even if the build was canceled. With this setting, we will assure that the resources will be deleted from Azure even if the build fails at any step.
After running these steps, the Bot is deployed, tested and deleted.

