# Azure OpenAI integration setup

{% hint style="info" %}
If you’re new to integrations in Rewst, read through our introductory integration documentation [here](https://docs.rewst.help/documentation/integrations).

For our general OpenAI integration, see [this documentation](https://docs.rewst.help/documentation/integrations/integration-guides/openai/openai-integration-setup).&#x20;
{% endhint %}

### Azure OpenAI set up Steps in Microsoft Azure

1. Navigate to your [Microsoft Azure Portal](https://portal.azure.com).
2. Click **+Create a Resource**.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fgit-blob-f83621c556d1055261127f979b96d81bf911ad0a%2Fazure-ai-01%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

3. Search for `Azure OpenAI`.
4. Click the tile for **Azure OpenAI**.\ <br>

   <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FjpQwoHe1jEwlYRcXajtU%2Fimage.png?alt=media&#x26;token=fe167b5e-b56b-41c0-bb64-de6c335e361f" alt="" width="375"><figcaption></figcaption></figure>
5. Request access to the Azure OpenAI service.

{% hint style="info" %}
You must fill out a form to request access to the Azure OpenAI service
{% endhint %}

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fgit-blob-84bd6e4510cc183e0d15f8071540c1ba9bc1e85e%2Fazure-ai-03.png?alt=media" alt="" width="366"><figcaption></figcaption></figure>

6. Wait for the welcome email.

{% hint style="warning" %}
Note that activation of the service can take up to 48 hours, based on Microsoft's timelines.
{% endhint %}

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fgit-blob-a6319d9338cfcbd33192b96dad49cca5d6b5249f%2Fazure-ai-04.png?alt=media" alt="" width="336"><figcaption></figcaption></figure>

7. Return to the Azure Portal upon receiving the approval email.
8. Create the OpenAI Service in your Azure subscription.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fgit-blob-543188f38d4b32836acc154d88229cacd52d93df%2Fazure-ai-05.png?alt=media" alt="" width="370"><figcaption></figcaption></figure>

9. Complete the steps **Network > Tags > Review + Submit**
10. Click **Go to resource** after submitting and confirming that deployment has finished.<br>

    <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FjOcrIyaWIhbcudDh8UuH%2Fimage.png?alt=media&#x26;token=ff48f5a4-83be-4a06-9e6c-999b849e2615" alt="" width="375"><figcaption></figcaption></figure>
11. Click **Go to Foundry Portal**.<br>

    <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FViGFAGGOli5dCAm85Hki%2Fimage.png?alt=media&#x26;token=c676a2b3-b80d-4d90-80ae-0d523e816dfe" alt="" width="375"><figcaption></figcaption></figure>
12. Navigate to the **Deployments** tab on Azure AI Foundry.<br>

    <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FPLbi8GqXcR0jvQtKCX9K%2Fimage.png?alt=media&#x26;token=989324ae-bf20-42b2-8e88-187d10f08352" alt="" width="375"><figcaption></figcaption></figure>
13. You can now deploy a desired OpenAI model. The below example deploys a `gpt-5-mini` model. Click **Deploy Model** **>** **Deploy base model**.<br>

    <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FumEu9uUxdVVNq8cncd2t%2Fimage.png?alt=media&#x26;token=d9f9fff1-35d7-4760-979b-052ab649c34f" alt="" width="375"><figcaption></figcaption></figure>
14. Search for `gpt-5-mini` and select `gpt-5-mini`. Click **Confirm**.<br>

    <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FX8Ndw5LknAoY8wJbpdAi%2Fimage.png?alt=media&#x26;token=0148459d-a0a4-4e37-ac34-a6c629b308cf" alt="" width="375"><figcaption></figcaption></figure>
15. Click **Deploy**.<br>

    <figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FG8l2XF46KhvMRMmu858z%2Fimage.png?alt=media&#x26;token=a03f4610-7897-436a-be92-15c66386c084" alt="" width="375"><figcaption></figcaption></figure>
16. You'll be redirected to the deployed model page that contains the **Key** and the **Target URI**. Copy both values and store them somewhere secure. These will be needed for further setup steps in Rewst.&#x20;

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fe2riGPH4YiNCqfEXqxIG%2Fimage.png?alt=media&#x26;token=8669a2c8-2350-4f02-863d-1ccc1409195a" alt="" width="375"><figcaption></figcaption></figure>

### **Set up steps in Rewst**

If you have not yet set up the OpenAI integration in Rewst, follow our integration setup steps in Rewst in our general [OpenAI integration setup guide](https://docs.rewst.help/documentation/integrations/integration-guides/openai/openai-integration-setup).

### Configure Azure OpenAI with existing OpenAI integrations

If you already have an OpenAI integration configured, you can add an instance for Azure.

1. Navigate to the integration's configuration page by navigating to **Marketplace > Integrations > OpenAI**.
2. Click **Default** **> Add Configuration**.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fgit-blob-cb0c5e18cf83aacc15d8790b6944444b6cbca36c%2Fazure-ai-10.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Name the configuration `Azure`.
3. Confirm that your Base URL reflects the accurate resource and region collected from Azure. Incorrect URLs will prevent Rewst from accessing the OpenAI service.
4. Enter the **Azure API Version**.

{% hint style="warning" %}

### Crafting the Base URL

The Base URL is what directs Rewst to communicate with the correct Azure OpenAI instance. Here’s how to construct it:

**Anatomy of the Base URL**: The standard structure of the Base URL provided by Azure typically looks like this: `https://<resource-name>.openai.azure.com/openai/deployments/<deployment-name>`

* If you are using GPT 3.5 Turbo, for example, you will append it to the URL like so: `https://<resource-name>.openai.azure.com/openai/deployments/gpt-35-turbo`

**Customize Your Base URL**: Depending on your service instance or specific requirements, you may need to alter the base URL. For example:

* If you have a custom deployment named `custom-model`, you might append it to the URL like so: `https://<resource-name>.openai.azure.com/openai/deployments/<custom-model>`
* Ensure you replace `<resource-name>, <deployment-name>, and/or` `<custom-model>` with the actual information from your Azure OpenAI service.
  {% endhint %}

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fgit-blob-df963bce6f9784f27db9dd5717b201cdb09a378d%2Fazure-ai-11.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You must complete the Azure API Version field, otherwise, the integration will fail.
{% endhint %}

### Configure workflow triggers to use Azure OpenAI

If this is your second instance of OpenAI, meaning you configured the direct OpenAI integration before, then you may adjust your workflow triggers to choose which version of the integration you want to use in your workflows.

1. Navigate to the integration's configuration page by navigating to **Marketplace > Integrations > OpenAI**.
2. &#x20;Find **Integration Overrides** under **Trigger Configuration**.
3. **Click** ![](https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FruI4T8IBW45b3Gu8PTPO%2FScreenshot%202025-03-13%20at%206.14.27%E2%80%AFPM.png?alt=media\&token=8a07f3b7-20a6-4a62-9021-8cf4e1f74e48).
4. Choose **OpenAI** in the **Integration** drop-down selector.
5. Choose which of your your OpenAI integration instances to use in the **Integration Configuration** drop-down selector.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fgit-blob-a7b3ebf49adbe913f621c6107d7d1334e520e85f%2Fazure-ai-12.png?alt=media" alt=""><figcaption></figcaption></figure>
