Context deadline exceeded when enabling private endpoints

After enabling private endpoints on a file storage account, the terraform plan fails with the following error when attempting to refresh state

Error: shares.Client#GetProperties: Failure sending request: StatusCode=0 -- Original Error: context deadline exceeded

I’m wandering if the course could be a too restrictive firewall rule, that blocks the protocol/port used by the azurerm provider to communicate with the resource manager. Fot which protocol/port traffic should be allowed?is there some way to use a dedicated manageent interface to manage PaaS resources regardless of private links?

Thanks a lot for your help