Düzenle

Aracılığıyla paylaş


Configure environmental tokens and variables for automatic deployment

Use Visual Studio Team Services (VSTS) variables in your BizTalk Server binding files.

Overview

In a VSTS environment, you can add variables, and set them to a value. For example, you can create a sendPortPath variable, and set its value to a physical folder on your BizTalk Server.

Within the BizTalk Server application binding file, the configurable variables can be anything within an XML tag, such as the receive location name, host, send port URI, and so on.

These variables are specific to your VSTS environment, and can be used to deploy the same application to multiple BizTalk Server environments.

We show you how to add the VSTS variable in your binding file, and how to create the variable within VSTS.

Add variables to the binding file

  1. Open the application binding file:

    Open the BizTalk Server application binding file in Visual Studio.

  2. Find the element you want to change:

    In the BizTalk Server application binding file, select the element you want to change in Visual Studio.

  3. Remove the populated value, and replace it with you variables: $(YourValue). For example, enter $(SendPort1):

    In the BizTalk Server application binding file, remove the existing variable, and change it to your send port variable.

  4. When done, save the binding file, and add it to your JSON build template (steps in Step 1: Add Application project & update .json template).

Create the variables in Azure DevOps

  1. In your Azure DevOps account, select Build and release, and select Releases.

  2. Select your Release definition, and select Variables:

    Select the release definition and variables in the application binding file in BizTalk Server.

  3. Select Add, and create the variable names and values:

    Add the variables in the BizTalk Server application binding file to Azure DevOps release definition.

  4. Save your changes. When the deploy is initiated, the values are added from the binding file.

See also

Configure automatic deployment with Visual Studio Team Services