Given Microsoft is deprecating the previous method of exporting a SQL DB they have put up a suggested example here:
$subscriptionId = \"YOUR AZURE SUBSCRIPT
This has just come out from MS/Azure and helps greatly with DB Export.
https://github.com/Microsoft/sql-server-samples/tree/master/samples/manage/azure-automation-automated-export