I have an Azure storage account named "mystorage". I would like to ensure that only the following have read/write access to both the files and the blobs in the storage account (everything else should be blocked):
All these assets sit in the same region.
I have tried setting up a virtual network between storage account and app service and database server, which led to all access being blocked. I may well have gotten this wrong though.
Please let me know how to accomplish the above.
Secure access to Azure storage account from only app service, database server and specific Internet address
To enable a secure connection from App Service and SQL Database to Azure Storage Account, follow the steps below.
Create a VNet with two subnets: one for the App Service and the other for the SQL Database.
Add the Microsoft.Storage
service endpoint to both subnets. This will enable outbound connectivity from the App Service
and SQL Database
to the Storage Account
over the Microsoft backbone network.
200.300.400.500
to the firewall rules.Method : 2
App Service
and SQL Database
subnets.Note:
- The NAT gateway will only be used for outbound traffic.
- Disable the service endpoint if you are using the NAT gateway.
You can find the NAT public IP by navigating to NAT gateway > Outbound IP.
Storage Account
firewall rules to allow traffic.Reference: Grant access from an internet IP range