Set up Insights Data Export to Azure Blob Storage

The Insights Data Export Service is a subscription-based feature that delivers regular exports of your Insights data directly into your Azure Blob Storage container or Amazon S3 bucket. With this service, you don’t need to build reports, write code, or manage APIs. Instead, you select the datasets you want from Calabrio’s curated Insights Data Lake, and the service automatically delivers them as CSV files.

The data, schema, datasets (Analytics, QM, WFM, CWFM and CR), CSV format, and daily delivery schedule are the same whether you export to Azure Blob Storage or Amazon S3. Only the destination setup differs.

IMPORTANT   This topic describes how to set up export to Azure Blob Storage. If your organization’s primary cloud storage is Amazon S3, see Set up Insights Data Export to Amazon S3.

IMPORTANT   New columns may be added to the exported tables over time. While existing columns will not be removed and their data types will not change, schema changes may still occur. To ensure your data consumption remains robust, avoid assuming a fixed order or set of columns. Instead, pull values for the columns you need or design your system to handle all columns, with the flexibility to accommodate new ones. Additionally, new tables may be added to the export output periodically.

Prerequisites

  • You have the Insights Author license.

  • You have the Create Content permission.

  • You have the View Content permission.
  • You have the same number of Export Service licenses as you have Insights Agent licenses.

  • You have an Azure subscription tier that supports the hierarchical namespace feature in Azure Blob Storage.

  • You have an Azure resource group in the Azure region provided by Calabrio, where you can create a storage account and container.

  • You have a Microsoft Entra ID (Azure AD) tenant where a Global Administrator can grant admin consent to a multi-tenant application.

IMPORTANT   The export requires a new storage account and container, which the Bicep template creates. Using an existing storage account or container is not supported. Do not share the container with other workloads, because they can interfere with the export, and the export can interfere with them.

Page location

Varies depending on the page or action being performed

Procedures

Receive deployment resources

Contact your Calabrio representative to enable the Data Export Service. Calabrio provides a Bicep template, which you deploy in your Azure account to create the storage resources and permissions for secure data transfer. No client secret or certificate is required on your side. Calabrio manages the credential for its service principal. Once delivered, the data is fully under your control to manage and use as you wish. Calabrio will provide:

  • External ID

  • Calabrio app ID

  • Azure region for your storage account (for example, eastus)

  • Admin consent URL

  • The Bicep template (calabrio_insights_export.bicep)

Create the Calabrio service principal in your tenant

Calabrio uses a single multi-tenant app registration. It does not exist in your Microsoft Entra ID tenant until you consent to it. Consenting creates a service principal (an Enterprise Application) in your tenant.

NOTE   To complete this step, you must have the microsoft.directory/servicePrincipals/create permission in your Microsoft Entra ID tenant. This permission is typically granted through one of the following roles:

  • Hybrid Identity Administrator

  • Application Administrator

  • Application Developer

  • Cloud Application Administrator

IMPORTANT   The app ID (also called client ID or application ID) is the same in every tenant. The object ID is the local identity created in your tenant when you consent. The role assignment requires the object ID, not the app ID.

Use one of the following options:

  • Option 1: Use the admin consent URL (recommended)

  1. Open the admin consent URL provided by Calabrio. Replace <your-tenant-id> with your Microsoft Entra tenant ID.

    Copy
    https://login.microsoftonline.com/<your-tenant-id>/adminconsent?client_id=<calabrio-app-id>
  2. Sign in as a Global Administrator.

  3. Click Accept.

  • Option 2: Use the Azure CLI

  1. Sign in with an account that has the Application Administrator or Global Administrator role.

  2. Run the following command, replacing <calabrio-app-id> with the app ID provided by Calabrio:

Copy
az ad sp create --id <calabrio-app-id>

Deploy the Bicep template

NOTE   You must have the Azure CLI installed. The Azure CLI automatically installs the Bicep CLI when needed.

The Bicep template is deployed to a resource group. It creates:

  • A storage account with hierarchical namespace enabled and soft delete disabled, in the Azure region provided by Calabrio.

  • A private container named dataexport.

  • A role assignment that gives the Calabrio service principal the Storage Blob Data Contributor role on that container only. A condition limits this access to the dest-<external ID>/ folder.

  1. Save the calabrio_insights_export.bicep file provided by Calabrio.

  2. Sign in to the Azure CLI with an identity that meets the prerequisites.

  3. Run the following command:

    Copy
    az deployment group create \
      --resource-group <your-resource-group-name> \
      --template-file calabrio_insights_export.bicep \
      --parameters \
        calabrioExternalId="<calabrio-external-id>" \
        calabrioAppId="<calabrio-app-id>"
  4. When the deployment completes, find the createdStorageAccountName and createdContainerName values in the output.

    EXAMPLE    

    Copy
    "outputs": {
      "createdContainerName": {
        "type": "String",
        "value": "dataexport"
      },
      "createdStorageAccountName": {
        "type": "String",
        "value": "calabriolpnirjgdtws3g"
      }
    }

NOTE   The storage account name includes a suffix based on your resource group ID, so repeated deployments to the same resource group use the same name. This reduces the chance of a naming conflict but does not guarantee that the name is available globally. If the generated name is unavailable, set the storageAccountName parameter to a different name.

Verify the role assignment

  1. In the Azure portal, go to your storage account and open the container.

  2. Click Access control (IAM) and confirm that the role assignment for the Calabrio service principal appears.

  3. Open the role assignment in the Code view and confirm that the condition is attached and the path prefix is dest-<external ID>/. The <external ID> must match the external ID provided by Calabrio.

NOTE   The condition appears only in the Code view because of an Azure portal limitation.

Share the Azure Blob Storage information

Provide your Calabrio representative with:

  1. Your Microsoft Entra tenant ID. Use the GUID, not the display name.

  2. The storage account name.

  3. The container name.

Activate and verify Data Export Service

  1. Calabrio completes the destination configuration and activates the service once you provide the storage information.

  2. Confirm that exported files start appearing in your container under the dest-<external ID>/ folder. It may take some time before files appear.

Rotate the external ID

If Calabrio needs to rotate your external ID (for example, if it was compromised), you receive a new ID. Update the path prefix in the role assignment condition to match the new ID. You can do this manually or by updating the deployment with the Bicep template.

IMPORTANT   Until the new external ID matches on both sides, exports to your container fail the authorization check. Data that was already exported remains under the old prefix folder. You can move it or leave it in place.

Data export details

All exported data is stored under the dest-<external ID>/ folder in your container.

Related topics