Exercise – Build and deploy a package configuration
As an e-Commerce developer, you have been asked to build a customized solution in an e-Commerce extension and then deploy the package to the online site.
In this exercise, you will perform the following tasks:
- Build the package in Visual Studio Code and then upload it through Dynamics Lifecycle Services.
- Deploy the package configuration through Dynamics Lifecycle Services.
Before you begin
You will need a developer sandbox environment and a trial or permanent license for using Visual Studio Code. Also, you will need a subscription to Dynamics Lifecycle Services and a created project for CSU and an e-Commerce site.
Build and upload the package
To build and upload the package, follow these steps:
- Open Visual Studio Code and select Terminal > New Terminal window (ensure that the window is a Command Prompt and not a PowerShell).
- In the New terminal window, run the following command and then select Enter to run the command.
c:\repos\D365.Commerce.Fabrikam>yarn msdyn365 pack
- Go to https://lcs.dynamics.com/, where you should see a sign-in page.
- Select Sign in and then enter your Dynamics Lifecycle Services-provided account credentials.
- Select the e-Commerce project that you will be using. Scroll to the right to see more options.
- To upload the package, in the More tools section, select the Asset Library tile.
- On the Asset Library page, in the left pane, select the e-Commerce package tab. If you don’t see the e-Commerce package tab, you must enable e-Commerce features. Select the plus sign (+).
- In the Upload e-Commerce package file dialog box, enter a name and description for the package, and then select Add a file.
- In the Upload file asset dialog box, select Browse and then browse to the location of the package zip file that you created previously. Select the file and then select Upload.
- When the upload is complete, you will be returned to the Upload e-Commerce package file dialog box. Select Confirm to process the upload.
- If processing has completed successfully, a check mark will appear in the Valid column. (This process can take 40 to 50 minutes.)