Guides / Lovable on Azure

Deploying a stabilized Lovable app on Microsoft Azure

Lovable got you a working app quickly. Now it needs to run where your company already runs: in your Microsoft Azure tenant, behind your staff sign-in, with your data and AI calls inside your own subscription. This guide covers what to stabilize first, the target Azure architecture, and how to keep editing in Lovable after the move.

Can Lovable deploy to Azure itself?

Quick answer

Can Lovable put my app on Azure for me?

Only for some customers so far. Lovable's own Deploy on Azure is in private preview for select Enterprise customers. Everyone else exports the code from GitHub and runs it on Azure services they control, which is what the rest of this guide covers.

Lovable describes three ways to use it in a Microsoft environment (Lovable's announcement, read 4 December 2026):

Lovable's three options for running apps in a Microsoft environment
OptionWhere the app runsWho can use itThe catch
Deploy on AzureIn your Azure subscription: a dedicated network with Kubernetes, Azure Functions, Azure Database for PostgreSQL and Blob Storage, set up from a template Lovable generatesPrivate preview, select Enterprise customersThe editor, the agent and AI requests while building stay with Lovable. Some features are not there yet
Copilot Managed RuntimeMicrosoft hosts it inside your tenant, internal apps only, behind your Entra sign-inPublic preview, Business and Enterprise workspacesNeeds Copilot Credits or a Power Platform premium licence. No Lovable database, secrets or back-end functions
Host on Lovable, with Microsoft connectorsOn Lovable, reading Microsoft 365, Entra, Azure or Fabric data through connectorsAvailable now; each connector needs your admin's consentThe app and its data stay outside your Azure subscription

A common mix-up: Lovable's Azure Cloud API connector lets an app manage resources in your subscription. It does not host or deploy the app (Lovable's documentation).

The route in this guide fits when you are not in the preview, when your security team wants to own every component and the code, or when you need Azure services the preview does not offer yet. Whichever route you take, stabilize the app first.

I can move it for you. As a Certified Lovable Expert I take a Lovable app from where it is now to your own Azure subscription, and you keep editing it in Lovable afterwards.

  1. A free 30-minute call. Send me the app's link beforehand. I tell you which route fits and whether the move is worth it.
  2. One-week AI readiness assessment, $2,500 fixed. The stabilization list, the Azure architecture for your tenant and the Supabase decision, with a price for each phase.
  3. The move. Deployed to your subscription, with CI/CD, monitoring and documentation, scoped and priced per phase before it starts.

What Lovable actually builds

Lovable projects created before 13 May 2026 are React apps built with Vite, which compile to static files. Projects created since then use TanStack Start, which runs server code, so they need a host that runs a server. For the back end Lovable uses Lovable Cloud, built on Supabase-compatible services: a Postgres database, authentication, file storage and edge functions. It syncs the project both ways with a GitHub repository.

Lovable's own documentation notes what does not leave the platform: secrets stored in Lovable, app connectors, managed sign-in providers and AI calls through Lovable's gateway. Plan to recreate each in your Azure subscription.

That is good news for a move to Azure. The front-end is a standard web app that builds to static files, and the code is already in a repository you can deploy from. The work is in what sits around it.

Stabilize before you move

Moving an unstable app to Azure gives you the same problems on a bigger bill. Before any deployment work, the app should meet a simple bar:

  • The code is in GitHub, in a company-owned repository, synced from Lovable and with a protected main branch.
  • No keys in the front-end bundle. Anything the browser downloads is public. Only publishable keys belong there; every secret key moves to the server.
  • Configuration in environment variables, not written into components, so the same build can run in staging and production.
  • Types and a few tests on the critical paths: sign-in, payment, the main form, and anything that writes data. Not full coverage, just the parts that must never break.
  • Access checked on the server. If you keep Supabase, its row-level security policies are turned on and tested with a second account.
  • A written list of what Lovable may still regenerate, so the team knows which files are safe to edit in Lovable and which are not.

The launch checklist for vibe-coded apps covers the security side of this bar in 15 checks.

Why me for a Lovable app: I am a Certified Lovable Expert and work with Life in Codes, an official Lovable partner. I know what Lovable generates, what it may regenerate, and how to harden it without breaking your ability to keep editing.

The target Azure architecture

For most stabilized Lovable apps, the Azure side looks like this. The services are typical choices, for example, and the assessment confirms them against your tenant and policies.

  • Front-end on Azure Static Web Apps for Vite projects, deployed as static files with HTTPS, a global edge and a preview environment for every pull request. Projects on TanStack Start run on Azure Container Apps or App Service instead.
  • Server code on Azure App Service or Azure Container Apps. Anything that held a secret in the browser or ran as a Supabase edge function moves here: payments, AI calls, admin actions, webhooks.
  • Secrets in Azure Key Vault, read by the app through a managed identity. No connection strings in code, no keys in pipeline variables.
  • Staff sign-in through Microsoft Entra ID, so access follows your existing accounts and stops when someone leaves.
  • AI features through Azure OpenAI in Microsoft Foundry, so prompts, documents and model calls stay inside your tenant and appear on your Azure bill.
  • Monitoring with Application Insights and Azure Monitor alerts, so errors and slow requests reach a named person instead of a browser console.
  • Azure Front Door or the built-in CDN in front of the app when you need a custom domain, caching and a web application firewall.
  • Staging environments: Static Web Apps preview environments for the front-end and App Service deployment slots for the server, so a release is tested before it is swapped in.
  • CI/CD with GitHub Actions using OIDC federated credentials, so deployments use short-lived tokens and no long-lived Azure secret is stored in GitHub.
  • Budgets and alerts in Azure Cost Management, per environment and per app, so cost is visible before the invoice.

