Skip to main content

Install Solr as an Azure App Service

After Sitecore 9.0.2, Solr is a supported search technology for Sitecore Azure PAAS deployments. In this article, we will install SOLR service 8.4.0 in Azure App Service for Sitecore 10.

1. Create Azure App Service

Login to Azure and create Azure App service.


Make sure Runtime stack should be Java.

2. Download Solr

Download Solr 8.4.0 from https://archive.apache.org/dist/lucene/solr/

Extract the files and add the below web.config file in the Solr package.

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

 <system.webServer>  

   <handlers>

     <add  name="httpPlatformHandler"

           path="*"

           verb="*"

           modules="httpPlatformHandler"

           resourceType="Unspecified" />

   </handlers>

   <httpPlatform processPath="%HOME%\site\wwwroot\bin\solr.cmd"

       arguments="start -p %HTTP_PLATFORM_PORT%"

       startupTimeLimit="20"

       startupRetryCount="10"

       stdoutLogEnabled="true">

   </httpPlatform>

 </system.webServer>

</configuration>


3. Deployment

You can use FTP to copy the local Solr files to the web root of the App Service. 

Go to Deployment Center and copy the FTPS endpoint, Username & Password.


Then you can use any FTP tool such as FileZilla to copy the local Solr files to /site/wwwroot folder of App service.

Once all the files will be copied, restart the App Service.

Browse the App Service URL, you will see the Solr Dashboard & you can use this Solr in Sitecore instances for indexing



Comments

  1. Its not working. even after following all steps i still see the default start page!

    ReplyDelete
    Replies
    1. Please share the error message. Try to navigate this url "App Service URL"/solr

      Delete
  2. Really helpful. Thank you so much.

    ReplyDelete
  3. Hi Ashish, how you will deal with "all indexes are locked on disk" as it is very common issue now with Solr as Azure app service

    ReplyDelete
  4. This blog post is a plagiarism of Dan Cruickshank's post. No additional value added, and no reference given to Dan Cruickshank. https://getfishtank.ca/blog/installing-solr-app-service-in-sitecore-azure-paas

    ReplyDelete
  5. Thanks I follow the above step and able to host Solr on window app service, Thanks to share .

    ReplyDelete
  6. You've shared some excellent material. I'm grateful for this post custom erp solutions

    ReplyDelete

Post a Comment

Thanks for your comment. In case of any concerns, please contact me at er.ashishsharma@outlook.com

Popular posts from this blog

Comparison between Azure Application Gateway V1 and V2

Microsoft has announced new version of Azure Application Gateway and its Web Application Firewall module (WAF). In this article, we will discuss about the enhancements and new highlights that are available in the new SKUs i.e. Standard_v2 and WAF_v2. Enhancements and new features: Scalability: It allows you to perform scaling of the number of instances on the traffic. Static VIP: The VIP assigned to the Application Gateway can be static which will not change over its lifecycle. Header Rewrite: It allows you to add, remove or update HTTP request and response headers on application gateway. Zone redundancy: It enables application gateway to survive zonal failures which allows increasing the resilience of applications. Improved Performance: Improvement in performance during the provisioning and during the configuration update activities. Cost: V2 SKU may work out to be overall cheaper for you relative to V1 SKU. For more information, refer Microsoft prici

Difference between Azure Front Door Service and Traffic Manager

Azure Front Door Service is Microsoft’s highly available and scalable web application acceleration platform and global HTTP(s) load balancer. Azure Front Door Service supports Dynamic Site Acceleration (DSA), SSL offloading and end to end SSL, Web Application Firewall, cookie-based session affinity, URL path-based routing, free certificates and multiple domain management. In this article, I will compare Azure Front Door to Azure Traffic Manager in terms of performance and functionality. Similarity: Azure Front Door service can be compared to Azure Traffic Manager in a way that this also provides global HTTP load balancing to distribute traffic across different Azure regions, cloud providers or even with your on-premises. Both AFD & Traffic Manager support: Multi-geo redundancy: If one region goes down, traffic routes to the closest region without any intervention. Closest region routing: Traffic is automatically routed to the closest region. Differences: Azu

Azure Machine Learning public preview announcement //Build, May 2021

Azure service updates Azure Machine Learning public preview announcement //Build, May 2021 New feature: Prebuilt Docker images for Inferencing, now in public preview. Click here for more information.

Azure Blob storage - Last access time tracking now generally available

Azure service updates Azure Blob storage - Last access time tracking now generally available This feature helps administrators control costs through the automatic tiering and deletion of blobs via tiering including when the data was last read. Click here for more information.