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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

DEV to Prod- deployment process in AX 2012 R3

(0) ShareShare
ReportReport
Posted on by 956

Hi team,

I needs to work on AX 2012R 3 project simultaneously. I have very less experience on AX 2012 R3.

Couls you please guide me how to deploy the object from DEV – SIT --UAT – PROD.

I am looking for deployment process from scrtach.

Pls advise, thanks

 

 

Categories:
I have the same question (0)
  • Subra Profile Picture
    2,173 Super User 2026 Season 2 on at

    Hi @CU10121822-0 

    Do you have multiple AOS instance in Prod or single AOS. If you have multiple AOS, we can deploy all your changes into prod using Modelstore. If it's singel AOS. please use XPO deployment as well.

     

  • Subra Profile Picture
    2,173 Super User 2026 Season 2 on at

    Hi @CU10121822-0 

    Additionally, similar question has been discussed in the below forum as well.

    https://community.dynamics.com/forums/thread/details/?threadid=dd512499-7f7f-f011-b4cc-7c1e521724c0

     

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    306,989 Super User 2026 Season 2 on at

    Hi,

    Microsoft released a whitepaper in the past about the deployment of customizations across environments. You can download it using this link: Download Microsoft Dynamics AX 2012 White Paper: Deploying Customizations Across Microsoft Dynamics AX 2012 Environments from Official Microsoft Download Center

  • Suggested answer
    Martin Dráb Profile Picture
    240,618 Most Valuable Professional on at

    First of all, familiarize yourself with Deploying Customizations Across Microsoft Dynamics AX 2012 Environments, where you'll learn important concepts like object IDs, model deployment, modelstore deployment etc., as well us Microsoft recommendation how to manage the whole process (e.g. using model deployments to test environments and the modelstore for production).

     

    The final decision is up to you, but let me give you an example of a process I used when still working with AX 2012:

     

    1. Developers work on a shared environment connected to Azure DevOps. What Microsoft supports is having a dedicated environment for each developer, if you want a shared environment with Azure DevOps, you need some customizations.

    2. An automated build downloads source code from Azure DevOps, builds the application, assigns a model version and exports a model file. Unfortunately, you won't get any build pipeline template of anything from Microsoft. You need to do it on your own (with the help of some community tools), or you buy and extension of Marketplace.

    3. A release process takes the model file and installs it to a test environment.

    4. When tests are successful, the same model file gets installed (by a manually triggered release) to a pre-live environment for final verification.

    5. If final testing is successful, the complete, compiled application is propagated to production by a modelstore deployment.

     

    The pre-live environment uses the same objects IDs as production. The other environments may have different IDs. This plays a role also when you refresh databases etc.; refer to the aforementioned document for more details.

     

    You don't necessarily have to have everything automated; that's more for inspiration. The key is that you need to decide how you'll use which environment and do deployments and data refreshes accordingly. It's also important to know how long production downtime you (your customers) find acceptable (which influence what options you have for PROD deployments).  

     

    Also, it may happen that some objects (like security elements) get created in USR layer in production. You need a plan what you'll do with them.

    Subra's statement that you should use .xpo files for deployment if you have a single AOS doesn't make sense to me. It has two main problems. You'll basically develop a new version of your application in production, which isn't safe. You should test the application in a different environment and then move the exact application you tested to production. The second problem is that you'd have to compile the application in production, making your PROD unavailable for a long time. Whether you have a single AOS or more of them doesn't make any difference. Also, I don't think that there shouldn't be any production environment with just a single AOS.

  • Suggested answer
    CU-1234529-002 Profile Picture
    283 on at

    Hi, your understanding is correct in AX 2012 R3, deployment is done via XPO export/import or Model files (not deployable packages like D365FO). The flow is DEV → SIT → UAT → PROD, exporting objects from AOT as .xpo and importing on each environment, followed by full CIL compile and database sync. For larger changes, Model export/import via Management Shell (Export-AXModel/ Import-AXModel) is the cleaner approach. Thanks

  • Martin Dráb Profile Picture
    240,618 Most Valuable Professional on at

    @CU-1234529-002 This is full of mistakes:

    • Most importantly, .xpo files shouldn't be used for deployment. It's an equivalent of developing in production, which isn't how a sensible release strategy should look like.

    • It doesn't even mention the modelstore deployment, which should typically be used for production deployments.

    • You must compile X++ before you can generate CIL (but you don't need these step in PROD if you deploy a modelstore).

    • It's not true there must be exactly two test environments.

    Also, suggesting that you can choose at will whether you make code changes (.xpo files), deploy a model or deploy a modelstore, and not mentioning the consequences on object IDs, is dangerous. You really need a strategy regarding environments and deployments; not following it (such as doing a modelstore deployment instead of a model deployment) may ruin the strategy and cause data corruption as various times.

  • CU10121822-0 Profile Picture
    956 on at

    Thanks all for the valuable response. Let me check. I will update soon

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 373 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 324

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 321 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans