Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish Net Core app to azurewebsites.net using Azure CLI with PublishSettings

Tags:

I am trying to publish a .Net Core app to Azure with myapp.PublishSettings using Azure CLI, but I can't find the command to do this

I think that it may be with az webapp update but I don't see where can I enter my PublishSettings reading the official docs

like image 860
LuisEnMarroquin Avatar asked Apr 18 '20 23:04

LuisEnMarroquin


1 Answers

PublishSettings is for when you want to publish directly from visual studio. Whereas azure cli is command line interface for general use meaning it can be used to automate your CI/CD pipeline from any where not necessarily from your PC. So, it has got different parameters and supports everything that is supported by PublishSettings. For example you can use az webapp up to deploy code and to change app settings of the web app you can use az webapp config appsettings set. Unfortunately, there isn't an option to pass publishsettings as parameter.

like image 103
rohit Avatar answered Nov 14 '22 21:11

rohit