question

VinsonYuen-8877 avatar image
0 Votes"
VinsonYuen-8877 asked SumanthMarigowda-MSFT commented

Why is my Azure API App getting 403 Error when connecting to Storage Account - File Share

I have a Web API that should communicate with a Storage Account file share but is getting a 403 forbidden error when attempting a connection. If I create and run the web API locally I do not get the 403 forbidden error. I've already added the Web API app as a contributor and reader data access role in the Access Control IAM. I have a similar web API setup with a separate storage account running the same code for another client that is working properly. The File Storage is currently open to the internet and has no IP restrictions setup.

The only difference I notice between the the working web api/storage account pair and the 403 forbidden pair is that the working version is running StorageV1 instead of StorageV2.

azure-storage-accountsazure-api-managementazure-files
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

deherman-MSFT avatar image
0 Votes"
deherman-MSFT answered SumanthMarigowda-MSFT commented

@VinsonYuen-8877
It is strange that it works with StorageV1 but not StorageV2. StorageV2 does have some different configuration settings though. This troubleshooting document is for SMB, but the solutions should still apply. Please check these to see if they might be the cause. If you are still having issues please let me know and we can work with you more closely to resolve this.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.