Skip to main content
Encord does not currently support Multi-Region Access Points for Azure.
Encord connects to Azure Blob Storage using Workload Identity Federation (WIF). Your Azure tenant trusts Encord as an identity provider, so you do not need to share any keys or secrets with Encord.

1. Set Up the Integration

  1. In Encord, navigate to the Integrations section and click the Add integration button.
  1. Click on Azure.
  2. Give your integration a meaningful name.

2. Register the Azure Storage Account with Encord

  1. Paste the name of your Azure storage account into Step 2 of the integration.

3. Select Authentication Type

In Step 3 of the Azure integration window, select Workload Identity Federation (WIF). This is the default.
Existing integrations that use a legacy authentication method keep working. Contact Encord if you need help with one.

4. Authenticate Azure

Set Up Workload Identity Federation

With Workload Identity Federation (WIF), you create an app registration in your Azure tenant that trusts Encord as an identity provider. Encord signs short-lived tokens and exchanges them with Microsoft Entra ID for temporary access. There is no client secret or SAS token, and you can revoke access from Azure at any time. See Service integrations to learn more. Setting up WIF requires you to:
  1. Create a service integration in Encord.
  2. Create an app registration in Azure.
  3. Add a federated identity credential to the app registration.
  4. Grant the app registration access to your storage account.
  5. Enter the details in Encord.
You need permission to create app registrations and assign roles in your Azure tenant.

Create an Azure Service Integration in Encord

Only Workspace Admins can create service integrations.
  1. In Encord, go to Workspace Settings and select Service integrations.
  2. Click New service integration.
  3. Give the service integration a meaningful Title. For example, Azure WIF - production storage.
  4. Under Used for, select the cloud provider you are connecting: Azure, GCP, or AWS. Encord sets the signing algorithm to ES256 and fills in the target domain for that provider. You do not need to enter either.
  5. Click Create service integration.
The service integration appears in the list with its UUID. You choose it by name when you create the cloud integration.
Create one service integration for each cloud integration. Your cloud provider trusts a single service integration UUID, so keeping them separate lets you revoke access to one bucket or storage account without affecting the others.
Select Azure under Used for.

Create an App Registration in Azure

  1. In the Azure portal, go to Microsoft Entra ID > App registrations and click New registration.
  2. Give the app registration a name, for example encord-storage-access, and click Register. You do not need a redirect URI or a client secret.
  3. On the app registration’s Overview page, copy the Application (client) ID and the Directory (tenant) ID. You need both in Encord.

Add a Federated Identity Credential

  1. In Encord, select your service integration in Step 4 of the Azure integration window. The FIC config (paste into Azure) box shows the issuer, subject identifier, and audience to use.
  2. In Azure, open your app registration and go to Certificates & secrets > Federated credentials. Click Add credential.
  3. For Federated credential scenario, select Other issuer.
  4. Copy each value from Encord into Azure:
    Copy the issuer and subject identifier from Encord rather than typing them. Microsoft Entra ID compares them exactly, so any difference (for example, a missing hyphen in service-integrations) causes the connection to fail.
  5. Give the credential a name and click Add.

Grant the App Registration Access to Your Storage Account

  1. In Azure, go to Storage accounts and select the storage account you are integrating.
  2. Go to Access Control (IAM) and click Add > Add role assignment.
  3. Assign one of the following roles to the app registration you created:
    • Storage Blob Data Reader: read-only access.
    • Storage Blob Data Contributor: read and write access. This is needed for features such as re-encoding data and image sequences.
Encord gives your browser short-lived signed URLs (user delegation SAS) to load your files. To create them, Encord needs permission to request a user delegation key, which is granted at the storage account level. Either assign the role above on the storage account, or assign Storage Blob Delegator on the storage account and the data role on individual containers.

Enter the WIF Details in Encord

In Step 4 of the Azure integration window:
  1. Service integration (signs the assertion): select the Azure service integration you created.
  2. Azure tenant ID: paste the Directory (tenant) ID.
  3. Application (client) ID of the app registration: paste the Application (client) ID.
No secret is exchanged in either direction.
Continue to create a CORS configuration.

