so I've set up a build/deployment in VSO where I want to stop the website and web jobs before deployment (because otherwise files are locked). The powershell script essentially contains:

Stop-AzureWebsite -Name $website # this works, website is stopped after

$jobs = Get-AzureWebsiteJob -Name $website # this works, contains a list of the jobs

Stop-AzureWebsiteJob -Name $website -JobName $job -PassThru

This last line fails, using the names returned from the preceding call I get an unhelpful "Not Found". It's not an account / subscription thing as the preceding lines work happily, does anyone have any ideas?

Thanks in advance