From my own work: at the European Commission's Financial Department I led development of an AI search assistant on Microsoft Foundry on Azure. The same rules apply to a Lovable app: data stays in the tenant, access follows identity, and every AI answer can be traced.

Keep Supabase or move to Azure?

The biggest decision in the move. Pick the option that matches your situation; each one lists what it takes.

Keep Supabase, move hosting to Azure

The fastest route with the fewest changes. The front-end and server code move to Azure; the database, auth and storage stay on Supabase. The trade-off is that your data stays outside your Azure tenant.

  • Row-level security policies turned on and tested
  • Supabase service-role key only on the server, stored in Key Vault
  • Supabase backups and point-in-time recovery checked
  • Network and data-residency settings reviewed against your policies

Choose this when no policy requires your data inside Azure and speed matters most.

Move everything into Azure

Data moves to Azure Database for PostgreSQL, and the Supabase-specific parts are replaced: for example, Microsoft Entra External ID for customer sign-in and Azure Blob Storage for files. More work, and the only option when your data must stay in your tenant.

  • Data migration with a tested restore, and a rehearsal before the real cut-over
  • Auth replaced, with a plan for existing users' sign-in
  • Row-level security rules rewritten as server-side checks or Postgres policies
  • Storage moved to Blob Storage with private access
  • Edge functions rewritten as App Service or Container Apps endpoints

Choose this when a policy, a customer contract or a security review requires your data in Azure.

Hybrid first: hosting now, data later

Move the app to Azure now, with Entra ID for staff and Key Vault for secrets, and keep Supabase for data until a planned second phase. You get the operational benefits early and spread the risky part over two releases.

  • Hosting, secrets, monitoring and CI/CD on Azure in phase one
  • A data-access layer in the server code, so the database can change behind it
  • A dated phase two for the data move, with an owner
  • Costs tracked on both platforms in the meantime

Choose this when you need Azure now but the data move needs more planning.

How to keep editing in Lovable after the move

Moving to Azure should not mean the product team stops using Lovable. It means changes reach production through a reviewed path.

  • Protected paths. Server code, infrastructure, security checks and pipeline files live in folders the team agrees not to edit through Lovable. Code owners in GitHub make that rule visible.
  • Every change is a pull request. Lovable syncs to a branch; a person reviews the change, and the pipeline deploys it to a preview environment first.
  • Regenerated screens never overwrite security fixes, because the fixes live on the server and in protected paths, not in the components Lovable rewrites.
  • A short regeneration checklist: after a large Lovable change, re-run the critical-path tests and check that no secret has moved back into the front-end.

The cut-over

  1. Freeze big changes for a few days and record what the current app does on its critical paths.
  2. Deploy to a staging environment on Azure with production-like settings and test every critical path with a second account.
  3. Migrate data, if you are moving it, first as a rehearsal, then for real, with a tested restore in between.
  4. Switch the domain through Front Door or DNS during a quiet window, with the old hosting still running.
  5. Watch Application Insights for the first days and keep the old setup available for one business cycle before you retire it.

If the app is still closer to a prototype than a product, start with what to do after the AI app builder, then come back to the move.

Running on AWS instead? See deploying a Lovable app on AWS, and the stabilization method behind both.

How I help

The AI readiness assessment is $2,500, fixed, for one week. I read the Lovable codebase, check it against your Azure tenant and policies, and hand you the architecture, the database decision and a phased plan with real numbers.

  • AI readiness assessment: the stabilization list, the target Azure architecture, and the Supabase decision with its trade-offs.
  • Build: stabilization, deployment to your subscription, CI/CD and the cut-over, scoped and priced per phase and documented as it is built.
  • Operate: from $4,999 per month, I keep it running: monitoring, cost tracking, security updates and the next phase.

The assessment comes off your first month if we start working together within 60 days.

Questions

About moving a Lovable app to Azure.

Can Lovable deploy my app to Azure itself?

Only for some customers so far. Lovable's Deploy on Azure, announced in private preview for select Enterprise customers, runs the published app and its database in your own Azure subscription, while the editor and agent stay with Lovable. Copilot Managed Runtime, in public preview, lets Microsoft host internal Lovable apps in your tenant. The Azure Cloud API connector does not host your app. Without access to those previews, you export the code from GitHub and run it on Azure services you control.

Can a Lovable app run on Microsoft Azure?

Yes. Lovable projects created before May 2026 build to static files that Azure Static Web Apps can host; newer projects use TanStack Start and run on Azure Container Apps or App Service. Server code moves to Azure App Service or Azure Container Apps, and the database can stay on Supabase or move to Azure Database for PostgreSQL.

Do we have to leave Supabase?

No. Keeping Supabase is the fastest route and changes the least. Move the data into Azure when a policy, a customer contract or a security review requires your data to stay in your own Azure tenant.

Can we keep editing the app in Lovable after it moves to Azure?

Yes, if the project stays synced to GitHub and changes reach Azure through pull requests and a pipeline. The security and deployment code lives in paths the team agrees Lovable does not regenerate, so a regenerated screen never overwrites a fix.

Why Azure rather than another host?

Usually because the company already runs on Microsoft: Entra ID for staff sign-in, Microsoft 365 for documents, and a requirement that data and AI calls stay inside the company tenant. If none of that applies, a simpler host can be the better choice, and the assessment says so.

How do AI features work after the move?

Model calls go through Azure OpenAI in Microsoft Foundry, from your own Azure subscription. Keys stay in Key Vault, the app reads them through a managed identity, and usage and cost are visible in Azure.

Start with a conversation

Thirty minutes, no charge. Tell me what you have built and where it stopped. If I am not the right person, I will say so and point you somewhere better.

Calendar not loading? Open the booking page or email me.