Enabling the CMP connector in an environment deployed to SitecoreAI
To use Sitecore Content Management Platform (CMP) in an environment deployed to SitecoreAI, you must configure and enable the CMP connector.
Before you enable the CMP connection in an environment deployed to SitecoreAI, you must have:
-
Access to the Deploy app.
-
A user in Sitecore Content Hub that has the relevant user rights.
-
An OAuth client for the connector.
-
An M Azure Service Bus action. If you already enabled the CMP connector in a local development environment, you can reuse the M Azure Service Bus action you created previously.
To configure and enable the CMP connector in your SitecoreAI environment, you must create the relevant environment variables using the Deploy app.
To configure and enable the CMP connector:
-
Log in to the Deploy app.
-
On the navigation pane of the Deploy app, click Projects.
-
On the Projects page, click the project that contains the environment where you want to enable the CMP connector.
-
On the project page, click the environment where you want to enable the CMP connector.
-
On the environment page, click Variables, then click Create variable.
-
Create the following variables. For each variable, set the Target to CM.
Name
Value
Description
Sitecore_ConnectionStrings_CMP_dot_ContentHubClientId={client_id};ClientSecret={client_secret};UserName={username};Password={password};URI={uri};Example:
ClientId=App;ClientSecret=a51a8fb6-4f57-1234;UserName=john;Password=hunter2;URI=https://example.com/;The Client ID and Client Secret of the connector's OAuth client.
The
usernameandpasswordof the user you created in Content Hub.uriof your Content Hub instance.Sitecore_ConnectionStrings_CMP_dot_ServiceBusEntityPathInAzure Service Bus connection string with incoming topic
The Hub out value of the M Azure Service Bus you created.
Sitecore_ConnectionStrings_CMP_dot_ServiceBusEntityPathOutAzure Service Bus connection string with outgoing topic
The Hub in value of the M Azure Service Bus you created.
Sitecore_ConnectionStrings_CMP_dot_ServiceBusSubscriptionSubscription name. Set the value to
hub_out_subscriptionwhen using M Azure Service Bus action.The Name of the M Azure Service Bus you created.
SITECORE_AppSettings_cmpEnabled__defineyesBy default, when you deploy an environment to SitecoreAI, the CMP connector is disabled. To enable the connector, set this value to
yes. -
In the Deploy app, create a build and deploy it to your environment.
When the deployment is complete, you can configure items for content import and then create a trigger for your M Azure Service Bus action.