I am trying to clone a SQL database from a managed instance to another managed instance. And I am using Point In Time Restore to do so. The identity used to perform this action has "Reader
" role for the instance of source database and "Contributor
" role for the instance of the target database.
However, I am getting the following error:
The client
{...}
with object id{...}
has permission to perform action 'Microsoft.Sql/managedInstances/databases/write' on scope{target instance}
however, it does not have permission to perform action 'Microsoft.Sql/managedInstances/databases/write' on the linked scope(s){source instance}
or the linked scope(s) are invalid.
Why would it need write
permission on the source instance?