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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Move model from Cloud hosted environment to another

(0) ShareShare
ReportReport
Posted on by 130

Hi All,

We have deployed new cloud hosted environment and need to move all custom model from one machine to other. For that we are trying to execute ModelUtil.exe command as mentioned in Microsoft document getting below  access denied error. Do we have any alternative method to move custom model to new environment

3034.pastedimage1667975378261v1.png

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi Sunil G Kurup,

    Have you ran the command prompt in admin mode. Also on the command you have given for metadatastorepath as bin folder, that may be the issue. it should not be bin. Refer to below command.

    "ModelUtil.exe -import -metadatastorepath=k:\aosservice\packageslocaldirectory -file=c:\NewFolder\MyCustomModel.axmodel"

    This is the one way of doing.

    other way will be through source control(Azure devops). If your code is in source control - You can connect devops in cloud hosted environment and download all the models.

    Thanks,

    Girish S.

  • CU07101257-0 Profile Picture
    130 on at

    Thanks Girish. Yes command prompt accessed via Admin Role and tried even after removing bin folder but getting same error.

    As you mentioned through Devops means choose Clone Repository from Devops and choose the required project.

  • GirishS Profile Picture
    27,827 Moderator on at

    Hi Sunil,

    Refer to the below links for configuring devops as source control in visual studio.

    https://stoneridgesoftware.com/setting-up-version-control-in-dynamics-365-for-operations-with-visual-studio/

    https://www.youtube.com/watch?v=EDVKULCMUbQ

    Thanks,

    Girish S.

  • GirishS Profile Picture
    27,827 Moderator on at

    Also try exporting and importing models through power shell. Refer to the below link.

    https://www.cloudfronts.com/blog/dynamics-ax/model-import-and-export-in-d365-finance-and-operations-using-powershell/

    Thanks,

    Girish S.

  • Arunraj Rajasekar Profile Picture
    1,743 on at

    In addition to Girish's comments, it is best practise to have your code backed up by source control if you have multiple dev instances.

  • CU07101257-0 Profile Picture
    130 on at

    Hi Arun,

    Thanks for your reply.

    We don't have multiple environment but our existing machine was configured in DevOps to keep backup of our codes. Hope we can connect the DevOps and get the latest code to new machine since old machine have some azure connector issue due to subscription change and Microsoft team ask to deploy new instead of updating existing one.

    I just want ask you another workaround : -   Copy the all the custom model files from old machine package library to new machine, then refresh model and build with data synchronize . Is it recommended or workable solution for this case

  • Verified answer
    Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    If you have your source code in Azure DevOps, take it from there. Go to your new VM, connect to the team project, configure workspace mappings and wait for the files to be downloaded.

    Copying data manually is possible, but it's more complicated. The source control system is there to handle these things.

  • Verified answer
    Arunraj Rajasekar Profile Picture
    1,743 on at

    Connect the devops to a new machine and download the most recent code. If you have any problems connecting to the new machine, we can walk you through the steps.

    If you have the same model in a new machine already and want to update it with recent code, you can export the project solution from the old machine and import it into the new machine.

  • GirishS Profile Picture
    27,827 Moderator on at

    I have one more suggestion - On the export command you have given outputpath as related to C:\user\admin. Try changing that to different folder drives instead of user folder.

    Thanks,

    Girish S.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans