Run Sitecore Commerce Instance in Azure VM

Owing to Errors when trying to setup second instance of Sitecore Commerce Habitat site using Solr in same machine but different set of website ports started thinking about options and running Sitecore Commerce in a VM seemed one. Having heard the cliche many times - "the VM is no different from a local machine but runs in cloud", decided to give it a shot. The install was smoother than what i expected. Once you provision a VM from the Azure portal and login to the machine using the public ip through remote desktop connection,

1. From the VM server manager install IIS, Powershell etc. (the installation window is right there when you login to the machine so, just click through)
2. Install SQL Server 2017. Later found that you can start a VM with pre-installed SQL Server.
3 Enable Enable TCP/IP in SQL Configuration Manager since i had installed on my own.
4 Install Google Chrome (most important, Solr wasn't opening up in IE for some reason)
5. Install Solr using notes in Sitecore 9.2 installation with SIA
6 Check Solr
7. Run SIA and run pre-requisites for first time

8. Switched size of VM from B1ms to B4ms - 2 gib to 16 gib ram : Sitecore Pre-requisites installed faster and most importantly, your folders in the VM don't get wiped off when you do the switch-over
9. Stopped the machine when not in use and i didn't keep a public ip since i'm just testing (secure too)
10. Install Redis needed for Sitecore Commerce
11. Made changes relevant to environment in the Commerce deploy script like SQL Server name, pwd
12. Run Commerce deploy script
13. Clean install without any errors
14 Proper Template Overrides -

15. Indexing fine -


16 Habitat Content tree looks good -

17. Storefront against Master DB -
18. No errors when Storefront is pointed to Web DB -
19. Now, i can either install VS and develop in VM or write code in my local machine and deploy to VM as per https://docs.microsoft.com/en-us/azure/virtual-machines/windows/publish-web-app-from-visual-studio

20 . List of changes in the deploy script -
21. Executed the deploy script in my local machine and i've a clean second instance now. Note that just the website name is changed to show that this instance is different from the one in vm.



Comments