Skip to main content
Question

Backup of azure SQL managed instances

  • December 20, 2024
  • 6 replies
  • 87 views

Forum|alt.badge.img+14

Good morning,

I want to set up a backup of SQL managed instances, does anyone have experience with that? What I heard is that because we run on SP32 commvault that there is a limit of 200GB per DB. Is that true? Because configuration and starting of backup I get an error message that DB cannot be exported.

I use the following configuration:

For Cloud authentication: Entra ID account with access to storage account
For sql authentication: sql admin account with sysadmin role
App registration created with access to the storage account.

Thanks in advance.

6 replies

Damian Andre
Vaulter
Forum|alt.badge.img+23
  • Vaulter
  • 1297 replies
  • December 20, 2024

There are a couple of methods of protecting SQL instances in Azure. The old method is the ‘bacpac’ method which Azure imposes a max 200GB limitation. However, from version 2023+ (11.30) there is a new method which I think supports up to 8TB in size. Use this option instead and you wont have the 200GB issue:

https://documentation.commvault.com/2023e/essential/using_staging_path_export_method_for_secure_transfer_of_data.html

 


Forum|alt.badge.img+14
  • Author
  • Byte
  • 167 replies
  • December 23, 2024

@Damian Andre 

So on this methode you are not using storage account to export the DB. But i am not seeing the option to use staging path:

 

 


Forum|alt.badge.img+14
  • Author
  • Byte
  • 167 replies
  • December 23, 2024

@Damian Andre Ok i found the staging path, this option is available on the client self where sql agent installed or on Access node which used to backup the sql.

 

After setting up and starting new backup i am still getting error that can't export the database

 

here is the log from the job.


Forum|alt.badge.img+4
  • Vaulter
  • 23 replies
  • December 23, 2024

Hi ​@Egor Skepko 

Good day!

At the moment. We use BACKUP To URL mechanism for Managed Azure SQL Backups. For this mechanism, connecting to Azure Storage Account via a Storage Connection String from CV and Connecting to Azure Storage Account via a SAS token from Managed Azure SQL Instance is a must.

 

Please find detailed explanation below.

We support BACKUP TO URL (Azure Storage) mechanism for “Azure SQL Database Managed Instance” protection and do NOT have any plans on supporting Using the Staging Path Export Method for a Secure Transfer of Data mechanism for “Azure SQL Database Managed Instance” protection.

 

We have two different entities being protected on Azure side – Azure SQL Database and Azure SQL Database Managed Instance. As explained earlier, we use different mechanisms to protect these 2 different entities.

 

Using the Staging Path Export Method for a Secure Transfer of Data mechanism is used ONLY for Azure SQL Database and NOT for Azure SQL Database Managed Instance. As seen in BOL screenshot below, you see this mechanism included under “Azure SQL Database” protection section only.

 

download.aspx?AttachmentId=3eeb44eb-18c3-43d6-a911-a5f9da8d4ee6

 

Whereas BACKUP TO URL (Azure Storage) mechanism is used ONLY for Azure SQL Database Managed Instance and NOT for Azure SQL Database. As seen in BOL screenshot below, you see this mechanism included under “Azure SQL Database Managed Instance” protection section only.

 

download.aspx?AttachmentId=ef410345-7c34-48c3-90fc-63bd4e271511

 

 

Due to following reasons, we support BACKUP TO URL (Azure Storage) mechanism for “Azure SQL Database Managed Instance” protection. Accordingly, we do NOT have any plans on supporting Using the Staging Path Export Method for a Secure Transfer of Data mechanism for “Azure SQL Database Managed Instance” protection.

 

  1. BACKUP TO URL is more efficient widely adopted mechanism for “Azure SQL Database Managed Instance” protection because it is natively supported by MS for this very purpose.

 

  1. MS even discourages the use of Using the Staging Path Export Method for a Secure Transfer of Data mechanism for backup and restore due to a few limitations of this mechanism compared to BACKUP TO URL mechanism
    1. BACPACs are not intended to be used for backup and restore operations
    2. As per MS prerequisites, we need to create copy of the Azure SQL Database being backed up to first create transactionally consistent copy of it and then we can export from this copy. So customers need to pay for the storage of copied database that resides on Azure side for the duration of the export.
    3. For larger databases, BACPAC export/import might take a long time, and might fail for various reason.
    4. If the export operation exceeds 20 hours, it might be cancelled

 

 


Forum|alt.badge.img+14
  • Author
  • Byte
  • 167 replies
  • December 23, 2024

@Syed_S Thank you for explanation, but with  BACKUP TO URL (Azure Storage)  i am getting same error, that can't export database.

 

Before generating SAS token i added to allow object and containers en i past the connection string to storage connection string under sql cloud configuration. And still getting ame error. 


Forum|alt.badge.img+14

@Egor Skepko Following up on this thread.

First make sure you are running the latest MR release.

In the logs you shared it looks like this is specific to this storage account we are seeing. Do you know if this was reviewed on your side?

StatusMessage:Key based authentication is not permitted on this storage account.

ErrorCode:KeyBasedAuthenticationNotPermitted

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings