# 13.2 Configure your Azure Event Hub Destination in Adobe Experience Platform

## 13.2.1 Identify Required Azure Connection parameters

To define an Event Hub destination in Adobe Experience Platform you need your:

* Event Hubs namespace
* Event Hub
* Azure SAS Key name
* Azure SAS Key

Event Hub and EventHub namespace have been defined in the previous exercise: [Exercise 1 - Setup Event Hub in Azure](https://docs.adobesandbox.com/comprehensive-technical-tutorial-archive/module13/ex1)

### Event Hubs Namespace

To lookup the above information in Azure Portal, navigate to <https://portal.azure.com/#home>. Make sure that you are using the correct Azure account.

Select **All Resources** in Azure Portal:

![2-01-azure-all-resources.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-307ccdaea5d21bcebb540dc2aa69ccdcdd8f4849%2F2-01-azure-all-resources.png?alt=media)

### Event Hub

Look for a resource with resource type **Event Hubs Namespace**, if you followed the naming conventions used in the previous exercise you Event Hubs Namespace will be `--demoProfileLdap---aep-enablement`. Take a note of it, you will need it in the next exercise.

![2-02-select-event-hubs-namespace.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-dce81cc58fe63ba0b87ce8e8fa2d177e59cba349%2F2-02-select-event-hubs-namespace.png?alt=media)

Click on the Event Hubs Namespace name to get the details:

![2-03-select-event-hub.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f887824e56d83970ec96524ea53ee9f6167e3c47%2F2-03-select-event-hub.png?alt=media)

Select **Event Hubs** to get a list of Event Hubs defined in your Event Hubs Namespace, if you followed the naming conventions used in the previous exercise you will find an Event Hub named `--demoProfileLdap---aep-enablement-event-hub`. Take a note of it, you will need it in the next exercise.

![2-04-event-hub-selected.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-08837c6220d79a014bb2da6bb1fa919231ca3955%2F2-04-event-hub-selected.png?alt=media)

### SAS Key Name

Select **Shared access policies** for your **Event Hubs Namespace**

![2-05-select-sas.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-eefd80f05ec98384602bfb55dd8ebd10fb48bfbf%2F2-05-select-sas.png?alt=media)

You will see a list of Shared access policies. The SAS Key that we are looking for is **RootManageSharedAccessKey**. This is the SAS Key name. Write it down.

![2-06-sas-overview.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d39ac013e25af11768f1da2b37c25b4ec8005a9e%2F2-06-sas-overview.png?alt=media)

### SAS Key Value

Click on the **RootManageSharedAccessKey** to get the SAS Key Value. And press the **Copy to clipboard** icon to copy the **Primary key**:

![2-07-sas-key-value.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-b04cdc3bd77d7673d8f24458e550026ed911c83b%2F2-07-sas-key-value.png?alt=media)

### Destination Values Summary

At this point you should have identified all the values needed to define the Azure Event Hub destination in Adobe Experience Platform Real-time CDP.

| Destination Attribute Name | Destination Attribute Value | Example Value                                  |
| -------------------------- | --------------------------- | ---------------------------------------------- |
| sasKeyName                 | SAS Key Name                | RootManageSharedAccessKey                      |
| sasKey                     | SAS Key Value               | srREx9ShJG1Rv7f/...                            |
| namespace                  | Event Hubs Namespace        | `--demoProfileLdap---aep-enablement`           |
| eventHubName               | Event Hub                   | `--demoProfileLdap---aep-enablement-event-hub` |

## 13.2.2 Create Azure Event Hub Destination in Adobe Experience Platform

Log in to Adobe Experience Platform by going to this URL: <https://experience.adobe.com/platform>.

After logging in, you'll land on the homepage of Adobe Experience Platform.

![Data Ingestion](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d3766e8abcdcae565589d172ff39148a026b3712%2Fhome.png?alt=media)

Before you continue, you need to select a **sandbox**. The sandbox to select is named `--aepSandboxId--`. You can do this by clicking the text **\[Production Prod]** in the blue line on top of your screen. After selecting the appropriate sandbox, you'll see the screen change and now you're in your dedicated sandbox.

![Data Ingestion](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f8fe0607dc3e272ebd2416a98220bb1d82c1a166%2Fsb1.png?alt=media)

Go to **Destinations**, then go to **Catalog**.

![Data Ingestion](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-05cc46f329f861377f1db282691dbf15b6ca8d42%2Fsb2a.png?alt=media)

Select **Cloud Storage** and go to **Azure Event Hubs** and click **Set up** or **Configure**:

![2-08-list-destinations.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-14300e8fa11e279b27c0882a639eec80121badde%2F2-08-list-destinations.png?alt=media)

Fill in the destination values that you have collected in the previous exercise. Next, click **Connect to Destination**.

![2-09-destination-values.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-fbac4f35a0c66af5c1a8b14c7ba079c31357f8d8%2F2-09-destination-values.png?alt=media)

If your credentials were correct, you'll see a confirmation: **Connected**.

![2-09-destination-values.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-5d05e01a82d0a3451c8b72b53b9ada175d9bd93a%2F2-09-destination-valuesa.png?alt=media)

You now need to enter the name and description in the format `--demoProfileLdap---aep-enablement`. Enter the **eventHubName** (see previous exercise, it looks like this: `--demoProfileLdap---aep-enablement-event-hub`) and click **Next**.

![2-10-create-destination.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-0a7d62f8d75c522d624bbfb79b89bdd99c39fad9%2F2-10-create-destination.png?alt=media)

Click **Save & exit**.

![2-11-save-exit-activation.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-1e16d1327a1fd9aa73c66bba9e1980fefb9a1273%2F2-11-save-exit-activation.png?alt=media)

Your destination is now created and available in Adobe Experience Platform.

![2-12-destination-created.png](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f973d9d492fa160d7e29092914544ebf17274d22%2F2-12-destination-created.png?alt=media)
