简体   繁体   中英

Access blob storage from webapp (azure)

I'm trying to put an application to production on Azure. This application consists of a webapp (running a Docker container) that is supposed to communicate with an Azure Storage Account (blob).

After adding all outbound IP Adresses of the web app to the firewall settings of my storage account, I still have no permission to access the blobs. The error is the following: "This request is not authorized to perform this operation."

However, when I run my app in local and add my local IP to these same firewall settings, it works. When I do not add it to the firewall settings, I get the same error. I therefore believe my storage account does not allow traffic coming from my webapp whilst it should.

Any help would be deeply appreciated.

Thanks,

Clank

You can make use of Managed identity to provide access to storage blob from web app.

You need to assign 'Storage Blob Data contributor' access to webapp. You can follow below steps for the same.

Storage Account -> Access Control (IAM) -> Grant Access to this resource -> 'Storage Blob Data Contributor' -> Select resource (web app)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM