HomeBlogComparison

Azure Functions vs Google Cloud Functions: How to Plan Identity, Cutover and Rollback for Serverless Code

A friendly white robot with a black visor links a small office server rack to a floating blue cloud through a glowing gateway

Azure Functions and Google Cloud Functions both run small pieces of event-driven code without servers to manage, but in 2026 they are organized differently: Azure Functions offers several hosting plans, with Flex Consumption as the serverless default and the Linux Consumption plan retiring on September 30, 2028, while Google's product is now called Cloud Run functions and is billed as a Cloud Run service. The deciding difference for a 10 to 250 person business is usually not price but where the function's identity and data live, since a function spends most of its life reading and writing other services.

If you already run functions on either platform, the more urgent question may be a migration within it, which is why cutover and rollback get their own section below.

Flex Consumption and Cloud Run functions side by side

PointAzure Functions (Flex Consumption)Cloud Run functions
StatusThe recommended plan for new serverless apps; the legacy Consumption plan on Linux retires September 30, 2028 (Microsoft)Formerly Cloud Functions (2nd gen); the older product is labeled Cloud Run functions (1st gen) (Google)
Operating systemLinux onlyRuns on Cloud Run
Execution timeDefault 30 minutes, no enforced maximum; an HTTP-triggered function must respond within 230 secondsUp to 60 minutes for HTTP functions, 9 minutes for event-driven functions created with the Cloud Functions v2 API
Instance size and scale512 MB, 2,048 MB or 4,096 MB; up to 1,000 instances per function groupUp to 16 GiB and 4 vCPU; up to 1,000 concurrent requests per instance
Private network accessVirtual network integration and private endpoints supportedNot compared here
EventsTriggers and bindings to Azure servicesAny event type Eventarc supports, more than 90 sources through Cloud Audit Logs

What a million executions a month costs (illustrative)

One function runs a million times a month for one second each with 2 GB of memory, at list prices as of December 2026:

  • Azure Functions Flex Consumption (Linux), East US: on-demand execution time is $0.000026 per GB-second after 100,000 free GB-seconds, and executions are $0.40 per million after the first 250,000 (Microsoft's Azure Functions pricing page). 2,000,000 GB-seconds less the free 100,000 is $49.40, plus $0.30 for executions: about $50.
  • Cloud Run functions, request-based billing: functions "operate as Cloud Run services and are billed accordingly" (Cloud Run pricing). With 1 vCPU and 2 GiB, one request at a time: 820,000 vCPU-seconds beyond the free tier at $0.000024 is $19.68, and 1,640,000 GiB-seconds at $0.0000025 is $4.10; the million requests fall inside the 2 million free. About $24.

Treat this as a shape, not a quote. Cloud Run functions can serve several requests on one instance at once, which lowers the bill further when requests overlap, and Azure's Flex Consumption adds charges if you keep always-ready instances to avoid cold starts. Build tools, artifact storage and event delivery are billed separately on Google's side.

How to evaluate identity dependencies

List everything the function touches, then ask how it proves who it is to each one:

  • Storage and databases. A function should reach them with a platform identity, not a password in its settings. Check that each target accepts that identity.
  • Microsoft 365 and Entra ID. A function that reads mailboxes, SharePoint files or Teams messages calls Microsoft Graph with an app registration in your Entra tenant. That works from either cloud, but on Azure the identity, its secrets and its monitoring sit in the same tenant you already administer.
  • Private systems. If the function must reach a database on a private network, confirm the plan supports it. On Azure, Flex Consumption supports virtual network integration; the legacy Consumption plan does not.

Cutover and rollback, step by step

  1. Run old and new side by side. Deploy the function to the new plan or platform with its own name and identity, pointed at test data.
  2. Have a pilot user exercise it end to end. Upload the file, submit the form or send the message that triggers it, and confirm the result lands where it should, including after a deliberate retry.
  3. Switch the trigger, not the code. Move the event subscription, queue or webhook URL to the new function. Keep the old one deployed and disabled.
  4. Roll back by switching the trigger back. Decide in advance who can do it, how long it takes, and how you will spot duplicate or missed events in the gap.
  5. Retire the old one after a full business cycle, such as month-end, not after a quiet afternoon.

A worked decision (illustrative): a 45-person insurance agency has an Azure function on the Linux Consumption plan that files emailed documents into SharePoint. Decision: stay on Azure and move to Flex Consumption well before September 2028, because the function's identity, the mailbox and SharePoint all live in the agency's Entra tenant. What would change it: if the agency ran Google Workspace and kept its files in Google Drive, Cloud Run functions would keep the identity and data on Google's side.

Related: AWS Lambda vs Azure Functions and Google Cloud Run vs AWS Lambda bring AWS into the comparison; Azure cloud services for business and Google Cloud SQL vs Azure SQL cover the rest of the Azure and Google picture. NetSys plans Azure moves and upgrades through its cloud services team. If you have functions to move or a retirement date to meet, Plan my Azure project.

More on this topic: Azure infrastructure guides.

Frequently asked questions

Are Google Cloud Functions still called Cloud Functions?

Google now calls the product Cloud Run functions. What was Cloud Functions (2nd gen) is Cloud Run functions, and the original is labeled Cloud Run functions (1st gen). Older commands and the Cloud Functions v2 API remain for backward compatibility.

Google Cloud Functions vs Azure Functions: which allows longer runs?

Azure Functions on Flex Consumption has a 30-minute default and no enforced maximum, but HTTP-triggered functions must respond within 230 seconds. Cloud Run functions allow up to 60 minutes for HTTP functions and 9 minutes for event-driven ones created with the v2 API.

Is the Azure Functions Consumption plan going away?

On Linux, yes: Microsoft says hosting on Linux in a Consumption plan retires on September 30, 2028, and recommends migrating to Flex Consumption. Windows apps on the Consumption plan are not currently affected.

Does Flex Consumption run on Windows?

No. Microsoft lists Flex Consumption as Linux only. Apps that depend on Windows can stay on the Consumption plan on Windows or use the Premium or Dedicated plans.

Sources

Vendor pages read on December 2, 2026:

Cloud Services

Discuss Cloud Services for your business.

Tell us about your current systems, the result you need and your timeline. We will discuss the work, responsibilities and pricing before you decide on an engagement.