Why this matters
On Google Cloud, the license for Windows Server and SQL Server is usually billed on top of the compute you already pay for. It shows up as a premium image charge attached to each VM, and it scales with vCPU count. A VM that is twice as big as it needs to be pays for that extra size twice: once for the hardware and once for the license.
That's why license cost is one of the easier places to save money. You don't have to rewrite anything. You change how many cores carry a license, which edition you run, or whether you pay Google Cloud for the license at all.
SQL Server is the bigger lever. Enterprise edition costs far more per core than Standard, and plenty of teams run Enterprise because someone picked it years ago and nobody checked which features the databases use.
Before you start
Build an inventory first. In the Google Cloud console, open Compute Engine, then VM instances, and filter or add the columns for machine type and boot disk image. Look for images whose names start with windows-server or sql-server. You can get the same list from Cloud Asset Inventory or by exporting your billing data to BigQuery and grouping by SKU description. License SKUs say so in the name, which makes them easy to separate from plain compute.
For each licensed VM, write down four things: the owner, the vCPU count, the edition (Standard, Enterprise, Web, Express for SQL Server), and whether it's production. Then pull CPU and memory graphs from Cloud Monitoring for at least a few weeks. Without usage history you're guessing, and guessing is how people shrink the wrong box.
Also find out what licensing agreements your company already holds. If you have Microsoft Software Assurance or qualifying license mobility rights, bring-your-own-license may be on the table. Ask whoever owns your Microsoft agreement before you touch anything. Which terms apply to you is a question for that person, not for this guide.
How to do it
Work through the list from the largest license spend down. Start by retiring what nobody uses: stopped VMs still carry disks and sometimes reserved addresses, and forgotten test SQL Server instances keep billing license fees every hour they run. Delete or snapshot-and-delete them.
Next, right-size. License fees follow vCPU count, so dropping a VM from 16 vCPUs to 8 cuts both lines. On Google Cloud you can change a stopped VM's machine type in place. Custom machine types let you pick vCPU and memory separately, which helps SQL Server because it often wants more memory per core than standard shapes give you. The Compute Engine rightsizing recommendations in the console are a decent starting point, but read them against your own graphs.
Then review SQL Server editions. Restore a copy of each Enterprise database to a test VM running Standard and check whether anything breaks. A built-in DMV query, sys.dm_db_persisted_sku_features, lists Enterprise-only features the database actually uses. If it comes back empty, Standard is likely fine. Where you have many small databases, consolidating them onto fewer licensed instances also helps.
Finally, look at where the license comes from. Cloud SQL for SQL Server bundles the license into the service and removes patching work, so compare it against self-managed VMs honestly, including your team's time. For VMs you keep, sole-tenant nodes let eligible companies bring their own licenses, which replaces the premium image charge with your existing entitlement. Moving to a newer Windows Server version where your software allows it can also simplify licensing and support.
- Inventory licensed VMs. List every Compute Engine VM using a Windows or SQL Server image, or export billing data to BigQuery and filter by license SKU. Record owner, vCPUs, edition and environment for each.
- Collect usage history. Pull several weeks of CPU, memory and disk metrics from Cloud Monitoring for each licensed VM. Note peaks as well as averages.
- Remove unused instances. Snapshot and delete stopped or abandoned Windows and SQL Server VMs. Confirm with owners first, since license fees stop only when the instance is gone or the licensed image is no longer in use.
- Right-size the VMs. Stop each oversized VM and change its machine type, using custom machine types where memory needs differ from standard shapes. Fewer vCPUs means fewer licensed cores.
- Test a lower SQL Server edition. Restore a copy of each Enterprise database on a Standard instance. Check sys.dm_db_persisted_sku_features and run your real workload before you commit.
- Evaluate your licensing options. Confirm with your Microsoft agreement owner whether bring-your-own-license applies. Compare sole-tenant nodes and Cloud SQL for SQL Server against your current setup.
- Compare billing after one cycle. Group the next billing export by license SKU and compare core-hours and cost to the earlier baseline. Record the result in a before-and-after table.
How to check it worked
Give each change one full billing cycle, then compare. In your BigQuery billing export, group by SKU description and filter to the license SKUs you identified earlier. The number of licensed core-hours should drop in line with the cores you removed, and total license cost should fall with it.
Check performance too, because a cheaper VM that falls over isn't a saving. Watch CPU, memory pressure and disk latency in Cloud Monitoring for a couple of weeks after each change. For SQL Server, keep an eye on query duration and wait stats. Set an alert on sustained CPU so you hear about trouble before users do.
Keep a simple before-and-after table: VM name, old shape and edition, new shape and edition, monthly license line before and after. It gives finance something concrete and makes the next review quick.
Mistakes to avoid
The most common one is downgrading an edition in production without a test restore. Enterprise-only features can be buried in old code paths that only run at month end. Test with real workloads first, and keep the old instance around until a full business cycle has passed.
Another is shrinking on averages. A server that idles at low CPU but spikes during payroll or reporting needs headroom for the spike. Look at peaks and at the shape of the week, not just the mean.
The third is assuming bring-your-own-license is free money. It depends on what you own, how it's covered, and whether you can meet the placement rules, such as dedicated hosts. Confirm the terms before you migrate, and track which licenses you've assigned so you don't double-count them.
If you'd rather have someone else do the reading, Cloudverg offers a Cloud cost audit at $4,500/month (fixed scope, two weeks, renews monthly until cancelled). It's a read-only review that covers Google Cloud accounts among others, and it ranks findings by monthly savings. It's one option next to doing this yourself or using Google's own recommendation tools.
Frequently asked questions
Why is my Google Cloud bill higher for Windows VMs than Linux VMs?
Windows Server images carry a per-vCPU license charge that Linux images don't. SQL Server images add a second, larger charge on top. Both are billed hourly alongside compute.
Can I bring my own SQL Server license to Google Cloud?
Sometimes. It depends on your Microsoft agreement and typically involves running on sole-tenant nodes. Check your entitlements with whoever manages the agreement before planning a migration.
Is Cloud SQL for SQL Server cheaper than running SQL Server on a VM?
Not always. It bundles the license and removes patching and backup work, which has real value, but the per-hour price can be higher. Compare both options using your actual workload and your team's time.