Pipeline Failure Troubleshooting
Common Failures
NuGet Restore Failures (HISD)
Symptom: Unable to find version of package or 401 Unauthorized
Fix:
- Check Azure Artifacts feed is accessible
- Verify NuGet.config has correct feed URL
- Check service connection permissions in Azure DevOps
.NET Build Failures (mobile-api, mgmt, cli)
Symptom: error MSB... or dotnet restore failed
Fix:
- Check if the .NET SDK version matches the pipeline’s
UseDotNettask - Verify all project references resolve
- Run locally:
dotnet build --verbosity detailed
Flutter Build Failures (mobile-ui)
Symptom: flutter pub get failed or Dart analysis errors
Fix:
- Check Flutter SDK version in pipeline matches local
- Run
flutter doctorlocally - Check for breaking package updates in pubspec.lock
Database Project Build Failures (HISD/HisdDb)
Symptom: SQL71501: Procedure has an unresolved reference
Fix:
- Check for missing schema objects in the .sqlproj
- Verify dacpac references are current
- Build locally in Visual Studio
Deployment Failures
Symptom: App Service deployment failed or slot swap failed
Fix:
- Check App Service is running:
az webapp show --name <app> --query state - Check deployment logs: Azure Portal > App Service > Deployment Center
- Verify Key Vault access policies
Retrying a Pipeline
# List recent failed runsaz pipelines runs list --status failed --top 5
# Re-run a specific pipelineaz pipelines run --name "<pipeline-name>" --branch <branch>