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:
- Export the Model from On-Prem Server:
- 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.
- Copy Model Files to Cloud Dev Server:
- Use any Azure File Storage or a shared location to copy the model files to the cloud development server.
- Import Model:
- 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.
- Compile and Sync:
- Compile the imported model and sync it.
- Create a Deployable Package:
- Create a deployable package from the compiled model.
- Apply the Deployable Package to the UAT Environment:
- Apply the deployable package to the UAT environment to complete the deployment process.
