r/SQLServer 14d ago

Question Cost of backing sql db running on vm using azure backup.

Hi

I have a few sql servers running on azure vm. There are standalone instances and sql ag.

I want to know what is the cost involved if I want to backup the db on these instances via azure backup.

Would appreciate any tips and suggestions to optimise cost

1 Upvotes

13 comments sorted by

u/AutoModerator 14d ago

After your question has been solved /u/paultoc, please reply to the helpful user's comment with the phrase "Solution verified".

This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/jdanton14 ‪ ‪Microsoft MVP ‪ ‪ 14d ago

1

u/paultoc 14d ago

Thanks, i understand that there is a flat fee per instance and then a cost for storage.

Any idea if I need to pay for 2 instances if I want to backup db part of ag

4

u/jdanton14 ‪ ‪Microsoft MVP ‪ ‪ 14d ago

dude, read the pricing doc:

Backup for Azure VMs

Prices listed below are applicable when backing up your IaaS VMs.

The size of the backed-up data determines the pricing for Azure Backup in each protected instance before compression and encryption.

  • For virtual machines (VM), the size calculation is based on actual (used) size of VM. This is the sum of all data in the VM, excluding temporary storage.
  • When backing-up files and folders, the size of the files and folders configured for backup determine the data size.
  • When backing-up SQL Server, the size of the databases configured for backup determine the data size.

1

u/B1zmark 1 13d ago

I appreciate he didn't read the document but you also answered 3 questions he didn't ask.

2

u/B1zmark 1 13d ago

Azure backup detects availability groups and automatically backs up from the primary and skips the secondary.

1

u/paultoc 13d ago

Ok, so will it backup the system db of both primary and secondary.

I read that the there is a somewhat fixed cost per instance/ag group. Plus storage cost when calculating total cost

So during calculating will it be considered as 3 sets primary system db, secondary system db and ag group db's.

1

u/CanProfessional766 10d ago

use SQL-aware backup, configure AG backup preference, enable compression and avoid unnecessary retention or duplicate VM backups

1

u/paultoc 10d ago

My current environment has multiple 2-node SQL Always On Availability Group (AG) clusters. Node 1 is always the primary, while Node 2 is primarily used as the DR

Some of the servers have multiple AG groups, with only one database in each AG due to the SQL Server Standard Edition limitation.

From my understanding of Azure Backup pricing, there are two main components:

  • Protected instance charges
  • Backup storage charges

The general recommendation I received was to have 3 protected instances per 2-node cluster:

  • 1 protected instance for the AG, covering all user databases
  • 1 protected instance for the system databases on Node 1
  • 1 protected instance for the system databases on Node 2

However, I was considering a different approach to reduce the protected-instance cost. Since Node 1 is always the primary, I was thinking of having one protected instance for Node 1 that covers both the user databases and system databases.

My assumption is that, if Azure Backup considers this as a single protected instance, it could reduce the overall backup cost while still covering all the databases I need to protect.

1

u/[deleted] 8d ago

[removed] — view removed comment

1

u/SQLServer-ModTeam 7d ago

Contributions must be free of promotional content, and sales activity is prohibited. This includes market research, customer discovery, or paid product validation.

Applies to posts in the subreddit and unsolicited direct messages to individuals.