Views:

Applies to Product – Dynamics 365 Lifecycle Services


What’s happening?
The customer is seeking guidance on how to deploy custom packages from an on-premises development server to cloud-hosted UAT and Live environment servers.
 

Reason:
The underlying cause of this is related to the deployment process of custom packages across different environments, specifically from on-premises to cloud.
 

Resolution:

  1. Export the Model from On-Prem Server:
  2. In Visual Studio on the on-prem development server:
    • Open the Dynamics 365 menu > Model Management > Export Model.
    • Select the custom models to export.
    • Save the model file (.axmodel) and the descriptor file (.axmodeldescriptor) locally.
  3. Copy Model Files to Cloud Dev Server:
  4. Use any Azure File Storage or a shared location to copy the model files to the cloud development server.
  5. Import Model:
  6. In Visual Studio on the cloud development environment:
    • Go to Dynamics 365 menu > Model Management > Import Model.
    • Select the .axmodel file and follow the wizard to import the model.
  7. Compile and Sync:
  8. Compile the imported model and sync it.
  9. Create a Deployable Package:
  10. Create a deployable package from the compiled model.
  11. Apply the Deployable Package to the UAT Environment:
  12. Apply the deployable package to the UAT environment to complete the deployment process.
For further details, refer to the official documentation on applying updates to on-premises deployments and setting up continuous integration and deployment using Azure Pipelines.