Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Business Central access to Azure Blob Storage works in Sandbox but not in Production environment

Posted on by 4
Hi all, my problem is as follows: have created some code using ABS codeunits (/ABS Blob Client/, /ABS Container Content/, /ABS Operation Response/, /Storage Service Authorization/ etc). and have managed to read files from an Azure Blob Storage account container and also write files to another container. Everything is working perferctly in a Sandbox environment, but when I upload the app in Production environment then it refuses to work, without any error. Permissonset for the codeunit has been set properly. Tried with 2 different azure storage accounts in sandbox everything works, in Production doesn't. Does anyone have any idea where/what to check?
  • Suggested answer
    Judy Profile Picture
    Judy Microsoft Employee on at
    Business Central access to Azure Blob Storage works in Sandbox but not in Production environment
    Hi,
     
    It is recommended you can compare the configuration and settings between the Sandbox and Production environments. Pay attention to any differences in network configurations, security settings, or other relevant factors that could impact the code's functionality.
    Please check the error logs or diagnostic logs in the Production environment to see if any specific errors or warnings are being logged. This can provide insights into any potential issues or misconfigurations.
     
     
    Best Regards,
    Judy
  • gdrenteria Profile Picture
    gdrenteria 12,167 Most Valuable Professional on at
    Business Central access to Azure Blob Storage works in Sandbox but not in Production environment
    Hi
    Can you apply some telemetry from the BC or Azure side?,
    In order to identify if the problem is in BC or Azure.
    Here are a couple of links, I hope it gives you some ideas.
    Best regards
    Gerardo
  • Business Central access to Azure Blob Storage works in Sandbox but not in Production environment
    Hi ZHU, thank you for the quick reply. Yes, the permission set has the required: codeunit <codeunitname> = X and the permission set has been properly assigned to the user, but still does it doesn't work. Even executing the codeunit in a job queue returns success but without any work been actually executed or any error been thrown.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,565 Super User 2024 Season 2 on at
    Business Central access to Azure Blob Storage works in Sandbox but not in Production environment
    Hi, is the permission file not updated? This is not necessary in the Sandbox, but is necessary in the Production environment. 
    Then remember to assign the extension's permission set to the user.
     
    PS: Store, read, move or delete any file using blob storage with Business central
     
     
    Hope this helps.
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans