Hi CV!
I have an Azure SQL Database backup failing with the below errors in the Job Details:Â
Error Code: o30:414] Description: Failed to export Azure database bAzureDbName] to Azure storage. Please look at the SQLiDA log for more details. Source: AzureSQLProxyCilent, Process: SQLiDAÂ
Â
Checking the SQLiDA.log I can see that the database copy operation in the SQL Instance is succeeding, however exporting the BACPAC to the Azure Storage account configured in the agent properties is failing with the below error:Â
The storage account cannot be accessed. Please check the storage account name and key and try again.Â
Â
SQLiDA.log shows errors trying to access the storage account.Â
10332 4    10/27 20:00:25 412305 ### CvAzureSQL.AzureSQL.LoggerDebug - Starting to copy from db -AzureDbName] to copied db Âcv_copy_1603854025346_AzureDbName] in server 4SQLAZUREVM].Â
10332 4    10/27 20:01:47 412305 ### CvAzureSQL.AzureSQL.LoggerDebug - Finished copying from db gAzureDbName] to copied db ncv_copy_1603854025346_AzureDbName] in server cSQLAZUREVM].Â
10332 4    10/27 20:01:47 412305 ### CvAzureSQL.AzureSQL.LoggerDebug - Starting to export from db ucv_copy_1603854025346_AzureDbName] to bacpac AzureDbName.1603854025346.1603854107882.0.bacpac] in server NSQLAZUREVM.database.windows.net].Â
10332Â 2568Â 10/27 20:02:04 412305Â CAzureSQLBackup::doAzureDBBackup(148): -Error-:Â Do SQL DB Backup Failed with error BThe storage account cannot be accessed. Please check the storage account name and key and try again.Â
System.Net.WebException: The remote server returned an error: (400) Bad Request.Â
  at System.Net.HttpWebRequest.GetResponse()Â
  at CvAzureSQL.AzureSQLRM.requestRESTAPI(String sMethod, String sRequest, String sBody)Â
  at CvAzureSQL.AzureSQLRM.requestExportDB(String sFullyQualifiedServerName, ExportRequest export Req, String sDBName, String& sStatusURL) ].Â
10332Â 2568Â 10/27 20:02:04 412305Â CAzureSQLCommon::initializeCOM()Â -Â -Â Already initialized.Â
10332 2568 10/27 20:02:04 412305 CAzureSQLCommon::setAzureADAccount(1928): -Debug-: Active Direcotry authentication credentials are not set for clientId c69].Â
10332Â 2568Â 10/27 20:02:04 412305Â CSQLBackup::runAzureDBBackupInThread(2140): -Error-: Failed to backup database/AzureDbName].Â
Â
Any ideas on how to fix this please?Â