Azure Devops upload file - azure

I'm new to Azure DevOps and I'm trying to upload excel file in my pipeline.
The file named data.xlsx and each time when i run the build i need to upload this file to replace the old one.
This is my Azure interface enter image description here
My question is if any when can help me to find the best plugin for this job. And thanx

Related

Is is possible to copy a powershell script file from the repo while running the release pipeline and keep it in TFS Azure devops?

I am trying to download a powershell script file from the Deploy Scripts repo and keep it in TFS Azure DevOps Release Pipeline, so that I can use it in my next step to generate another json file.
I am using Copy "Deploy-Scripts" as my first step, it will download the Deploy scripts from the Artifactory and keep it in the server C:\dev\ path. And from their I want to download the "Generate-manifest.ps1" file and keep it in the TFS, somewhere like "Secure files" or something. And for the next step I want to use the same powershell script file from the TFS path and generate a new file again in the TFS storage only. So is there a way to achieve all this?

Copy the output of a task to file and store it in azure artifacts in Azure DevOps pipeline

I Just deployed Kubeadvisor and I got the output as below. I want to store this output as a file in azure artifacts. Need suggestions please

Copy file to Azure App Service During Release Pipeline

During the Azure Release pipeline, I would like to copy a file in a Git repo to the wwwroot directory in the app service. The output from the task says it copies the file but it is not there. I am thinking I am not specifying the target folder properly. I currently have it as d:\home\site\wwwroot. Thanks for any help.
Copy file to Azure App Service During Release Pipeline
You could not use the copy task to copy a local file to the Azure app service. This task only supports local replication.
When you set it as d:\home\site\wwwroot, the copy task will copy the file to the folder in the agent, which runs this task rather than the Azure app service.
To resolve this issue, you could use Azure App Service Deploy task to deploy this file to the app service. In this task, set "Package or folder" path to the folder where the file exists.
Or you can consider the advice of Leo Varghese, to use the FTP upload task to copy that file to the app service.
Hope this helps.
#Doug, You an make use of the FTP upload task to copy a file in your build artifact to the wwwroot folder. Assuming your file in gitlab is present inside the artifact after the execution of build pipeline.
Please refer this article -> https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/ftp-upload?view=azure-devops
For performing FTP upload you will need your FTP credentials available for your web-app. This can be obtained from the Deployment Center of your web app.
Hope the above answers your question. Please let me know if you have any queries on this.

how to pass Powershell script filepath from azure devops repo into Azure devops build pipeline

I have been following the article to learn Azure Devops. However, I am not able to get the file path for the Powershell script to pass into the azure devops build pipeline.
https://learn.microsoft.com/en-in/azure/devops/pipelines/create-first-pipeline?view=azure-devops
Below is my script in Azure Repo
Below is my Azure devops build pipeline, where I want to add the PowerShell script filepath:
The "ScriptPath" in the second image does not have a browse option, so I am unable to get the proper path.
Please help me.
'./HelloWorld.ps1' I had to use this format as a filepath.
Looks like Azure Devops is improving their user interface every day. The browse ellipse button at least showed up in my pipeline to edit the correct relative path to my Powershell script.

creating custom image in azure fails

I'm new to azure cloud. I'm trying to upload my application vhd file in azure storage cloud and wanted to create an image out of it, so that I could launch a vm. I was able to upload file to storage and while trying to create an image it fails with InvalidParameter.
You can create a managed image from the VHD file that you upload to Azure Storage. Follow the steps in this document, it references the PowerShell command. If you need more help please let me know.

Resources