Skip to main content

Notifications

Announcements

No record found.

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

Correct approach for application written for BC OnPrem to the cloud?

(0) ShareShare
ReportReport
Posted on by 431

Hi All,
We faced the error "implemented cloud is not cloud-optimized", thus we added the granule to the license for our endusers, but now, we would like to make our code cloud compatible, thus I have to rewrite the code of our application to be cloud compatible, and still usable for OnPrem deployment. So, the code has to be written for the cloud, but it will work also on OnPrem deployment. Is this correct?

I have some ideas what to do for an app to be cloud compatible, but still I cannot find the exact steps what has to be changed in the code and objects, so that the app is cloud compatible, for example:

1. app.json file -> change the property "target":"OnPrem" -> "target":"Cloud"

2. everywhere where we are referring our code [OnPrem] has to be commented.

2. all .nets have to be replaced with the Azure Functions or some 3rd party application with the use of WebService to handle .net code.

3. for any file storage in the FTP has to be switched to the OneDrive or Sharepoint. We will not store files directly in the BLOB fields in the database, anymore.

4. any custom table fields have to be written with prefix "Rec." => Rec."FieldName"

Is the procedure exactly the same as when I am writting the custom code on BC SaaS Sandbox environment?

Thank you

BR Damjan

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 Season 2 on at
    RE: Correct approach for application written for BC OnPrem to the cloud?

    Hi, Yes, as long as the version is the same, the code you write for SaaS can be installed on On-Pre. The SaaS version is updated at any time, and On-Pre is updated monthly and needs to be manually upgraded.

    Generally, developers will choose Docker, but there is no problem in developing in SaaS Sandbox.

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Correct approach for application written for BC OnPrem to the cloud?

    You should start by implementing the code analysis tool in your applications. Those will make sure you are cloud compliant.

    You can also use them if you want to put your app on AppSourse.

    learn.microsoft.com/.../devenv-using-code-analysis-tool-with-rule-set

    You will also find lots of useful information here.

    learn.microsoft.com/.../readiness-ready-to-go

    Especially look at the links around al-go for gihub.

    github.com/.../al-go-appsource

    github.com/.../al-go-pte

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Correct approach for application written for BC OnPrem to the cloud?

    hi

    look this

    learn.microsoft.com/.../migrate-data

    DAniele

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans