我想使用Azure管道中的Azure文件复制来复制文件。
我正在按照https://praveenkumarsreeram.com/2021/04/14/azure-devops-copy-files-from-git-repository-to-azure-storage-account/的指示进行操作。
我正在使用自动创建的名为“我的沙盒(a1111e1-d30e-4e02-b047-ef6a5e901111)”的服务连接。
我在使用AzureBlob文件复制时遇到了错误:
INFO: Authentication failed, it is either not correct, or
expired, or does not have the correct permission ->
github.com/Azure/azure-storage-blob-go/azblob.newStorageError,
/home/vsts/go/pkg/mod/github.com/!azure/azure-storage-blob-
go@v0.10.1-0.20201022074806-
8d8fc11be726/azblob/zc_storage_error.go:42
RESPONSE Status: 403 This request is not authorized to perform
this operation using this permission.
我假设Azure Pipeline无法访问Azure Storage。 我想知道如何找到应该访问Azure Storage的服务主体。
4.*
时遇到了相同的错误,但在版本3.*
中可以正常工作,你试过那个版本吗? - Joy Wang