简体   繁体   English

使用 Azure CLI 和 PublishSettings 将 Net Core 应用程序发布到 azurewebsites.net

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

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我正在尝试使用 Azure CLI 使用myapp.PublishSettings将.Net Core 应用程序发布到 Azure,但我找不到执行此操作的命令

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我认为它可能与az webapp update但我看不到在哪里可以输入我的 PublishSettings 阅读官方文档

PublishSettings is for when you want to publish directly from visual studio. PublishSettings 适用于您想要直接从 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.而 azure cli 是一般用途的命令行界面,这意味着它可用于从任何地方自动化您的 CI/CD 管道,而不必来自您的 PC。 So, it has got different parameters and supports everything that is supported by PublishSettings.因此,它具有不同的参数并支持 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 .例如,您可以使用az webapp up部署代码并更改 web 应用的应用设置,您可以使用az webapp config appsettings set Unfortunately, there isn't an option to pass publishsettings as parameter.不幸的是,没有将 publishsettings 作为参数传递的选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM