Coder Social home page Coder Social logo

Comments (11)

shanoor avatar shanoor commented on May 28, 2024 7

Meanwhile, we can use the previous version of the task by using task: [email protected].

from azure-pipelines-tasks.

LeftTwixWand avatar LeftTwixWand commented on May 28, 2024 1

Hello @ponbac, @JulianCodespotiMYOB and @jonmikeli
Thank you for reaching me.

As @ponbac noticed, my changes do not work properly. But the indexOf issue occurs in the error-handling part of the code.
Which means that the error has already happened.

The most common reason for service connection error - is expired secrets.
So please, check the secrets on your service connection are valid.
If not - please update the secrets or (recommended): convert your service connection from secrets-based to Workload Identity Federation. This should mitigate the issue for some of you.

From my side, I'll try to revert the changes asap.

from azure-pipelines-tasks.

ChuckFinster avatar ChuckFinster commented on May 28, 2024 1

Adding a note that I am using service connections with federated identity and recevied the same error. Using @shanoor's comment about downgrading the task version bypassed the error.

from azure-pipelines-tasks.

chandlerkent avatar chandlerkent commented on May 28, 2024 1

Just wanted to note that we are also having this issue and we are also using Workload Identity Federation. Downgrading as suggested by @shanoor fixes the issue.

@LeftTwixWand

from azure-pipelines-tasks.

jonmikeli avatar jonmikeli commented on May 28, 2024 1

Hello @ponbac, @JulianCodespotiMYOB and @jonmikeli Thank you for reaching me.

As @ponbac noticed, my changes do not work properly. But the indexOf issue occurs in the error-handling part of the code. Which means that the error has already happened.

The most common reason for service connection error - is expired secrets. So please, check the secrets on your service connection are valid. If not - please update the secrets or (recommended): convert your service connection from secrets-based to Workload Identity Federation. This should mitigate the issue for some of you.

From my side, I'll try to revert the changes asap.

Hi @LeftTwixWand ,

Thank you for your answer.
In case it helps, I have created a new connection and same result.

I will use the former version while the issue is solved.

from azure-pipelines-tasks.

laplace-deploy avatar laplace-deploy commented on May 28, 2024 1

Same problem here, even using Workload Identity Federation

from azure-pipelines-tasks.

JulianCodespotiMYOB avatar JulianCodespotiMYOB commented on May 28, 2024

I had a similar issue occur, but for me it was due to not passing in an appropriate Azure Subscription. Perhaps this could be your issue? Maybe try confirming whether this subscription exists or not 🤔

from azure-pipelines-tasks.

ponbac avatar ponbac commented on May 28, 2024

I had a similar issue occur, but for me it was due to not passing in an appropriate Azure Subscription. Perhaps this could be your issue? Maybe try confirming whether this subscription exists or not 🤔

Yes, the reason our pipeline is failing in the first place is due to something else, but this issue is about the error not getting properly logged because of the indexOf error crashing the task before the real error can get reported.

from azure-pipelines-tasks.

jonmikeli avatar jonmikeli commented on May 28, 2024

Some issue for me with a service connection.

from azure-pipelines-tasks.

iurietopor avatar iurietopor commented on May 28, 2024

Faced the issue today. We are using Workload Identity Federation as well.

Edit:
Found the issue on our side. azureSubscription: '' under task inputs:.
We didn't apply the template with variables for new added job. The name of service connection is defined there.

Used this Google Chrome extension to see the final rendered YAML: ADO Pipeline Assistant

Relevant snippet from final rendered YAML:

    - task: AzureCLI@2
      displayName: Get WebApp Host-Name
      inputs:
        azureSubscription: ''
        scriptType: bash
        ....

from azure-pipelines-tasks.

ajayadav7 avatar ajayadav7 commented on May 28, 2024

if you use task: [email protected] then you will get the error: 'unable to locate executable file: 'powershell'. Please verify.....

and this is the actual error.

to resolve this just add the pool image as 'windows-latest' and it will work with task: AzureCLI@2 also.

you need to add the below part in your script before the task

pool:
vmImage: "windows-latest"
steps:

  • task: AzureCLI@2

from azure-pipelines-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.