-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Allow using az sql db restore cross-server #20703
Copy link
Copy link
Open
Labels
SQLaz sqlaz sqlService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
SQLaz sqlaz sqlService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Is your feature request related to a problem? Please describe.
I'm frustrated that I cannot use
az sql db restoreto restore a PITR backup of my database to a new database on another server.Describe the solution you'd like
Currently
az sql db restoresupports the following arguments:I would propose adding the following arguments:
This way one can restore a PITR backup to another server in another resource group.
Describe alternatives you've considered
Only workarounds like:
Using the REST API directlySee comment below. Cross-server restore of PITR backups doesn't seem be supported by the REST API.Additional context
I expect that
az sql db restoreuses the REST API, and specifically this endpoint.As far as I can see there is no limitation that requires using the same server or resource group in the
sourceDatabaseId.The preview command for restoring LTR backups,
az sql db ltr-backup restore, does support restoring cross-server.But since LTR backups are only weekly, this does not suffice for our use-case.