How to enable automatic download of blob from link

Ben Kaplan 0 Reputation points
2024-07-09T15:02:59.8066667+00:00

I want to send a link to a blob that automatically downloads when the user navigates to the link. I know that you can set the CONTENT-DISPOSITION field to attachment; filename="dummy.csv" to cause the file to download. However this only works if you send the file with a SAS token.

Without a SAS token URL the user receives an error of PublicAccessNotPermitted

I would like to avoid SAS tokens as much as possible because they expire and they can be leaked. Instead, I would like to use managed identities (either actual users from Entra, or User Assigned Managed Identities).

How can I make the file automatically download with a managed identity?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,843 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,700 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.