Return to site

Azure web app connection string deployment slot

broken image
broken image

Click the Add button on the Apply variables to Azure webapp task. Add the task to your release by clicking in your release on add a task and select the Utility category.Select the VSTS account where the task will be deployed to. Install the task in your VSTS account by navigating to the marketplace and click install.The table below shows some examples: TypeĬĬĬĬĬ The type of database should be added in the namingconvention as stated in the following table.The name of a variable for a connectionstring must start with connectionstring.The name of a variable for an appsetting must start with appsetting.

broken image

The following naming conventions rules are supported: The value of the VSTS variable is used for the value for the appsetting or in case of a connectionstring, the connectionstring. The task uses naming conventions in the VSTS variables to deploy appsettings and connectionstrings to an Azure WebApp. The code is open source and can be found on GitHub. The Task can be found in the marketplace and added to your VSTS account. The task can be linked to a web.config to validate if all AppSettings and ConnectionStrings in the web.config exists as VSTS variable. The Azure WebApp Configuration task reads VSTS variables and adds those as AppSettings and ConnectionStrings to an Azure WebApp.

broken image