---
title: "Create a Sitecore Content Hub action"
slug: "create-a-sitecore-content-hub-action"
abstract: "How to create a Sitecore Content Hub action in order to connect to an Azure Service Bus"
---
# Create a Sitecore Content Hub action

You use a Sitecore Content Hub action to connect to an Azure Service Bus and post a message when a specified trigger is activated.

You can use two methods to create a Sitecore Content Hub action:

- M Azure Service Bus. Use this to connect to an out-of-the-box Azure Service Bus on a Content Hub instance.
- Azure Service Bus. Use this to connect to an Azure Service Bus.

<details>
<summary><h2>Create an M Azure Service Bus action</h2></summary>

To create an M Azure Service Bus action:

1. In the Sitecore Content Hub, click **Manage**.
2. Click **Actions**, and click **New action**
3. Enter, for example, the following values:
    - **Name**: *Sitecore*
    - **Type**: *M Azure Service Bus*
    - **Label**: Sitecore
4. Copy the `Hub in` and `Hub out` string values. You must have these in order to configure the Sitecore connection string as specified in [Add connection strings for CMP to your Sitecore instance](https://doc.sitecore.com/xp/en/developers/connect-for-ch/52/connect-for-content-hub/add-connection-strings-for-cmp-to-your-sitecore-instance.html "Add connection strings for CMP to your Sitecore instance")
5. To save the new action, click **Save**.

</details>

<details>
<summary><h2>Create an Azure service bus action</h2></summary>

To create an Azure Service Bus action:

1. In the Sitecore Content Hub, click **Manage**.
2. Click **Actions**, and click **New action**
3. Enter, for example, the following values:
    - **Name**: *Sitecore*
    - **Type**: *Azure Service Bus*
    - **Connection string**: enter the connection string for the service bus here. The connection string must be a connection string to the entire Azure Service Bus.
    - **Destination type**: *Topic*
    - **Destination**: *hub_out*
4. To test the connection to the Azure Service Bus, click **Test Connection**.
5. To save the new action, click **Save**.

</details>