Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy Website to Azure task Additional Arguments [closed]

Tags:

azure-devops

When creating a new release definition in VSTS using the Azure Website Deployment template you get two tasks added automatically.

One of those tasks is the "Deploy Website to Azure". In that task there is a setting called "Additional Arguments". What is this setting for? And what does the defaults do?

-connectionString @{"$(ConnectionStringName)"="Server=tcp:$(ServerName).database.windows.net,1433;Database=$(DatabaseName);User ID=$(AdministratorLogin)@$(ServerName);Password=$(AdministratorLoginPassword);Trusted_Connection=False;Encrypt=True;"}

I have checked the docs at https://www.visualstudio.com/docs/overview but I can't find a single paragraph where someone talks about this feature. Google hasn't been of any help either unfortunately. I would appreciate it if someone could explain.

enter image description here

like image 280
PussInBoots Avatar asked Mar 01 '26 15:03

PussInBoots


1 Answers

The Azure Web App Deployment task uses Publish-AzureWebsiteProject command to publish the web deployment package just as starian mentioned. With this command, you can specify the "-ConnectionString" argument to configure the connection strings in the deployment. The setting in the task is used to do this.

As soon as you create a release definition with "Azure Website Deployment", you will see this setting, and you will also see the related variables created if you select "Configure variables...": enter image description here You can then update the connection strings by update the value of these variables.

like image 178
Eddie Chen - MSFT Avatar answered Mar 04 '26 20:03

Eddie Chen - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!