Coder Social home page Coder Social logo

[REGRESSION]: Failed to perform Auto-login: PSContextCredentialexec: "pwsh": executable file not found in %PATH%. about azure-pipelines-tasks HOT 4 OPEN

fifuente avatar fifuente commented on June 26, 2024
[REGRESSION]: Failed to perform Auto-login: PSContextCredentialexec: "pwsh": executable file not found in %PATH%.

from azure-pipelines-tasks.

Comments (4)

v-snalawade avatar v-snalawade commented on June 26, 2024

@fifuente - what is powershell version installed, Can you please update the powershell version to v7 and try running the pipeline again.

from azure-pipelines-tasks.

fifuente avatar fifuente commented on June 26, 2024

@v-snalawade Let me try checking the version and will make sure v7 is installed. Will get back with the results

from azure-pipelines-tasks.

fifuente avatar fifuente commented on June 26, 2024

@v-snalawade Installing PowerShell 7 kind of work. After that the task failed because none of the Az.* modules could not be found so I went ahead and install all of them - not sure which ones were required, installed everything within Az.*.

And then when re-running the task, it failed again because I had to manually connect to an Azure Account by running Connect-AzAccount. After running Connect-AzAccount -identity, then the task succeeded.

Thanks for the help!

Also, is there a way to ask for adding those extra steps in the task? To me, it sounds like those are requirements to run the AzCopy task and should at least verify that everything is in place before moving forward. Also, using Managed Identity sounds like the normal approach to me to auth to access other azure resources.

But if it is not possible, could those extra requirements at least be added to the documentation of the task to know what is needed to deploy to Azure VMs by using the AzCopy task?

from azure-pipelines-tasks.

fifuente avatar fifuente commented on June 26, 2024

@v-snalawade Another issue I just found, is that the task used to copy all the binaries I needed into the VM. With the same directories and files. And with the new update, it now copies everything but within a new directory with a random guid (which is the one used to copy the files to the storage account in the middle of the process) and that breaks all of our processes since the binaries are now in a different subdirectory.

Is there a way for us to indicate to not create any new random directories at the root of the binaries we want to copy?

As an example, if you tried to deploy the following to the VM in the root of E:\

  • DirectoryA
    • FileA
    • FileB

You got the following:

  • E:\
    • DirectoryA
      • FileA
      • FileB
        With the new update to the AzCopy task, now you get:
  • E:\
    • Random directory with a guid as a name
      • DirectoryA
        • FileA
        • FileB

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.