Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.25k stars 4.58k forks source link

[QUERY] SyncCopyFromUri documentation indicates source blob must be public or accessed via SAS rather than OAuth #45013

Open strangepholker opened 1 month ago

strangepholker commented 1 month ago

Library name and version

Azure.Storage.Blobs 12.20.0

Query/Question

The SyncCopyFromUri documentation indicates source blob must be public or accessed via SAS rather than OAuth.

I am attempting to find a mechanism for copying blobs between two different storage accounts relying on managed identities using OAuth with Entra Id. I want to avoid creating SAS tokens for source blobs. This functionality appears to work when using BlobClient.SyncCopyFromUri, however this contradicts the documentation for this method.

Specifically the source Uui parameter has the following language: "Required. Specifies the URL of the source blob.... The source blob must either be public or must be authorized via a shared access signature. If the source blob is public, no authorization is required to perform the operation. ..."

Is this documentation outdated and should we expect this functionality to be maintained moving forwards? TIA

Environment

.NET SDK: Version: 8.0.303 Commit: 29ab8e3268 Workload version: 8.0.300-manifests.34944930 MSBuild version: 17.10.4+10fbfbf2e

Runtime Environment: OS Name: Windows OS Version: 10.0.22631 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\sdk\8.0.303\

IDE Visual Studio 2022 (17.10.4).

github-actions[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.