Comments (10)
@richRubie I ran the Connect-AzAccount -identity
command on the target VM where the files are going to be copied to. It used the system assigned managed identity assigned to the resource. That identity is the one that needs to have access to the storage account that works as an intermediary to download the files to the VM.
from azure-pipelines-tasks.
@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.
@v-schhabra any update on this? I was able to fix by myself the initial issue, but the task is still deploying to the VM and creating a directory with a random guid. This is breaking our data processors.
I need to know if I need to make changes to my pipelines or use another approach to deploy to get my team unblocked with this. Also, I need to know what the default behavior will be for the task to avoid breaking my pipelines again in the future.
Thanks!
from azure-pipelines-tasks.
@fifuente - We are checking on it, we are trying to repro the same scenario. will keep you posted on updates.
from azure-pipelines-tasks.
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.
@fifuente where did you run this command, on the target vm?
What identity should it be using?
I agree why are the prequisites of powershell 7 and az.Account not advertised / checked when deploying to a VM.
Can anyone point me in the direction of the docs for deploying code to a vm using AzureFileCopyV6?
from azure-pipelines-tasks.
So I added a managed identity to the vm and then ran Connect-AzAccount -identity
I got further but then failed to access the container....
How should this work?
It's really frustrating
from azure-pipelines-tasks.
Deployments completed
from azure-pipelines-tasks.
Related Issues (20)
- [enhancement]: Add Keys and Certificate on the task Tasks/AzureKeyVaultV2
- [Enhancement]: Update versions of services
- [BUG]: NuGetCommand@2 throws warning NoCache is deprecated HOT 2
- [BUG]: AzureFileCopy@6 is breaking on pipeline with error 'The term 'New-AzStorageContext' is not recognized. HOT 11
- [enhancement]: JavaToolInstaller should support GraalVM HOT 1
- [BUG]: AzureCLI@2 visibleAzLogin: false not working using workload identity federation service connection HOT 1
- [Question]: Provide multiple patterns in the same line to the itemPatern input parameter of the DownloadPipelineArtifact@2 task.
- [BUG]: Exit 57005 StackOverflowException using AzurePowershell@5 HOT 12
- [REGRESSION]: Error when deploying to app service HOT 1
- [BUG]: ##[error]Failed to download or parse releases-index.json with error: {} HOT 5
- Harmony Hair Site Oficial Harmony Hair
- [BUG]: NuGetToolInstaller@1 installed nuget.exe but the next task can't find it if build agent is Ubuntu HOT 4
- [BUG]: AzureWebAppContainerV1 fails with "cannot find module @azure/msal-node" HOT 14
- [BUG]: InstallAppleCertificate@2 fails to expose APPLE_CERTIFICATE_SHA1HASH HOT 2
- [BUG]: AzureCLI@2 task - Behavioral difference between Windows and Ubuntu when trying useGlobalConfig resulting in az login error HOT 1
- [REGRESSION]: IIS web app deploy task failing in deployment group Error: Malicious entry: bin\xxxl.dll HOT 6
- [Question]: How to fix 'Unable to index one or more source files for symbols file'
- Facing the version not valid issue in azure pipeline. HOT 4
- [BUG]: AzureFunctionApp 2.242.1 Cannot find module @azure/msal-node HOT 9
- [Question]: How to use this npm package for federated credentials?
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.