azure-pipelines-tasks: [BUG]: Azure App service deploy - error

Task name

AzureRmWebAppDeployment@4

Task version

4.223.0

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

Windows 10

Task log

##[debug]Processed: ##vso[telemetry.publish area=TaskDeploymentMethod;feature=AzureWebAppDeployment]{"deploymentMethod":"Web Deploy"}
##[debug]Performing the deployment of webapp.
##[debug]Could not parse response: {}
##[debug]Response: undefined
##[debug]Correlation ID from ARM api call response : 82066c44-201c-4e93-ae9c-2c3e2afdc877
##[debug]Deployment Failed with Error: TypeError: Cannot read property 'retrieveSecret' of undefined
##[debug]task result: Failed
##[error]TypeError: Cannot read property 'retrieveSecret' of undefined
##[debug]Processed: ##vso[task.issue type=error;]TypeError: Cannot read property 'retrieveSecret' of undefined
##[debug]Processed: ##vso[task.complete result=Failed;]TypeError: Cannot read property 'retrieveSecret' of undefined
##[debug][GET]https://management.azure.com/subscriptions/c0a9f8c5-ba51-48e8-b1b8-a9e36cef6220/providers/microsoft.insights/components?$filter=InstrumentationKey eq '***'&api-version=2015-05-01
##[debug]Correlation ID from ARM api call response : 47b3891c-e358-4921-b000-d40e01dcd592
##[debug]Unable to find Application Insights resource with Instrumentation key ***. Skipping adding release annotation.
##[debug]Azure_App_Service_Deploy_PackageArtifactAlias=
##[debug]release.releaseId=undefined
##[debug]release.releaseName=undefined

Relevant log output

##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

Aditional info

Hello,

even today morning, when using versiom 4.221.103, the task was finishing succesfully. But few minutes ago, our pipelines started failing, with the error I added above. The visible version for the task is 4.223.0

Thanks for the support.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 3
  • Comments: 22

Most upvoted comments

Thanks for reporting and sorry for inconvenience. We’ve applied a fix, it will arrive within a very short time.

Don’t forget to review parameters if you downgrade your version

image solution, just switch to version 3

New fix version 4.223.1 is on the way for the still affected regions, it will arrive within an hour.

Working for us now, thank you.