azure-pipelines-tasks: [BUG]: Cannot deploy to function app through DevOps. Can't find loc string for key: KuduStackTraceURL

Task name

No response

Task version

No response

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

Azure DevOps Server (Please specify exact version in the textbox below)

Azure DevOps Server Version (if applicable)

No response

Operation system

Azure function app v4

Task log

2023-10-06T15:18:29.3695478Z Got service connection details for Azure App Service:'fa-pmtsvc-rtpreceive-dev-eastus'
2023-10-06T15:18:36.7380639Z NOTE: Function app is VNet integrated.
2023-10-06T15:19:00.2600842Z Updating App Service Application settings. Data: {"WEBSITE_RUN_FROM_PACKAGE":"1"}
2023-10-06T15:19:00.2601240Z Deleting App Service Application settings. Data: ["WEBSITE_RUN_FROM_ZIP"]
2023-10-06T15:19:00.2602137Z App Service Application settings are already present.
2023-10-06T15:19:03.9413211Z Validating deployment package for functions app before Zip Deploy
2023-10-06T15:19:18.1769632Z Package deployment using ZIP Deploy initiated.
2023-10-06T15:49:21.7950285Z ##[error]Failed to deploy web package to App Service.
2023-10-06T15:49:21.7963263Z ##[warning]Can't find loc string for key: KuduStackTraceURL
2023-10-06T15:49:21.7965704Z ##[error]KuduStackTraceURL https://$appname:***@appname/api/vfs/LogFiles/kudu/trace
2023-10-06T15:49:21.7967528Z ##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
2023-10-06T15:49:22.4655150Z Successfully added release annotation to the Application Insight : appinsightsresourceName
2023-10-06T15:49:23.3354593Z App Service Application URL: https://app name
2023-10-06T15:49:23.3529870Z ##[section]Finishing: Deploy Azure Function App

Relevant log output

2023-10-06T15:18:29.3695478Z Got service connection details for Azure App Service:'fa-pmtsvc-rtpreceive-dev-eastus'
2023-10-06T15:18:36.7380639Z NOTE: Function app is VNet integrated.
2023-10-06T15:19:00.2600842Z Updating App Service Application settings. Data: {"WEBSITE_RUN_FROM_PACKAGE":"1"}
2023-10-06T15:19:00.2601240Z Deleting App Service Application settings. Data: ["WEBSITE_RUN_FROM_ZIP"]
2023-10-06T15:19:00.2602137Z App Service Application settings are already present.
2023-10-06T15:19:03.9413211Z Validating deployment package for functions app before Zip Deploy
2023-10-06T15:19:18.1769632Z Package deployment using ZIP Deploy initiated.
2023-10-06T15:49:21.7950285Z ##[error]Failed to deploy web package to App Service.
2023-10-06T15:49:21.7963263Z ##[warning]Can't find loc string for key: KuduStackTraceURL
2023-10-06T15:49:21.7965704Z ##[error]KuduStackTraceURL https://$appname:***@appname/api/vfs/LogFiles/kudu/trace
2023-10-06T15:49:21.7967528Z ##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
2023-10-06T15:49:22.4655150Z Successfully added release annotation to the Application Insight : appinsightsresourceName
2023-10-06T15:49:23.3354593Z App Service Application URL: https://app name
2023-10-06T15:49:23.3529870Z ##[section]Finishing: Deploy Azure Function App

Aditional info

No response

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 6
  • Comments: 32 (7 by maintainers)

Most upvoted comments

We are also experiencing the same issue with error “Can’t find loc string for key: KuduStackTraceURL” when attempting to deploy a function app via YAML pipeline. We are using “AzureFunctionApp@2”.

Update:

This was a function app on a Flex plan. The following changes worked to allow the pipeline to deploy:

- task: AzureFunctionApp@2
      inputs:
        azureSubscription: ###
        appType: 'functionAppLinux' //Changed to functionAppLinux
        appName: ###
        package: ###
        deploymentMethod: 'auto'
        isFlexConsumption: true //Added

I’ve just started seeing this problem with deployments this afternoon, been doing multiple deployments every day up to now with no issues.

We are also experiencing the same issue with error “Can’t find loc string for key: KuduStackTraceURL” when attempting to deploy a function app via YAML pipeline. We are using “AzureFunctionApp@2”.

Update:

This was a function app on a Flex plan. The following changes worked to allow the pipeline to deploy:

- task: AzureFunctionApp@2
      inputs:
        azureSubscription: ###
        appType: 'functionAppLinux' //Changed to functionAppLinux
        appName: ###
        package: ###
        deploymentMethod: 'auto'
        isFlexConsumption: true //Added

Confirming this worked for me too, thanks!

We have the same issue for an Azure Function app in a private network. We are deploying via our custom Windows agent.

Any fixes for the above error… 2023-10-06T15:18:29.3695478Z Got service connection details for Azure App Service:‘fa-pmtsvc-rtpreceive-dev-eastus’ 2023-10-06T15:18:36.7380639Z NOTE: Function app is VNet integrated. 2023-10-06T15:19:00.2600842Z Updating App Service Application settings. Data: {“WEBSITE_RUN_FROM_PACKAGE”:“1”} 2023-10-06T15:19:00.2601240Z Deleting App Service Application settings. Data: [“WEBSITE_RUN_FROM_ZIP”] 2023-10-06T15:19:00.2602137Z App Service Application settings are already present. 2023-10-06T15:19:03.9413211Z Validating deployment package for functions app before Zip Deploy 2023-10-06T15:19:18.1769632Z Package deployment using ZIP Deploy initiated. 2023-10-06T15:49:21.7950285Z ##[error]Failed to deploy web package to App Service. 2023-10-06T15:49:21.7963263Z ##[warning]Can’t find loc string for key: KuduStackTraceURL 2023-10-06T15:49:21.7965704Z ##[error]KuduStackTraceURL https://$appname:***@appname/api/vfs/LogFiles/kudu/trace 2023-10-06T15:49:21.7967528Z ##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 500)

while runing realease build pipeline I am getting this error …Any help will be appreciable