In the previous blog we saw how to install Sitecore on Azure PaaS but that is one part of it. Once you successfully install the sitecore, you should also be able to publish your Visual Studio code to this instance.
In this blog, we will see how to do it. Assuming the below things are in place:
- You have Sitecore installed on Azure.
- You have a Sitecore Visual Studio solution ready. In this blog, we will use a dummy one.
Lets see the steps involved:
- Go the Azure Portal >> Resource Group.
- Click on your resource group for Sitecore (sitecoredemo in my case)
- Lets assume we want to deploy the code first on CM site, so click on CM app service.
- Once the detail page of App service is loaded, you will see an option for “Get publish profile”.
- Click on Get Publish profile and the file will be downloaded on your machine.
- Go to Visual Studio solution.
- Build the solution. Once the build is successful, right click >> Publish.
- Click on Publish.
- Click on Import Profile.
- Browse the downloaded publish profile file.
- The publishing will begin.
- Once the publishing is successfully completed, browse the CM site and access Sitecore to verify if everything is working as expected.
To publish the code to CD site, follow the similar steps, go to CD app service and download the publish profile.
This completes our learning of publishing VS code to Sitecore Azure PaaS instance.
Thank you.. Keep Learning.. Keep Sitecoring.. 🙂
Pingback: How to install Sitecore on Azure | Sitecore Diaries