Install Sitecore Content Hub on Azure PaaS 2.0

You are all aware of the installation of Sitecore Connect for Content Hub on the premise environment. In this blog post, I am going to describe how to install Sitecore Connect for Content Hub in Sitecore Azure Cloud Service PaaS 2.0 environment.

In PaaS1.0, you can install it using by Sitecore Azure Toolkit and SXP ARM templates, but in PaaS2.0, you cannot directly access the App Service as it provides an extra security layer using Bastian. Azure Bastion is a fully managed service that is provisioned in the PaaS 2.0 Hub environment to securely connect virtual machines via a private IP address. You can find more information here: Azure Bastion for PaaS 2.0 

What is Azure Bastion?

Step 1: Log in to the Sitecore Content Hub and collect the following details:

  • Need to create an OAuth Client ID and secret. (click Manage > OAuth Clients >)
  • Need to create an Action to get the Hub in and Hub out value.  (click Manage > Actions>)
  • Need to create one user for CMP/DAM configuration. 

Step 2: Set up all the installation files: 

  • Create a local folder in the file system, “SCCH SIF Installation”.
  • Download the Sitecore Connect for Content Hub WDP Package and store it in the local folder from here: Sitecore Connect™ for Content Hub 5.2.0

Step 3: Prepare the Script: To run the script and install and configure the connector, below parameters will be needed

  • ResourceGroupName 
  • WebApp Service Name
  • CHClientId and CHClientSecret - a Content Hub OAuth Client ID and Client Secret.
  • CHUserName and CHPassword - a Content Hub username and password that is used as the identification of Sitecore to access Content Hub.
  • CHUri - the URI to your Content Hub instance 
  • CHServiceBusEntityPathIn and CHServiceBusEntityPathOut - to find these connection strings, in Content Hub, create a new action of the type M Azure Service Bus or use the existing one. Note down the connection strings in Hub out for CHServiceBusEntityPathIn and Hub in for CHServiceBusEntityPathOut.
  • CHServiceBusSubscription - the name of your Sitecore Azure subscription. CHSearchPage - the URI to the Search Page you want to use to select DAM Assets, for https://{content-hub instance} /en-us/sitecore-dam-connect/approved-assets

Step 4: Log in to the Azure Portal and select from resource group, choose the resource Hub.

Step 5: In the Hub Resource Group, search for Bastian VM and connect to it. Create an RDP connection to a Windows VM using Azure Bastion. Once you connect, it will open the Virtual Machine where you can start the installation of Sitecore Connect for Content Hub.

Step 6: Install Microsoft Web Deploy on the machine from here: Web Deploy

Step 7: Download and install the Azure CLI on Windows VM from here: Install Azure CLI on Windows. It will help us to execute the Azure command in the PowerShell window. 

Step 7: Open a PowerShell window in administrator mode and run the following command "az login" because before you can execute Azure CLI commands, you need to sign into Azure and choose the active subscription.

Step 8: Or you can execute the following command to set the active subscription: az account set --subscription "2e127ba9-7023-47a7-8945-4dcd8305f747"

Step 9: Go to the "C:\Temp\SCCH SIF Installation" folder and run the following command using the parameter mentioned in step 3.

  <path where you extracted the SCCH SIF installation script>\deploy.ps1
  `-ScchWdpPackage “<path of SCCH module installation package downloaded>”
  `-InstanceName “<Sitecore instance name>” `-InstanceUrl “<Sitecore
  instance url>” `-SitecoreAdminUser “<Sitecore admin user name>”
  `-SitecoreAdminPass “<Sitecore admin password>” `-SqlInstanceName
  “<Sitecore SQL Database prefix name>” `-SqlUser “<SQL server user
  name>” `-SqlPass “<SQL server password>” `-SqlServerName “<SQL
  server name>” `-SkipDatabaseInstallation “<true or false for skip
  database installation>”

Step 10: Enable DAM and CMP, and Content-Security-Policy in web.config.

Sitecore

Happy Sitecoreing ðŸ˜Š

Comments

Popular posts from this blog

Sitecore Installation Error: Failed to Start Service 'Sitecore Marketing Automation Engine'

Import CSV Data in Sitecore Using PowerShell: Part-3

Error: Method Through Reflection is Not Allowed after Applying Sitecore Hotfix