One of my sites has grown large, and I want to move it to a new Content DB.
I've created a new content db, ResearchDB, successfully added it to SharePoint (New-SPContentDatabase), and checked
Get-SPSite "http://intranet" | Get-SPWeb -Limit All | Select Title
to verify that my site, Research, is listed.
When I use
Move-SPSite "http://intranet/depts/research" -DestinationDatabase "ResearchDB"
Move-SPSite : Cannot find an SPSite object with Id or Url: http://intranet/depts/research. At line:1 char:12 + Move-SPSite <<<< "http://intranet/depts/research" -DestinationDatabase "ResearchDB " + CategoryInfo : InvalidData: (Microsoft.Share...PCmdletMoveSite:SPCmdletMoveSite) [Move-SPSite], SPCmdletPipeBindException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletMoveSite
Did a little research which said to verify that AAM is set with
http://intranet in default zone, which it was.