I was changing an ARM template (including linked templates) that was working for months. After building successfully, when deploying I got the error
New-AzureRmResourceGroupDeployment : A parameter cannot be found that matches parameter name '_artifactsLocationSasToken'
I knew that uploading artifacts sometimes is a somewhat sensitive business, so I checked out corresponding posts to get hints - among them this one that seemed helpful. But nothing had an effect, so I took a break.
After coming back I thoroughly checked my template and
Hence my take on that: do not rely on the Build process; don't get misled by the error message; when having this kind of error re-check the template, even shrink it down to isolate invalid areas