How to enable automatic download of blob from link
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?