> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/content-collections/administration/configure-external-integrations-on-prisma-cloud/integrate-prisma-cloud-with-azure-service-bus-queue.md).

# Integrate Prisma Cloud with Azure Service Bus Queue

Learn how to integrate Prisma® Cloud with Azure Service Bus Queue.

Prisma® Cloud can send alerts to a queue on the Azure Service Bus messaging service. To authorize access, you can either use a Shared Access Signature for limiting access permissions to the Service Bus namespace or queue, or use the service principal credentials associated with the Azure Cloud account you have onboarded to Prisma Cloud. If you plan to use the service principal that uses Azure Active Directory to authorize requests, you must include the additional role— [Azure Service Bus Data Sender](https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#azure-service-bus-data-sender)— and enable send access to the Service Bus namespace and queues.

When configured, as soon as an alert is generated, the entire alert payload is sent to the queue.

1. Configure the Azure Service Bus to receive Prisma Cloud alerts.
   1. Log in to the Azure portal, to create a [Service Bus namespace](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-portal#create-a-namespace-in-the-azure-portal) and [add a queue](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-portal#create-a-queue-in-the-azure-portal).

      Copy the queue URL.

      <figure><img src="/files/joTw84hETrn97HXYwDp5" alt="azure service bus queue url"><figcaption></figcaption></figure>
   2. Choose your authentication method.

      To authenticate and authorize access to Azure Service Bus resources, you can either use Azure Activity Directory (Azure AD) or Shared Access Signatures (SAS).

      * tt:\[If you want to use Azure AD] Add the **Azure Service Bus Data Sender** role to the service principal associated with the Prisma Cloud App registered on your Azure AD tenant.

        Refer to the Azure documentation on [assigning roles](https://docs.microsoft.com/en-us/azure/service-bus-messaging/authenticate-application#assign-rbac-roles-using-the-azure-portal).

        <figure><img src="/files/gCnuVVw5pVDGIkvDIkRG" alt="azure service bus queue role assignment 2"><figcaption></figcaption></figure>
      * tt:\[If you want to use a SAS] Get the connection string to enable Prisma Cloud to authenticate to the Azure Service Bus namespace or queue.

        You can define the scope for the connection string to be the namespace or a specific queue. Refer to the Azure documentation for [getting the connection string](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-portal#get-the-connection-string).

        You can either use the **RootManageSharedAccessKey** policy that enables access to the Service Bus namespace, and is created by default. This policy includes a Shared Access Signature (SAS) rule with an associated pair of primary and secondary keys that you can use on Prisma Cloud.

        Or, you can limit access to a specific queue, and create a policy with the minimum permissions for send access to the Azure Service Bus queue.

        <figure><img src="/files/CwX1B1Ujz0jzJePL07b1" alt="azure service bus queue policy"><figcaption></figcaption></figure>

        <figure><img src="/files/ZmIVvw9GlYa73JsUxazZ" alt="azure service bus queue policy 2"><figcaption></figcaption></figure>
2. Add the Azure Service Bus Queue on Prisma Cloud.
   1. Log in to Prisma Cloud.
   2. Select **Settings > Integrations**.
   3. **Add Integration > Azure Service Bus Queue**. A modal wizard opens where you can add the integration.
   4. Enter a **Name** and **Description** for the integration.
   5. Enter the **Queue URL** that you copied earlier.
   6. Select the method to authorize access to the queue.
      * Select **Azure Account** if you want to access the queue with the Prisma Cloud credentials which you used to onboard your Azure subscription. If you missed adding the **Azure Service Bus Data Sender** role to the service principal, an error message will display when you save the integration. Select the Azure account from the drop-down.
      * Select **Shared Access Signature**, if you want to use a role with limited permissions, and paste the connection string value for the scope selection.
   7. Click **Next** and then **Test**.

      You should receive a success message.

      <figure><img src="/files/dMxOqrBzPCEE1m30IcF4" alt="azure service bus queue int 1"><figcaption></figcaption></figure>

      And can verify that the message count increments on the queue on the Azure portal.

      <figure><img src="/files/6hBYIuKRlnQX5GGeVnLe" alt="azure service bus integration verify"><figcaption></figcaption></figure>
   8. Review the **Summary** and **Save** the integration.

      After you set up the integration successfully, you can use the Get Status link in **Settings > Integrations** to periodically check the integration status.

      <figure><img src="/files/awWi0pESgyCaRa07SQhw" alt="get status"><figcaption></figcaption></figure>
3. [Create an Alert Rule for Run-Time Checks](/content-collections/alerts/create-an-alert-rule-cloud-infrastructure.md) or modify an existing rule to enable the Azure Service Bus Queue integration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prismacloud.io/content-collections/administration/configure-external-integrations-on-prisma-cloud/integrate-prisma-cloud-with-azure-service-bus-queue.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
