azure-pipelines-tasks: [BUG]: Release pipeline failed: TypeError: Cannot read property 'retrieveSecret' of undefined

Task name

AzureRmWebAppDeployment

Task version

4

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

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

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Microsoft Windows Server 2022

Task log

2023-05-25T11:11:02.7379732Z ##[section]Starting: Deploy Azure App Service
2023-05-25T11:11:02.7493590Z ==============================================================================
2023-05-25T11:11:02.7493760Z Task         : Azure App Service deploy
2023-05-25T11:11:02.7493834Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2023-05-25T11:11:02.7493980Z Version      : 4.223.0
2023-05-25T11:11:02.7494190Z Author       : Microsoft Corporation
2023-05-25T11:11:02.7494260Z Help         : https://aka.ms/azureappservicetroubleshooting
2023-05-25T11:11:02.7494345Z ==============================================================================
2023-05-25T11:11:03.4552408Z Got service connection details for Azure App Service:'REDACTED'
2023-05-25T11:11:04.4476933Z Trying to update App Service Application settings. Data: null
2023-05-25T11:11:04.6696370Z App Service Application settings are already present.
2023-05-25T11:11:04.8720666Z ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined
2023-05-25T11:11:05.5359522Z Successfully added release annotation to the Application Insight : REDACTED
2023-05-25T11:11:05.8413908Z Successfully updated deployment History at https://REDACTED.scm.azurewebsites.net/api/deployments/18371685013065537
2023-05-25T11:11:05.8492541Z App Service Application URL: http://REDACTED.azurewebsites.net
2023-05-25T11:11:05.8734075Z ##[section]Finishing: Deploy Azure App Service

Relevant log output

2023-05-25T11:11:02.7379732Z ##[section]Starting: Deploy Azure App Service
2023-05-25T11:11:02.7493590Z ==============================================================================
2023-05-25T11:11:02.7493760Z Task         : Azure App Service deploy
2023-05-25T11:11:02.7493834Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2023-05-25T11:11:02.7493980Z Version      : 4.223.0
2023-05-25T11:11:02.7494190Z Author       : Microsoft Corporation
2023-05-25T11:11:02.7494260Z Help         : https://aka.ms/azureappservicetroubleshooting
2023-05-25T11:11:02.7494345Z ==============================================================================
2023-05-25T11:11:03.4552408Z Got service connection details for Azure App Service:'REDACTED'
2023-05-25T11:11:04.4476933Z Trying to update App Service Application settings. Data: null
2023-05-25T11:11:04.6696370Z App Service Application settings are already present.
2023-05-25T11:11:04.8720666Z ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined
2023-05-25T11:11:05.5359522Z Successfully added release annotation to the Application Insight : REDACTED
2023-05-25T11:11:05.8413908Z Successfully updated deployment History at https://REDACTED.scm.azurewebsites.net/api/deployments/18371685013065537
2023-05-25T11:11:05.8492541Z App Service Application URL: http://REDACTED.azurewebsites.net
2023-05-25T11:11:05.8734075Z ##[section]Finishing: Deploy Azure App Service

Aditional info

2023-05-25T11:18:44.6828242Z ##[section]Starting: Initialize job
2023-05-25T11:18:44.6832503Z Agent name: 'Hosted Agent'
2023-05-25T11:18:44.6833082Z Agent machine name: 'WIN-1F880OPEIV1'
2023-05-25T11:18:44.6833359Z Current agent version: '3.220.2'
2023-05-25T11:18:44.6946241Z ##[group]Operating System
2023-05-25T11:18:44.6946670Z Microsoft Windows Server 2022
2023-05-25T11:18:44.6946886Z 10.0.20348
2023-05-25T11:18:44.6947073Z Datacenter
2023-05-25T11:18:44.6947251Z ##[endgroup]
2023-05-25T11:18:44.6947434Z ##[group]Runner Image
2023-05-25T11:18:44.6947662Z Image: windows-2022
2023-05-25T11:18:44.6947866Z Version: 20230508.3
2023-05-25T11:18:44.6948281Z Included Software: https://github.com/actions/runner-images/blob/win22/20230508.3/images/win/Windows2022-Readme.md
2023-05-25T11:18:44.6948821Z Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20230508.3
2023-05-25T11:18:44.6949161Z ##[endgroup]
2023-05-25T11:18:44.6949367Z ##[group]Runner Image Provisioner
2023-05-25T11:18:44.6949778Z 2.0.171.1
2023-05-25T11:18:44.6949981Z ##[endgroup]
2023-05-25T11:18:44.6951449Z Current image version: '20230508.3'
2023-05-25T11:18:44.6959674Z Agent running as: 'VssAdministrator'

I already tried to recreate the service connection, didn’t help…

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 15

Most upvoted comments

Rollback to 4.221.103 was successful and fixed the issue for now. Thank you for taking out 4.223.0 that introduced this issue. Please ensure you run your pipelines as a separate run for the agents to pick up the task changes.