Introduction
Azure Logic Apps stores run history for troubleshooting and auditing. When run history disappears, you lose visibility into workflow execution, making it difficult to debug failures and audit workflow behavior.
Symptoms
No run history visible:
```bash # Azure Portal > Logic App > Run history # Shows empty list or "No runs found"
$ az logicapp workflow list-runs \ --name my-workflow \ --resource-group my-rg \ --logic-app-name my-logic-app
# Returns empty list ```
History expired message:
"Run history is not available for runs older than 90 days"Diagnostic logs missing:
```bash $ az monitor diagnostic-settings show \ --resource /subscriptions/SUB/resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-workflow
# Returns empty or incomplete settings ```
Common Causes
- 1.Retention policy too short - History deleted after retention period
- 2.Diagnostic logging disabled - Logs not sent to Log Analytics
- 3.Log Analytics workspace deleted - Destination no longer exists
- 4.Access permissions missing - User can't view run history
- 5.Consumption vs Standard - Different retention policies
- 6.Integration account issues - B2B scenarios with missing integration
- 7.Run history disabled - Feature turned off
Step-by-Step Fix
- 1.Check logs for specific error messages
- 2.Verify configuration settings
- 3.Test network connectivity
- 4.Review recent changes
- 5.Apply corrective action
- 6.Verify the fix
Step 1: Check Workflow Retention Settings
```bash # Get retention settings az logicapp workflow show \ --name my-workflow \ --resource-group my-rg \ --logic-app-name my-logic-app \ --query 'properties.{Retention:retentionPolicy,History:state}'
# Default retention: 90 days for Consumption # Standard tier: Configurable up to 730 days ```
Step 2: Update Retention Policy
```bash # Increase retention period az logicapp workflow update \ --name my-workflow \ --resource-group my-rg \ --logic-app-name my-logic-app \ --retention-days 180
# For Standard tier az logicapp workflow update \ --name my-workflow \ --resource-group my-rg \ --logic-app-name my-logic-app \ --retention-days 365 ```
Step 3: Enable Diagnostic Logging
```bash # Create diagnostic settings for long-term retention az monitor diagnostic-settings create \ --name logicapp-logs \ --resource /subscriptions/SUB/resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-workflow \ --workspace /subscriptions/SUB/resourcegroups/my-rg/providers/microsoft.operationalinsights/workspaces/my-workspace \ --logs '[{"category":"WorkflowRuntime","enabled":true,"retentionPolicy":{"days":365,"enabled":true}}]'
# Enable all log categories az monitor diagnostic-settings create \ --name logicapp-all-logs \ --resource /subscriptions/SUB/resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-workflow \ --workspace /subscriptions/SUB/resourcegroups/my-rg/providers/microsoft.operationalinsights/workspaces/my-workspace \ --logs '[{"category":"WorkflowRuntime","enabled":true},{"category":"WorkflowMetadata","enabled":true}]' ```
Step 4: Query Log Analytics for Run History
Step 5: Verify User Permissions
```bash # Check user has permissions to view run history az role assignment list \ --assignee user@example.com \ --scope /subscriptions/SUB/resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-workflow \ --query '[].roleDefinitionName'
# Required role: Logic App Contributor or Owner az role assignment create \ --assignee user@example.com \ --role "Logic App Contributor" \ --scope /subscriptions/SUB/resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-workflow ```
Step 6: Check Log Analytics Workspace
```bash # Verify workspace exists az monitor log-analytics workspace show \ --workspace-name my-workspace \ --resource-group my-rg \ --query '{Name:name,Status:provisioningState}'
# Check workspace retention az monitor log-analytics workspace show \ --workspace-name my-workspace \ --resource-group my-rg \ --query 'retentionInDays' ```
Step 7: Check for Consumption vs Standard
```bash # Determine Logic App type az logicapp show \ --name my-logic-app \ --resource-group my-rg \ --query '{Kind:kind,Plan:appServicePlanId}'
# Consumption: Limited to 90 days run history # Standard: Configurable retention up to 730 days
# Migrate to Standard for longer retention az logicapp create \ --name my-logic-app-standard \ --resource-group my-rg \ --plan my-app-service-plan \ --storage-account mystorageaccount ```
Step 8: Enable Run History for Integration Account
```bash # For B2B scenarios with integration account az logicapp integration-account show \ --name my-integration-account \ --resource-group my-rg \ --query '{Logging:loggingConfig}'
# Enable logging az logicapp integration-account update \ --name my-integration-account \ --resource-group my-rg \ --logging-config file://logging-config.json ```
Step 9: Export Run History
```bash # Export run history before retention expires # Via Azure Portal: Run history > Export to CSV
# Or via PowerShell Get-AzLogicAppRunHistory -ResourceGroupName my-rg -Name my-workflow | Export-Csv -Path "run-history.csv" -NoTypeInformation
Step 10: Set Up Alerts for Run Failures
```bash # Create alert for workflow failures az monitor metrics alert create \ --name logicapp-failures \ --resource-group my-rg \ --scopes /subscriptions/SUB/resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-workflow \ --condition "total RunsFailed > 0" \ --window-size 5m \ --evaluation-frequency 1m
Logic App Run History Retention Limits
| Tier | Portal History | Log Analytics |
|---|---|---|
| Consumption | 90 days | Up to 2 years |
| Standard | Up to 730 days | Up to 2 years |
| Premium | Up to 730 days | Up to 2 years |
Verification
```bash # After enabling diagnostic logs # Trigger a test run az logicapp workflow invoke \ --name my-workflow \ --resource-group my-rg \ --logic-app-name my-logic-app
# Check run history in portal # Azure Portal > Logic App > Run history
# Should show recent run ```
Prevention
To prevent Azure Logic App run history missing issues from recurring, implement these proactive measures:
1. Monitor Run History Generation
groups:
- name: azure-logicapp
rules:
- alert: AzureLogicAppRunHistoryMissing
expr: |
rate(azure_logicapp_runs_total[1h]) == 0
for: 1h
labels:
severity: warning
annotations:
summary: "Azure Logic App runs not generating history"2. Configure Run History Retention
```bash # Set run history retention az logicapp workflow update \ --name my-workflow \ --resource-group my-rg \ --logic-app-name my-logic-app \ --set properties.runtimeConfiguration.retentionPolicy.daysToKeep=30
# Enable diagnostics for all workflows az monitor diagnostic-settings create \ --resource /subscriptions/SUB/resourceGroups/my-rg/providers/Microsoft.Logic/workflows/my-workflow \ --name logic-logs \ --workspace /subscriptions/SUB/resourcegroups/my-rg/providers/microsoft.operationalinsights/workspaces/my-workspace \ --logs '[{"category": "WorkflowRuntime", "enabled": true}]' ```
3. Archive Run History
```bash # Create run history archival automation cat << 'EOF' > /usr/local/bin/archive_logicapp_runs.sh #!/bin/bash WORKFLOW="my-workflow" RG="my-rg"
# Export run history older than 7 days az rest --method get \ --url "/subscriptions/SUB/resourceGroups/$RG/providers/Microsoft.Logic/workflows/$WORKFLOW/runs?api-version=2019-05-01&$filter=startTime lt '$(date -d '7 days ago' -Iseconds)'" \ --query 'value[].{Name:name,Status:properties.status,Start:properties.startTime}' \ -o json > run_history_archive.json
# Upload to storage for long-term retention az storage blob upload \ --account-name mystorage \ --container-name logicapp-archive \ --name "$WORKFLOW-$(date +%Y%m%d).json" \ --file run_history_archive.json EOF
chmod +x /usr/local/bin/archive_logicapp_runs.sh ```
Best Practices Checklist
- [ ] Monitor run history generation
- [ ] Configure appropriate retention
- [ ] Archive run history regularly
- [ ] Enable diagnostics logging
- [ ] Document workflow dependencies
- [ ] Test run history access
Related Issues
- [Fix Azure Logic App Connector Auth Failed](/articles/fix-azure-logic-app-connector-auth-failed)
- [Fix Azure Logic App Workflow Definition Invalid](/articles/fix-azure-logic-app-workflow-definition-invalid)
- [Fix Azure Log Analytics Workspace Not Collecting](/articles/fix-azure-log-analytics-workspace-not-collecting)
Related Articles
- [Technical troubleshooting: Fix Azure Aks Pod Crashloopbackoff Issue in Azure](azure-aks-pod-crashloopbackoff)
- [Technical troubleshooting: Fix Azure Api Management Policy Expression Runtime](azure-api-management-policy-expression-runtime-error)
- [Technical troubleshooting: Fix Azure App Configuration Feature Flag Not Refre](azure-app-configuration-feature-flag-not-refreshing)
- [Technical troubleshooting: Fix Azure App Service 503 Always On Disabled Issue](azure-app-service-503-always-on-disabled)
- [Technical troubleshooting: Fix Azure Application Gateway Err SSL Unrecognized](azure-application-gateway-err-ssl-unrecognized-name-alert)
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "TechArticle", "headline": "Fix Azure Logic App Run History Missing", "description": "Troubleshoot Azure Logic App run history missing. Check retention settings, diagnostic logging, and workspace configuration.", "url": "https://www.fixwikihub.com/fix-azure-logic-app-run-history-missing", "publisher": { "@type": "Organization", "name": "FixWikiHub", "url": "https://www.fixwikihub.com" }, "author": { "@type": "Person", "name": "FixWikiHub Editorial Team" }, "datePublished": "2026-04-03T06:06:01.298Z", "dateModified": "2026-04-03T06:06:01.298Z" } </script>