Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: AzurePowerShellV4 Cannot read property 'retrieveSecret' of undefined #18364

Closed
1 of 4 tasks
bjorkholm-g opened this issue May 25, 2023 · 11 comments
Closed
1 of 4 tasks

Comments

@bjorkholm-g
Copy link

Task name

Azure App Service deploy

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-2019

Task log

2023-05-25T11:35:42.6291888Z ##[section]Starting: Deploy Build Artifacts - xxxxx
2023-05-25T11:35:42.6415169Z ==============================================================================
2023-05-25T11:35:42.6415321Z Task         : Azure App Service deploy
2023-05-25T11:35:42.6415396Z 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:35:42.6415558Z Version      : 4.223.0
2023-05-25T11:35:42.6415616Z Author       : Microsoft Corporation
2023-05-25T11:35:42.6415687Z Help         : https://aka.ms/azureappservicetroubleshooting
2023-05-25T11:35:42.6415772Z ==============================================================================
2023-05-25T11:35:43.5859405Z Got service connection details for Azure App Service:'xxxxx'
2023-05-25T11:35:46.4479910Z Trying to update App Service Application settings. Data: null
2023-05-25T11:35:46.7176014Z App Service Application settings are already present.
2023-05-25T11:35:47.0636252Z ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

Relevant log output

2023-05-25T11:35:47.0636252Z ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

Aditional info

Has worked flawlessly until today, when it stopped working all of a sudden.
@bjorkholm-g
Copy link
Author

This issue seems to be identical to issue: #18365

I'm also seeing that the previous version 4.221.103 was working, and since the update to 4.223.0 we're getting this issue.

@MortenMeisler
Copy link

Having the same error here, seems like version 4.223.0 has this issue

@rwwsysdev
Copy link

Same here - all my pipelines just stopped working today

@bjorkholm-g
Copy link
Author

Running pipeline in debug mode gives the following information:

App Service Application settings are already present.
##[debug]Processed: ##vso[telemetry.publish area=TaskDeploymentMethod;feature=AzureWebAppDeployment]{"deploymentMethod":"Web Deploy"}
##[debug]Performing the deployment of webapp.
##[debug][POST]https://management.azure.com/subscriptions/xxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.Web/sites/xxxxx/publishxml?api-version=2016-08-01
##[debug]Could not parse response: {}
##[debug]Response: undefined
##[debug]Correlation ID from ARM api call response : efc0f7cd-5237-48c0-b7ae-24fd7209ff9d
##[debug]Deployment Failed with Error: TypeError: Cannot read property 'retrieveSecret' of undefined
##[debug]task result: Failed
##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

@StefH
Copy link

StefH commented May 25, 2023

Same error here (on self hosted), reverting to 4.221.103 solved the problem.

@MortenMeisler
Copy link

Fixed with fixed version, but this is a workaround. Need to be able to subscribe to minor/revisions for security and if sdk changes.

- task: AzureRmWebAppDeployment@4.221.103

@bjorkholm-g
Copy link
Author

Fixed with fixed version, but this is a workaround. Need to be able to subscribe to minor/revisions for security and if sdk changes.

- task: AzureRmWebAppDeployment@4.221.103

Nice to know the workaround

@earthcoder
Copy link

earthcoder commented May 25, 2023

same error too, i noticed we had deployments working with 4.221.103 just before release, we dont use YAML so downgraded to version 3 seems to work ok for now as a workaround

[using MS hosted]

@GerardGroenewegen
Copy link

same issue here, ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

@bjorkholm-g
Copy link
Author

bjorkholm-g commented May 25, 2023

Similarly as in #18360
working now without pipeline changes due to rollback, after seeing comment #18360 (comment)

Thank you for the rollback!

@ghost
Copy link

ghost commented May 25, 2023

Duplicating with #18361 .

@ghost ghost closed this as completed May 25, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants