Comments (11)
Meanwhile, we can use the previous version of the task by using task: [email protected]
.
from azure-pipelines-tasks.
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.
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.
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.
from azure-pipelines-tasks.
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.
Same problem here, even using Workload Identity Federation
from azure-pipelines-tasks.
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.
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.
Some issue for me with a service connection.
from azure-pipelines-tasks.
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.
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)
- [BUG]: AzureRmWebAppDeployment fails due failure to set scmType whn missing permission to perform joinViaServiceEndpoint/action on subnet
- [BUG]: DockerCompose@0 no longer functions after removal of Docker Compose v1 from hosted agents. HOT 9
- [BUG]: PublishCodeCoverageResults@1 link broken in warning about V2 task
- [BUG]: HelmDeploy@0 Task Getting Occasional Timeout's Downloading Kube config from AKS Cluster HOT 6
- [BUG]: SqlAzureDacpacDeployment@1 - error when using a Workload Identity federation HOT 2
- [BUG]: DeleteFiles failing when using exclusions on Windows operating system HOT 1
- [BUG]: Ant + Jacoco: 'Failed to enable code coverage: TypeError: Cannot read properties of undefined (reading 'split')' HOT 2
- [BUG]: [email protected] failing with: Failed to check the resource group status. Error: Could not fetch access token for Azure. Verify if the Service Principal used is valid and not expired.
- [BUG]: Copy files task fails with ##[error]Error: Failed find: EPERM: operation not permitted, stat 'C:\azagent\A4\_work\1\test_artifact\bin\6ce49f25-2433-40fa-b5f1-8d06dab0566f.tmp' HOT 5
- [BUG]: UsePythonVersion intermittently fails because sw_ver fails with dyld[6863]: terminating because inserted dylib '�6' could not be loaded HOT 1
- [REGRESSION]: HOT 2
- [BUG]: AzurePowershell@5 Decorator tasks fails to retrieve OIDC token on stage reruns
- [BUG]: Warning: Use tokens from the TokenRequest ...
- [REGRESSION]: AzureFileCopy@6 no longer works with "Workload identity federation" service connection HOT 16
- [BUG]: AzureCLI@2 returns ##[error]Unhandled: toolExecutionError.indexOf is not a function when scriptPath is missing HOT 2
- [enhancement]: Disable Legacy TLS on IIS web site
- [BUG]: MSBuild task fails after msbuild.exe exits with exit code '' (empty string)
- [BUG]: Docker@2 arguments (VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) without quotes
- [BUG]: `AzureWebAppContainer@1` should error if App Service Resource Kind is not a container (such as "app,linux") HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tasks.