Forum Discussion
Michael_Pine
Sep 19, 2022Copper Contributor
Azure File Share Build Pipeline Publish Artifacts
I have a Build pipeline that is working right up until I want to push the build output to somewhere that I can perform at the moment some manual steps, I am attempting to use the following task and I...
- Sep 19, 2022The above worked, the last thing I needed to do was change the ServiceEndpoint to have a Role assignment of Blob Contributor and then it had the correct permissions to copy the build output to a storage account, didn't need to do any az cli stuff or anything like that been able to just use the DevOps pipeline and a Service Endpoint, Storage Account and RBAC.
Michael_Pine
Sep 19, 2022Copper Contributor
Michael_Pine so I just tried using the following and this seemed to work in terms of going to the correct storage account/container but I got a 403 which seems fair enough, I have added a service endpoint to the storage account but do I need to change RBAC somewhere to enable to the build pipeline I imagine to have create permissions ?
- task: AzureFileCopy@4
inputs:
SourcePath: '$(Pipeline.Workspace)'
azureSubscription: '**Removed**PayAsYouGoSubscripiontion'
Destination: 'AzureBlob'
storage: 'sadevproductau'
ContainerName: 'build'
Michael_Pine
Sep 19, 2022Copper Contributor
The above worked, the last thing I needed to do was change the ServiceEndpoint to have a Role assignment of Blob Contributor and then it had the correct permissions to copy the build output to a storage account, didn't need to do any az cli stuff or anything like that been able to just use the DevOps pipeline and a Service Endpoint, Storage Account and RBAC.