Greetings!
The issue you are encountering is due to a misconfiguration in the private endpoint setup for your Azure storage account. While you have configured a private endpoint for the blob endpoint of your storage account, you are making a request using the DFS endpoint via a private IP address. For Azure Data Lake Storage (ADLS) accounts or when using a DFS endpoint on a blob account, it is essential to configure private endpoints for both the blob and DFS endpoints. This is because certain APIs work specifically on either the blob or DFS endpoint, and missing the private endpoint configuration for either can lead to issues like the one you are facing.
To resolve this, you need to create a private endpoint for the DFS endpoint of your storage account. Once this configuration is in place, you should be able to create and delete directories without encountering network errors.
Resources:
- Azure Private Endpoint for Azure Storage
- Azure Data Lake Storage (ADLS) Gen2
- Configure a private endpoint for your storage account
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.