> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xdr-5.x/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-bringing-your-own-azure-app-byoa-outposts/task-3-deploy-the-azure-byoa-outpost.md).

# Task 3: Deploy the Azure BYOA outpost

While creating the Azure BYOA outpost, you supply the relevant BYOA IDs to Cortex. This topic provides the instructions for deploying the outpost with the advanced BYOA settings.

## Step 1. Create the Azure BYOA outpost in Cortex

1. In Cortex XDR, navigate to **Settings → Data Sources & Integrations → Outposts**.
2. Click **New Outpost**.
3. In Cortex XDR, choose **Azure**.
4. If you are using a FedRAMP-certified (Government) Cortex XDR tenant, you are able to choose between the following environments:
   * **Commercial:** (Default) Standard cloud deployment typically used for private and public sector organizations that do not require isolated government-specific infrastructure.
   * **Government:** Microsoft Azure Government environments for compatibility with FedRAMP-certified tenants.
5. Enter the instance name and the Entra tenant ID of the Azure tenant in which you want to establish the outpost. The Entra tenant ID is validated automatically.\
   \
   **Note**: Due to limitations in Terraform, the Azure subscription name cannot contain blanks.
6. Click **Show advanced settings** and toggle **Bring Your Own App (BYOA)** on.
7. Enter the following IDs:
   * **Tenant ID**: Your Entra ID tenant ID, which is validated automatically.
   * **Application (client) ID**: The Azure application ID, which you retrieved while creating and configuring the app registration in Task 2, either:
     * Using the `customer_app_client_id` value outputted by the helper shell script's output.
     * Manually, in the Azure portal's **Register an application > Overview** page.
   * **Service Principal Object ID**: The app's service principal object ID This you defined while creating and configuring the app registration in Task 2, either:
     * Using the `customer_sp_object_id` value outputted by the helper shell script's output.
     * Manually, in the Azure portal's **Microsoft Entra ID → App registrations → \<your AppReg> → Owners → Add owners** page. You can find the value in the app registration's Overview page's **Object ID** field.
8. If you also created the scanner managed identities, enable the **Bring Your Own Scanner Managed Identities** toggle in the wizard and paste the UAMI resource IDs that you saved in Task 2 (either using the helper shell script's output or manually in the Azure portal).
9. (Optional) Define tags and tag values to be added to any new resource created by Cortex in the cloud environment. Click **Next**.
10. Click **Download Terraform** to download the Terraform template file.

## **Step 2. Execute the template in Azure to deploy the outpost**

In the previous step, you downloaded the Terraform template file in the outpost creation wizard.

Now, you log in to your CSP and execute the Terraform template file.

Follow the instructions for deploying standard Azure outposts.

To view outposts and their details, navigate to **Settings → Data Sources & Integrations → Outposts**.

## What's next?

Proceed to [Task 4: Verify the BYOA outpost deployment](/cortex-xdr-5.x/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-bringing-your-own-azure-app-byoa-outposts/task-4-verify-the-byoa-outpost-deployment.md).


---

# 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://cortex-docs.paloaltonetworks.com/cortex-xdr-5.x/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-bringing-your-own-azure-app-byoa-outposts/task-3-deploy-the-azure-byoa-outpost.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.
