azure app service custom backup to storage account

Agi Pasieka 26 Reputation points
2022-05-21T10:34:38.647+00:00

Hello

I have setup custom backup of azure web app to storage account and it will only work when the public access is enabled for all networks. What I would like to achieve is to apply restriction to storage account and limit public access to only allow the vnet that I have integrated my web app to. So far I get 403 error as storage account refuses access to web app when I run custom backup. I have tried the following:

  • added subnet from vnet that my web app is integrated with, enabled the service endpoint for Microsoft.Storage
  • enabled system-assigned managed identity for the web app, granted this identity a Storage Blob Data Contributor permission to the storage account that will store the backups

Anyone have any idea what else I have to enable to achieve this?

Thanks in advance

Agi

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,686 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,870 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,471 Reputation points
    2022-05-22T20:28:03.643+00:00

    Hi,

    If you want to block public access to storage account you need to create a private endpoint for it - your first option. Did you follow all needed steps for this? (including private dns)

    https://learn.microsoft.com/en-us/azure/storage/common/storage-private-endpoints

    Hope this helps!

    1 person found this answer helpful.
    0 comments No comments

  2. SnehaAgrawal-MSFT 18,286 Reputation points
    2022-05-25T08:52:27.173+00:00

    Thanks for reaching here! Could you please confirm if your storage account is firewall enabled? as its mentioned in the document here,

    "Using a firewall enabled storage account as the destination for your backups is not supported. If a backup is configured, you will encounter backup failures."
    "Using a private endpoint enabled storage account for backup and restore is not supported."

    Please let us know to help you better on this.

    1 person found this answer helpful.
    0 comments No comments

  3. Agi Pasieka 26 Reputation points
    2022-05-27T15:47:15.45+00:00

    Hi,

    Thank you for your reply. I was trying to avoid using a private link as I did not want to generate additional cost. I wil leave the storage account with public access at the moment enabled.

    Many thanks
    Agi

    0 comments No comments