繁体   English   中英

Is it possible to do continuous deployment CI/CD of an Azure Function through a Linux Environment via Azure DevOps?

[英]Is it possible to do continuous deployment CI/CD of an Azure Function through a Linux Environment via Azure DevOps?

通过 Linux 环境在 Azure 中创建 function 时,它的功能似乎完全缺少 CI/CD,因为我看不到任何实际文件。 我的 VS 代码告诉我这个

Error: This plan does not support viewing files.

当我尝试通过 Azure 管道将文件部署到服务器时,除了Azure App Service Deploy之外,一切正常

这告诉我这一点。

2020-04-21T19:48:37.6676043Z ##[error]Failed to deploy web package to App Service.
2020-04-21T19:48:37.6689536Z ##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)

我确实让它在 windows 环境中直接通过 VS Code 工作,并且没有注意到任何这些问题。

您能否通过 Linux 确认这是不可能的,或者也许有我正在寻找的解决方案。

  • is it possible to do continuous deployment CI/CD of an Azure Function through a Linux Environment via Azure DevOps?

答案是肯定的。

To deploy a Azure Function, you should use Azure Function App task instead of Azure App Service Deploy task. 对于下面的例子。

steps:
- task: AzureFunctionApp@1
  inputs:
    azureSubscription: '<Azure service connection>'
    appType: functionAppLinux
    appName: '<Name of function app>'
    #Uncomment the next lines to deploy to a deployment slot
    #Note that deployment slots is not supported for Linux Dynamic SKU
    #deployToSlotOrASE: true
    #resourceGroupName: '<Resource Group Name>'
    #slotName: '<Slot name>'

有关详细示例,请查看此文档使用 Azure DevOps 持续交付

暂无
暂无

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

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