To follow Azure cloud security best practices and prevent public exposure, ensure that the functions managed with Microsoft Azure Function App are not publicly accessible or are secured with IP access restrictions. An Azure Function App is considered publicly accessible when it is configured to allow unrestricted inbound access through the default (public) endpoint without any IP-based access restrictions.
This rule resolution is part of the Conformity Security & Compliance tool for Azure.
optimisation
excellence
In Azure cloud, Function Apps can be deployed with either public or private network access. By default, Function Apps are publicly accessible without any IP restrictions, but they can also be isolated to an Azure Virtual Network (VNet) or configured with IP-based access restrictions to control inbound traffic. To reduce the risk of unauthorized access and data breaches, consider carefully whether your Function App needs to be publicly accessible. There are two acceptable secure configurations:
- Disable public network access completely - This blocks all inbound traffic except requests from private endpoints, providing the highest level of security.
- Enable public access with IP restrictions - This allows access only from specific trusted IP addresses or Virtual Network (VNet) subnets by configuring access restriction rules and ensuring the default "Allow all" rule is removed.
Both approaches effectively prevent unrestricted public access and help protect your Function Apps from unauthorized connections.
Audit
To determine if your Microsoft Azure Function Apps are configured to allow public network access, perform the following operations:
Remediation / Resolution
To ensure that the functions managed with Microsoft Azure Function App are not publicly accessible or are secured with IP access restrictions, perform the following operations. You can choose one of two secure configurations:
- Disable public network access completely - Recommended for Function Apps that should only be accessed via private endpoints.
- Enable public access with IP restrictions - Configure access restriction rules to allow access only from specific trusted IP addresses or Virtual Network (VNet) subnets, and ensure the default "Allow all" rule is removed.
References
- Azure Official Documentation
- Azure Functions networking options
- Azure App Service access restrictions
- Set up Azure App Service access restrictions
- Azure PowerShell Documentation
- az account list
- az account set
- az functionapp list
- az functionapp show
- az functionapp config access-restriction add
- az functionapp update