Legacy Authentication Methods

Existing integrations that use a legacy authentication method keep working. To update an expired SAS token on an existing integration, see Updating Expired Account-Level SAS Tokens. Contact Encord if you need help with a legacy integration.

5. Create a CORS Configuration in Azure

If you use Infrastructure as Code tools like Terraform, they can overwrite your manual CORS settings. To prevent this, always include the correct CORS policy in your Terraform configuration file.
Applying Encord required CORS settings may overwrite existing configurations on your cloud storage bucket. If your bucket already has CORS settings, make sure to append Encord’s required settings instead of replacing them.
A CORS configuration must be applied to the Azure storage account you want to integrate with Encord. This enables Encord to request resources from the specified service account using a browser.
  1. Navigate to the Resource Sharing (CORS) section under Settings of your storage account.
  1. Input the following values in the Blob service tab of Resource Sharing (CORS) page:
In the example above, preflight requests are valid for 1 hour. Use the ‘Max Age’ variable to adjust the number of seconds the browser is allowed to make requests before it must repeat the preflight request.
  1. Click Save to save the CORS configuration.
  2. Click Create to finish setting up the integration, in Encord.

6. Test Your Integration

Click the Run a test button on the integration, to test that the integration works.
Paste the URL of any object in your Azure storage and click Check Encord can access this URL. If the test is successful a green tick appears next to Encord infrastructure and This machine.

Updating Expired Account-Level SAS Tokens

This section only applies to existing integrations that authenticate with an account-level SAS token.
Shared access tokens expire and have to be updated in order to continue providing Encord with access to your Azure storage. To update the account-level SAS token:
  1. Click the three dots icon on your Azure integration.
  2. Click Update SAS token.
A field for your new SAS token appears.
  1. In Azure, navigate to Storage Accounts under Azure services and select the storage account you wish to update the token for.
  1. Click on Shared access signature in the Security + networking section.
  1. You must check the Container and Object checkboxes under the Allowed resource types heading. Ensure you add the necessary permissions:
  • Read (required)
  • List (required)
  • Write (recommended)
  • Add (recommended)
  • Create (recommended)
recommended permissions are necessary to use some of our more advanced features such as re-encoding data, and image sequences.
  1. Click Generate SAS and connection string to generate a new account-level SAS token.
Your SAS tokens have a start and end date that can be adjusted, and are only be valid for the specified time period. Expired tokens must be updated.
  1. Paste the new SAS token, in Encord.

Azure using Workload Identity Federation

STEP 1: In Azure

  1. Create an app registration (no client secret required).
  2. Add a Federated Identity Credential with scenario Other issuer:
    • Issuer: https://api.encord.com/v2/public/organisation/{org_id}/service-integrations
    • Subject identifier: service-integration:{service_integration_uuid}
    • Audience: api://AzureADTokenExchange
    The exact and are shown in the Encord setup UI.
    To use your organization UUID in the issuer:
    1. Send an authenticated GET request to /v2/current-user. In the organisations array, find the workspace by its name and copy its uuid.
    2. Enter https://api.encord.com/v2/public/organisation/{organisation_uuid}/service-integrations as the Federated Identity Credential issuer.
    3. Send an authenticated POST request to /v2/cloud-integrations with a request body in this form:
    The issuer must exactly match the value in the Federated Identity Credential. If you omit uuid_in_issuer, Encord uses the integer organization ID. You cannot change this option after creating the integration.
  3. Grant RBAC on the specific storage account. For example: Storage Blob Data Reader on the account, or a specific container.
  4. Send Encord three non-secret strings: tenant_id, account_name, client_app_id.
  5. Record the app registration’s Application (client) ID.

STEP 2: In Encord

  1. Workspace admin creates a service integration in the Encord UI and sets Used for to Azure.
  2. Encord-org admin creates an Azure cloud integration with the service-integration UUID, tenant id, account name, and the client app id supplied above.
  3. Test the connectivity of Encord to your storage bucket. The first connectivity test signs an assertion JWT, exchanges it for an Azure access token, and lists the configured container as a smoke test.
No secret is exchanged in either direction.