Azure SQL Server LTR backup notification - azure

Due to the requirements of ISO accreditation we need to setup notification logic when long term retention backup was taken in Azure SQL Server ( not SQL Server on Azure VM).
Does anyone have any ideas about how to accomplish this goal?
P.S we don’t want to move our DB to Azure VM, so we can’t use Backup Alert service or something like this that is related to SQL Server Azure VM deployment way.

There is no out-of-the-box method to achieve this. Shortest you can concentrate on is a week see.
Below are few points to consider.
You cannot control the LTR backup time, you can define a policy using a combination of four parameters: weekly backup retention (W), monthly backup retention (M), yearly backup retention (Y), and week of year (WeekOfYear) but not exact date and time.
Azure SQL database backups - responsibility to monitor and fix #11412
Possible workaround
Since LTR backups store full Database backups, this causes Metric Full backup storage size to update. You can monitor through custom charts and set alerts.
You can further leverage Azure Monitoring REST API

Related

How to implement "High Availability" for Azure Synapse Analytics?

Does Azure Synapse Analytics support Geo-Redundancy like Storage Account & Key vault? If not, why do I implement High availability for Azure Synapse Analytics? I have the following components as a part of the Azure Synapse Analytics Solution
SQL Dedicated Pool
SQL Serverless Pool
Spark Pool
Storage Account(ADLS)
Azure DevOps Git Repo
First, designing and documenting a Disaster Recovery plan is a project unto itself. I’ve been working on one for a client of mine using Synapse for several months part-time.
The first task is to define your Recovery Time Objective (RTO, meaning how long before your solution is back up in the event of a disaster) and your Recovery Point Objective (RPO, meaning how many minutes or hours of data you can afford to lose… and with analytics solutions you can usually reload from the source to catch up). If your RTO and RPO are low for an analytics solution (like 2 hours) then you probably need to spin up parallel environments in another region and load data to both environments in parallel. If your RTO and RPO are typical for an analytics solution (24-48 hours) then you can probably survive with ensuring backups are geo-redundant and restoring in the event of an outage. I would recommend you preconfigured your Synapse workspace and other infrastructure before the outage unless you have a trust an infrastructure as code solution. If your RPO and RTO are long (like 7 days) it’s extremely unlikely an Azure service or region is going to be down for that long.
ADLS supports RA-GRS redundancy so you could read all the files from the secondary endpoint in its pair region and copy files to another ADLS in the secondary region. Unfortunately ADLS accounts don’t yet support user-initiated failover.
Dedicated SQL Pools support built-in geo redundant backups once a day but you can’t control when they are taken. If this isn’t acceptable then you need to proactively create a user-defined restore point and proactively restore it cross region and pause the SQL pool.
Synapse Serverless SQL pools have no storage so ensure you have a backup of the schema (views, permissions, external data sources, external tables, etc) in source control or somewhere. The data will failover with ADLS.
For Spark Pools ensure you have your notebook artifacts in source control and you can always run them in a different Synapse workspace in another region when needed. Document your cluster configs.
Write out a disaster recovery playbook and do a DR drill periodically (once a quarter or once a year).
Here is another author’s description of the DR plan for Synapse.

Azure Manage Backups menu missing

Im checking several tutorials about how to setup and configure a sql backup to blob, but what Ive found so far are to backup from Sql Server Management Studio.
I did found this nice article at azurelessons: https://azurelessons.com/backup-azure-sql-database/
But the problem I have is that they mention a "Manage Backups" option at the settings group (Sql server level) which I cannot seem to find:
And when I go to the Backups option on Data Management, it only shows me one that is 7 days old with the following legend: "Azure SQL databases are backed up automatically. Backup availability is listed below for each database on this server. Manage your available long-term retention (LTR) backups or restore a database here."
I have a failover group for the SQL server, but I would also like to have backups performed every 6 hours, and I just cant find the option where to do this, even on the SQL Database.
Thanks for the help.
It looks like you have a managed instance of SQL
Both SQL Database and SQL Managed Instance use SQL Server technology to create full backups every week, differential backups every 12-24 hours, and transaction log backups every 5 to 10 minutes. The frequency of transaction log backups is based on the compute size and the amount of database activity.
When you restore a database, the service determines which full, differential, and transaction log backups need to be restored.
Please check this link:
https://learn.microsoft.com/en-us/azure/azure-sql/database/automated-backups-overview?tabs=single-database

Azure job for tabular storage data backup

I'm new for Azure, Do we have any default job to perform database backup from Azure Tabular storage?.
Do we have any default job to perform database backup from Azure Tabular storage?.
No, we do not have default job to do it.
Huge demand to backup data directly from the azure Blob/table storage accounts. In order to meet compliance- today users have to move the data to VM and then back it up. This will simplify the current process to take the backup, meet the compliance and BCDR requirements and also save on Cost.
You can give your voice to this feedback to promote the further to achieve. Or you can refer to this issue to manually backup your table storage.

Differential backup of azure sql database in to storage account blob storage using Powershell Script

I am having an issue creating differential backups of Azure SQL database in storage account blob storage using powershell. I don't know if it is possible or not to get a differential back up of an Azure SQL database. Please suggest me what can I do.
If have seen the differential backup document, you will find this:
Azure SQL database has the feature Automated backups. It referred that:
SQL Database supports self-service for point-in-time restore (PITR) by automatically creating full backup, differential backups, and transaction log backups. Full database backups are created weekly, differential database backups are generally created every 12 hours, and transaction log backups are generally created every 5 - 10 minutes, with the frequency based on the compute size and amount of database activity. The first full backup is scheduled immediately after a database is created. It usually completes within 30 minutes, but it can take longer when the database is of a significant size. For example, the initial backup can take longer on a restored database or a database copy. After the first full backup, all further backups are scheduled automatically and managed silently in the background. The exact timing of all database backups is determined by the SQL Database service as it balances the overall system workload. You cannot change or disable the backup jobs.
I also asked Azure Support, they told me that we(customer) can not create the differential backup by ourselves, Azure SQL database will do that automatic.
Hope this helps.

Automatic backup Azure SQL DataBase

I've configured the retention policy in 'Manage Backups' for my Azure SQL Server but nothing is appearing under 'Available Backups'. Does there need to be an associated storage account? If so, how do I set it up?
From Azure's doc it is known that the automatic backups (full, differential and transaction log) are possible. And it is possible to configure retention period for these backups. The main question is where these backups are stored (from documentation by default within RA-GRS Standard blob storage)? and whether it is possible to change storage account and how to access to standard storage account with backups?
Thanks in advance.
Automatic backups are part of Azure SQL Database service and are managed by Azure. You cannot change where these backups are stored, that is managed by Azure. You cannot access those backups and copy them to another storage account, and you cannot manage them.
You can use PowerShell Get-AzureRmSqlDatabaseRestorePoints to get the earliest possible restore point for the database based on the automated backup service.
Get-AzureRmSqlDatabaseRestorePoints -ResourceGroupName "resname" `
-ServerName "yourservername" -DatabaseName "yourDBName"
With automatic backups, full database backups are created weekly, differential database backups are generally created every 12 hours, and transaction log backups are generally created every 5 - 10 minutes, with the frequency based on the performance level and amount of database activity. The first full backup is scheduled immediately after a database is created. It usually completes within 30 minutes, but it can take longer when the database is of a significant size.
If you want to have control over backups, you want to have greater retention period, then you can configure long term backups o export bacpacs of your database to an storage account as explained here.

Resources