<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ef-core-migration-bundles-with-ci-cd-to-azure-github-actions-azure-sql-app-service--g0zql4kew" -->

---
title: EF Core Migration Bundles with CI/CD to Azure (Github...
description: A step-by-step walkthrough of setting up a GitHub Actions CI/CD pipeline to automate EF Core database migrations using migration bundles against Azure SQL,...
canonical: https://daily.dev/posts/ef-core-migration-bundles-with-ci-cd-to-azure-github-actions-azure-sql-app-service--g0zql4kew
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: EF Core Migration Bundles with CI/CD to Azure (Github Actions, Azure SQL &amp; App Service) | daily.dev
og:description: A step-by-step walkthrough of setting up a GitHub Actions CI/CD pipeline to automate EF Core database migrations using migration bundles against Azure SQL,...
og:url: https://daily.dev/posts/ef-core-migration-bundles-with-ci-cd-to-azure-github-actions-azure-sql-app-service--g0zql4kew
og:image: https://api.daily.dev/og/posts/G0zQL4kEW.png
og:image:alt: EF Core Migration Bundles with CI/CD to Azure (Github Actions, Azure SQL &amp; App Service)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EF Core Migration Bundles with CI/CD to Azure (Github Actions, Azure SQL & App Service)

**[We Are .NET](https://daily.dev/sources/wearedotnet)** · 18 min read · 0 upvotes · 0 comments

## Summary

A step-by-step walkthrough of setting up a GitHub Actions CI/CD pipeline to automate EF Core database migrations using migration bundles against Azure SQL, followed by deployment to Azure App Service. The workflow triggers on pull requests (CI only) and pushes to main (CI + deploy). Key steps include generating a self-contained Linux x64 EF migration bundle, uploading it as an artifact, downloading and restoring execute permissions in the deploy job, running the bundle with a connection string stored as a GitHub secret, deploying the API via Azure Web Apps Deploy action, and running a smoke test to verify a 200 OK response. The tutorial also covers retrieving the Azure App Service publish profile and SQL connection string from the Azure portal, and recommends using separate database users with minimal privileges for the migration bundle vs. the application itself.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=QacepowM3Qs>

## Similar posts on daily.dev

- [EF Core Migration Bundles: What They Are & Why They Matter](https://daily.dev/posts/ef-core-migration-bundles-what-they-are-why-they-matter-xq9wcjnhr) · Medium · 0 upvotes · 0 comments
- [Building AI-Powered Database Migration Assistants with .NET and Azure AI](https://daily.dev/posts/building-ai-powered-database-migration-assistants-with-net-and-azure-ai-ekrucfzdz) · C\# Corner · 0 upvotes · 0 comments
- [Setup CI Build Pipeline in Azure DevOps for ASP.NET Core Web API](https://daily.dev/posts/setup-ci-build-pipeline-in-azure-devops-for-asp-net-core-web-api-zh2fprbiz) · We Are .NET · 1 upvotes · 0 comments

---

Tags: [#azure](https://daily.dev/tags/azure), [#cicd](https://daily.dev/tags/cicd), [#.net](https://daily.dev/tags/.net), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/ef-core-migration-bundles-with-ci-cd-to-azure-github-actions-azure-sql-app-service--g0zql4kew)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"EF Core Migration Bundles with CI/CD to Azure (Github Actions, Azure SQL & App Service)","url":"https://daily.dev/posts/ef-core-migration-bundles-with-ci-cd-to-azure-github-actions-azure-sql-app-service--g0zql4kew","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ef-core-migration-bundles-with-ci-cd-to-azure-github-actions-azure-sql-app-service--g0zql4kew"},"datePublished":"2026-07-14T08:39:39.891Z","dateModified":"2026-07-14T12:17:28.921Z","description":"A step-by-step walkthrough of setting up a GitHub Actions CI/CD pipeline to automate EF Core database migrations using migration bundles against Azure SQL,...","image":"https://i.ytimg.com/vi/QacepowM3Qs/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/QacepowM3Qs/sddefault.jpg","isAccessibleForFree":true,"articleSection":"We Are .NET","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"We Are .NET","logo":"https://media.daily.dev/image/upload/s--BsnVOa3i--/f_auto/v1718347410/logos/wearedotnet","url":"https://daily.dev/sources/wearedotnet"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/ef-core-migration-bundles-with-ci-cd-to-azure-github-actions-azure-sql-app-service--g0zql4kew","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"azure,cicd,.net,github-actions","timeRequired":"PT18M","video":{"@type":"VideoObject","name":"EF Core Migration Bundles with CI/CD to Azure (Github Actions, Azure SQL & App Service)","description":"A step-by-step walkthrough of setting up a GitHub Actions CI/CD pipeline to automate EF Core database migrations using migration bundles against Azure SQL,...","thumbnailUrl":"https://i.ytimg.com/vi/QacepowM3Qs/sddefault.jpg","uploadDate":"2026-07-14T08:39:39.891Z","duration":"PT18M","url":"https://api.daily.dev/r/G0zQL4kEW","embedUrl":"https://www.youtube.com/embed/QacepowM3Qs"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"We Are .NET","item":"https://daily.dev/sources/wearedotnet"},{"@type":"ListItem","position":3,"name":"EF Core Migration Bundles with CI/CD to Azure (Github Actions, Azure SQL & App Service)"}]}
```

