Grant perms to azure app service to access read/write into azure blob storage

Rifi, Sami 20 Reputation points
2024-06-26T16:58:06.7366667+00:00

I am trying to allow azure web app accessing azure blob storage. Firewall and connectivity is working fine, the issue is writing images into the DB. I gave my app service contributor role in IAM in the azure blob storage (Didn't work). When I run the code locally it's working, reading/writing and saving into the blob.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,317 questions
{count} votes

Accepted answer
  1. Manu Philip 17,271 Reputation points MVP
    2024-06-27T04:58:14.78+00:00

    Hi,

    I would like you to test the firewall connections are well configured. Following steps would help

    export IpStart="0.0.0.0"
    export IpEnd="0.0.0.0"
    echo "Firewall rule for starting ip of $IpStart" and ending ip of $IpEndaz 
    sql server firewall-rule create --server $server --resource-group $resourceGroup --name AllowYourIp --start-ip-address $IpStart --end-ip-address $IpEnd
    

    Above settings is for opening the firewall to allow access from anywhere. It is unsafe for production environments and here we are just trying to isolate the issue


0 additional answers

Sort by: Most helpful