web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Backup Business Central env.

(0) ShareShare
ReportReport
Posted on by 5

Hello everyone,

I have a question relating the "Create database export* feature you have in Business Central admin center.

1777.BC.PNG

Is it possible to automate this feature, by calling this from PowerShell command ? or another way ?

We have a sensible customer that need to keep backup of Business Central more that 30 days.

Thanks for your help!

  • Suggested answer
    Mohana Yadav Profile Picture
    61,260 Super User 2026 Season 2 on at

    I will find if there is any way but just note that we can export only 10 times per month.

  • julmsy Profile Picture
    5 on at

    Hi Mohana,

    Thanks!

    Yes, I'm aware about the 10 times per month limitation, thanks for the reminder.

    Looking forward to hearing from you.

  • Suggested answer
    YUN ZHU Profile Picture
    104,206 Super User 2026 Season 2 on at

    HI, Although there is a limit on the number of times, Microsoft provides an Admin Center API.

    https://github.com/microsoft/BCTech/blob/master/samples/AdminCenterApi/PowerShell/DatabaseExports.ps1

    So it is theoretically possible.

    As for the usage of Admin Center API, I hope the following post can give you some inspiration.

    Manage environments via Admin Center API: https://yzhums.com/15755/

    Hope this will help.

    Thanks.

    ZHU

  • julmsy Profile Picture
    5 on at

    Hi Yun,

    Many thanks for this. Very useful.

    Doing so, I create a demo tenant with Business Central trial. I did the step you are describing in Manage environments via Admin API.

    However, I'm facing the following error when I'm trying to get the access token (with admin account of the tenant):

    AADSTS50020: User account '{EmailHidden}' from identity provider 'sts.windows.net/.../' does not exist in

    tenant 'Contoso 2 (MS Virtual Event)' and cannot access the application 'a19cb26a-2e4c-408b-82e1-6311742ecc50'(App for managing Business Central environments) in that tenant. The account needs to be added

    as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.

    Tried to figure out this issue, but no solution found. Any idea maybe ?

    Thanks.

  • Horia Micu Profile Picture
    Microsoft Employee on at

    Hi,

     You can only request a database export if you've a paid Business Central subscription.

     Please review Microsoft Dynamics BC SaaS docs for more info

    docs.microsoft.com/.../tenant-admin-center-database-export

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 569 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 375 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans