Export Lovable logs to Azure Blob Storage
You can automatically send your Lovable workspace activity logs to an Azure storage account on a schedule. The connection signs in securely through Microsoft without sharing secret account keys or passwords.
Workspace owners or admins on an Enterprise plan who need to automatically back up or analyze Lovable logs in Azure storage.
Do this, in order
- 1
Open Data exports in your Lovable settings, click 'New data export', and select 'Azure Blob Storage' as the destination.
This starts the setup flow for sending your workspace logs to Azure.
- 2
Enter your Azure storage account name, a dedicated storage container name, and an optional folder path under Prefix.
This tells Lovable where to deliver your log files.
- 3
Register an app in Microsoft Entra ID and copy its Tenant ID and Client ID into the Lovable form.
Lovable uses this identity to authenticate with your Azure account.
- 4
Add the federated credential values provided in Lovable to your registered Microsoft Entra app.
This establishes trust between Lovable and Azure without requiring you to share a secret password or key.
- 5
Run the provided Azure CLI script to grant your registered app the 'Storage Blob Data Contributor' role on your container.
Lovable needs permission to write and manage log files inside that specific container.
- 6
Select your log source, click 'Test connection', and wait for the test to pass.
Lovable checks that it can write and clean up a test file before scheduling regular exports.
- 7
Click 'Create export' to finish setup.
This activates the scheduled export to your Azure container.
Paste this into your project
Guide me through setting up a scheduled data export of our Lovable logs to Azure Blob Storage, including creating the Microsoft Entra app registration and assigning the Storage Blob Data Contributor role.
Words decoded
- Microsoft Entra federated credential
- A secure trust agreement between Microsoft and Lovable that lets Lovable access your Azure resources without storing passwords or secret keys.
- Azure Blob Storage
- Microsoft's cloud service for storing files and data in the cloud.
- Container
- A storage folder in Azure used to group and hold your uploaded files.
- Storage Blob Data Contributor
- A permission setting in Azure that allows an app to read, write, and delete files in a storage container.
- Prefix
- A subfolder path placed in front of your file names to keep them organized inside the storage container.
- JSON Lines
- A text file format where every single line contains one self-contained data record.
Where people get stuck
- Do not use a shared storage container; use one dedicated solely to Lovable exports because access permissions apply to the whole container.
- Do not use Azure Government, Azure China, private endpoints, or IP allowlists, because the storage account must be on the Azure public cloud and open to internet connections.
- Wait a few minutes and retest if the connection test fails immediately after running the Azure script, because role permissions take time to take effect.
- Ensure your container does not have immutability policies or active leases that prevent Lovable from deleting its test file.
- You cannot edit the tenant ID, client ID, storage account, or container after saving; you must create a new export if any of these change.
- If the container is ever deleted, Lovable pauses the export until you recreate the container and its role assignment.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.