When running a pipeline to publish to azure storage account (PaaS) blob within a network security perimeter we get the following error:
ERROR: The request may be blocked by network rules of storage account. Please check network rule set using 'az storage account show -n accountname --query networkRuleSet'. If you want to change the default action to apply when no rule matches, please use 'az storage account update'.
The network security perimeter is in transition mode with inbound ip rules. The same network security perimeter configuration with identical inbound ip rules apply to a different network security perimeter which guards a separate storage account that the same pipeline is able to successfully access with no errors. The only difference between the storage accounts is the succeeding one is in westus2, the failing in westus3.
To mitigate, we switched the NSP for the failing storage to publicnetworkaccess = enabled. Both storage accounts were previously set to SecuredByPerimeter. This worked to upload to westus3, but we recognise this is not a long term secure solution.
This should not be happening because this network security perimeter is in learning mode. To mitigate this, we switched the storage account public network access to Enabled (was Secured By Perimeter) but we recognise this is not a long term secure solution.
Both network security perimeters have identical config, transition mode, including the profile which the storage accounts are associated with. all inbound ip rules are identical and both storage accounts are attempted to be accessed by the same pipeline.
The only difference between the storage accounts is that the one for which secured by perimeter is blocking is in west us 3 (the other is in west us 2).
We are unsure whether the problem lies with the network configuration of the storage accounts or the Network Security Perimeter blocking calls in Transition mode.