Code="BadRequest" Message="Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.

Marthy Maisog 15 Reputation points
2023-08-09T13:45:17.81+00:00

Hi Support

I am getting this error

Error: web.AppsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible." Details=[{"Message":"Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"99022","Message":"Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible.","MessageTemplate":"Creation of storage file share failed with: '{0}'. Please check if the storage account is accessible.","Parameters":["The remote server returned an error: (403) Forbidden."]}}]

Please help and let me know what could possibly i can do.

Thanks

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} vote

1 answer

Sort by: Most helpful
  1. shiva patpi 13,366 Reputation points Microsoft Employee Moderator
    2023-08-09T15:42:30.6566667+00:00

    @Marthy Maisog

    It seems your application don't have access to the storage account , please validate below :

    1. The application which is trying to do this operation , check if it has got all the required permissions
    2. If the application is making use of SAS Key , please check if the SAS key is still valid or not
      1. Try to regenerate the SAS key with new expiration date
    3. Check if the storage account is behind the VNET and firewall is enabled
      1. https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal
    4. If the Firewall is enabled for storage account , did you create any private Link pointing to the VNET in which your application is deployed.
      1. https://learn.microsoft.com/en-us/azure/storage/common/storage-private-endpoints

    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/troubleshoot-storage-client-application-errors?tabs=dotnet#the-client-is-receiving-http-403-forbidden-messages

    Let us know how it goes...

    Regards,

    Shiva.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.