Skip to main content

Posts

Showing posts from March, 2023

Importing License file in D365 F&O using CMD

  To import the attached license to your dev system, use the below command line. K:\AOSService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir K:\AOSService\PackagesLocalDirectory --bindir K:\AOSService\PackagesLocalDirectory --sqlserver . --sqldatabase AxDB --sqluser axdbadmin --sqlpwd [password for axdbadmin] --licensefilename c:\temp\[license file name].txt Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir C:\AOSService\PackagesLocalDirectory --bindir C:\AOSService\PackagesLocalDirectory --sqlserver . --sqldatabase AxDB --sqluser axdbadmin --sqlpwd 123456It --licensefilename C:\license\Flex_License.txt

Import DB backup from .BacPac file in D365 F&O using CMD

Hello Devs! This is one of the most quickest way to import DB from .Bacpac file. Bacpac files are those which are generated from Tier 2 or higher environments as a DB backup.   Alternate Approach ----> Using wizard Prerequisites: 1) Access to LCS folder Asset library --> Database Backup Incase you don't see the folder ask your project owner to give you the access. Step 1:  Download the file and save it in local non-user directory.  Step 2: Download SqlPackage.Exe.  Download link :  https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-download?view=sql-server-ver15 Extract it and Open CMD as admin.  Step 3 :  Navigate to directory where you have extracted the SqlPackage.Exe folder using cmd and execute the command. In my case the command look like this, C:\SqlPackageExe>SqlPackage.exe /a:import /sf:C:\DB\AFP-D365-UATbackup.bacpac /tsn:LOCALHOST /tdn:AxDB /p:CommandTimeout=6000 /TargetEncryptConnection:False Note: You can replace C:\DB\AFP-D365-UATbackup.bacpac

Applying Service Updates to On-Prem Environment in D365 F&O

 Hello Devs! In case of On-Premises environments we need to apply service updates using CMD  and below are the series of steps and commands. Prerequisites: 1) Access to LifeCycle Services(LCS).  Step 1 :   Login to LCS, Check for the latest available service updates and download it. Download package and Unzip the package(Don't forget to unblock it before extracting, Right click and check unblock). Step 2 : Navigate to the folder where file has been extracted using CMD and Execute the below command to check for the installed versions of the services ServiceUpdate2 is my folder where I have extracted the file.  C:\ServiceUpdate2>AXUpdateInstaller.exe list Copy and save the output for future use, In my case it look like this Now, Edit  DefaultTopologyData file placed within the extracted folder.  Add those services which we have copied in last step and change the machine name(In my case its  VW-LAB-Dyndev1). Step 3 : We need to execute below series of  command .  Note : In my case