Trap 1: The storage account's network rules allow HTTP traffic from certain…
While the `supportsHttpsTrafficOnly` property enforces HTTPS for the storage account, network rules configured via the storage account's firewall and virtual network settings can create exceptions. If specific IP addresses or virtual networks are explicitly allowed to access the storage account, and those rules do not enforce HTTPS themselves, then HTTP traffic originating from those allowed sources may still be permitted. This creates a scenario where the global HTTPS enforcement is bypassed for traffic matching the network access control list (ACL) exceptions, leading to unintended insecure access.
Trap 2: The property should be set on the blob service, not the storage…
The `supportsHttpsTrafficOnly` property is a top-level configuration setting for an Azure Storage account, not for individual services like Blob, File, Queue, or Table storage. This property applies universally across all data services hosted within that particular storage account. Therefore, attempting to set this property on a sub-service like the blob service would be incorrect and would result in an ARM deployment validation error, as it is designed to be a storage account-wide security control.
Trap 3: The API version does not support this property
The API version `2021-09-01` and several preceding and subsequent versions fully support the `supportsHttpsTrafficOnly` property for Azure Storage accounts. This property has been a standard feature for enforcing secure transfer for a considerable time within the Azure Storage API, indicating its maturity and widespread adoption. Therefore, the issue is not related to an unsupported API version, as the template is using a recent and compatible API version for this specific configuration.