As mentioned here, Resource Mover could be used to easily identify dependencies across resources you want to move. Did you try Invoke-AzResourceMoverPrepare Az PowerShell cmdlet or Initiate Move Az REST API along with ValidateOnly parameter? For more information with regards to it, take a look at this document and see if it helps.
Other than Resource Mover, you may depend on Resources table in Azure Resource Graph to get the dependencies of a resource but the kusto query wouldn't be straight forward for all the resource types because the dependencies are typically shown under Properties field of Resources table but all the resource types wouldn't have same JSON structure under the Properties field. So, you might have to come up with various kusto queries for different resource types if you go with Azure Resource Graph approach.