Hi Filip
Please use below steps to restrict access to your Azure storage account so that only your Application Gateway can send logs to it.
- Configure the storage account to deny access from all networks by setting the network rules to "Deny" by default or check for Allow access from all networks is disabled.
- Use a Private Endpoint or Service Endpoint to allow the Application Gateway to communicate with the storage account securely over the Azure backbone network.
- https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal
- For enhanced security, consider creating a private endpoint for your storage account.
- This assigns a private IP address from your virtual network to the storage account, securing traffic between your virtual network and the storage account over a private link
- You can check azure monitoring settings, ensure that your Azure monitoring settings are correctly configured to send logs to the storage account. https://learn.microsoft.com/en-us/azure/azure-monitor/platform/create-diagnostic-settings?tabs=portal
Additionally, you can implement log analytics to check the logs. For more details, please refer to the https://learn.microsoft.com/en-us/azure/application-gateway/log-analytics
Hope this helps you sort things out! Let me know if you need further assistance.
Thank you.