Comments (4)
@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.
@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.
@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.
@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:
- DirectoryA
- E:\
- Random directory with a guid as a name
- DirectoryA
- FileA
- FileB
- DirectoryA
- Random directory with a guid as a name
from azure-pipelines-tasks.
Related Issues (20)
- [BUG]: Total test run duration/count is incorrectly calculated from junit xml report HOT 2
- [Question]: How to use the Publish Pipeline Metadata task
- AzureCLI task is failing with error "The term 'Get-AzADGroup' is not recognized as a name of a cmdlet, function, script file, or executable program" HOT 7
- [enhancement]: AzureFunctionApp Task does not update the LinuxFxVersion to match the Runtime Stack
- [BUG]: AzurePowerShellV5 task is logging partial federatedToken
- [Question]: Is my error a result of needing to run CocoaPods task? HOT 1
- [BUG]: SqlAzureDacpacDeployment: does not server name when it contains a dot (Azure SQL Managed Instance)
- [BUG]: AzurePowerShell@5 is failing to find parameter FederatedToken HOT 1
- [Question]: Unable to download from Storage Account since using WIF and @AzureFileCopy6 HOT 5
- [Question]: Issue with the Federate Credential login on Azure Cli task HOT 6
- [BUG]: DockerV2 L0 test broken
- [BUG]: AzureResourceManagerTemplateDeployment failure after ubuntu-latest was updated to 22.04.4 (20240516.1.0) HOT 1
- [BUG]: AzureFunctionAppContainer@1 sets linuxFxVersion instead of windowsFxVersion for windows image HOT 2
- [BUG]: AzurePowerShell@5 is failing to install Az modules HOT 5
- The process '/Users/runner/work/1/s/gradlew' failed with exit code 1 HOT 8
- [BUG]: VSTest@3
- [BUG]: Azure yml pipeline Gradle task failed - ##[error]Error: The process '/Users/runner/work/1/s/gradlew' failed with exit code 1 HOT 1
- [Question]: PublishCodeCoverageResultsV1 Where it the publish directory?
- Could not find the module Az.Accounts with given version. If the module was recently installed, retry after restarting the Azure Pipelines task HOT 2
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.