Unable to upload .exe files to Azure blob container in Azure Storage Account

Hirdesh Baghel 45 Reputation points
2025-03-03T11:34:59.68+00:00

Hi

I am trying to upload an exe file to my Azure Blob container but I am getting below ( forbidden ) error.

Also when I tried with .txt, .ppt .ps1 extensions I am able to upload those. Is there any restriction MS has for (.exe files). I am having storage
I am having owner permission for the Storage Account resource.

User's image

Kindly Help

Thanks and Regards,

Hirdesh

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,108 questions
{count} vote

Accepted answer
  1. Vinod Kumar Reddy Chilupuri 2,955 Reputation points Microsoft External Staff
    2025-03-03T12:44:18.17+00:00

    Hi @Hirdesh Baghel,
    Uploading .exe files to Azure Blob Storage should generally be allowed, provided you have the correct permissions. However, there are a few potential reasons why you might be encountering a "forbidden" error.

    • Check whether you have the necessary permissions to upload files to the blob container. Even if you have owner permissions, there might be specific restrictions or policies in place that prevent the upload of certain file types.
    • ⁠Check if there are any storage account configurations or policies that restrict the upload of .exe files. This could include Azure Policy or custom scripts that enforce such restrictions.
    • ⁠Some applications or services might validate the content type of the files being uploaded. Ensure that the content type for the .exe file is correctly set.
    • ⁠Verify if there are any firewall or network restrictions that might be blocking the upload of .exe files.
    • Navigate to Azure Portal → Storage Account → Networking and review the firewall settings.

    You can also use Azure Storage Explorer to help address the issue of uploading .exe files to Azure Blob Storage.

    • Connect to Your Storage Account:
      • Open Azure Storage Explorer and connect to your Azure Storage Account using your account credentials or a Shared Access Signature (SAS) URL.
    • Navigate to the Blob Container:
      • In the left pane, expand your storage account and navigate to the Blob Containers section. Select the container where you want to upload the .exe file.
    • Check Container Permissions and Policies:
      • Ensure that you have the necessary permissions to upload files to this container. Right-click on the container and select "Manage Access Policies" to review and adjust the access policies if needed.
    • Upload the .exe File:
      • Right-click on the target container and select "Upload". Choose the .exe file from your local machine and start the upload process.

    https://learn.microsoft.com/en-us/azure/storage/storage-explorer/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows

    https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal

    These steps and resources should help you troubleshoot and resolve the issue with uploading .exe files to Azure Blob Storage using Azure Storage Explorer.

    Hope the above suggestion helps! Please let us know do you have any further queries.

    Please do consider “Accepting the answer” wherever the information provided helps you, this can be beneficial to other community members. 

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.