Hello Microsoft Azure Support Team,
We are experiencing intermittent ResourceNotFound (HTTP 404) errors during Azure SQL Database rename operations as part of our automated daily reporting database refresh process.
Environment:
- Azure SQL Database — General Purpose Serverless, Gen5, 1 vCore
Source and target servers are in the same Azure region
PowerShell automation using Azure CLI
Managed identity authentication
Current process:
Copy the source database to a temporary database.
Update the temporary database configuration.
Disable auto-pause on the existing reporting and temporary databases.
Rename the existing reporting database to a backup name.
Rename the temporary database to the reporting database name.
Validate the refreshed database and delete the previous copy.
Issue observed:
The database copy and configuration updates generally succeed. However, the first rename operation intermittently fails with:
ResourceNotFound (HTTP 404)
The issue occurs in Production, while the same PowerShell logic generally works in Nonprod.
Findings from Azure Activity Log:
During one failed rename execution, we observed the following sequence:
Time (UTC)OperationResult00:20:26Update destination database resourceFailed — HTTP 40400:20:28Update destination database resourceSucceeded — HTTP 20000:20:28Delete original database resourceSucceeded — HTTP 20400:20:29Update destination database resourceSucceeded — HTTP 20000:20:32Rename original databaseFailed — HTTP 404The update and delete operations were recorded under an Azure SQL control-plane application identity.
Questions:
Could these update and delete events be internal operations performed as part of the Azure SQL database rename process?
Why might the rename return ResourceNotFound after successful operations involving the destination and original database resources?
Is it possible for the rename to complete partially or successfully while the overall management request returns HTTP 404?
Are there known issues or timing considerations involving database rename operations on the General Purpose Serverless tier?
What readiness checks and state-aware retry mechanisms does Microsoft recommend?
Is there a recommended alternative for reliably refreshing a complete reporting database, including schema, stored procedures, and data?
We would appreciate your guidance on the likely cause and recommended mitigation.
We can provide the relevant correlation IDs and additional diagnostic information through an approved secure support channel if required.
Thank you.Hello Microsoft Azure Support Team,
We are experiencing intermittent ResourceNotFound (HTTP 404) errors during Azure SQL Database rename operations as part of our automated daily reporting database refresh process.
Environment:
Azure SQL Database — General Purpose Serverless, Gen5, 1 vCore
Source and target servers are in the same Azure region
PowerShell automation using Azure CLI
Managed identity authentication
Current process:
Copy the source database to a temporary database.
Update the temporary database configuration.
Disable auto-pause on the existing reporting and temporary databases.
Rename the existing reporting database to a backup name.
Rename the temporary database to the reporting database name.
Validate the refreshed database and delete the previous copy.
Issue observed:
The database copy and configuration updates generally succeed. However, the first rename operation intermittently fails with:
ResourceNotFound (HTTP 404)
The issue occurs in Production, while the same PowerShell logic generally works in Nonprod.
Findings from Azure Activity Log:
During one failed rename execution, we observed the following sequence:
Time (UTC)OperationResult00:20:26Update destination database resourceFailed — HTTP 40400:20:28Update destination database resourceSucceeded — HTTP 20000:20:28Delete original database resourceSucceeded — HTTP 20400:20:29Update destination database resourceSucceeded — HTTP 20000:20:32Rename original databaseFailed — HTTP 404The update and delete operations were recorded under an Azure SQL control-plane application identity.
Questions:
Could these update and delete events be internal operations performed as part of the Azure SQL database rename process?
Why might the rename return ResourceNotFound after successful operations involving the destination and original database resources?
Is it possible for the rename to complete partially or successfully while the overall management request returns HTTP 404?
Are there known issues or timing considerations involving database rename operations on the General Purpose Serverless tier?
What readiness checks and state-aware retry mechanisms does Microsoft recommend?
Is there a recommended alternative for reliably refreshing a complete reporting database, including schema, stored procedures, and data?
We would appreciate your guidance on the likely cause and recommended mitigation.
Thank you.