I'm working on a tool to allow backup and restore of SQL Azure databases between various local & azure environments.
I have a working version where the BACPAC is created and directly streamed to my Local Developer machine.
But I haven't been able to find a way to create the bacpac and store it directly in Blob Storage using a remote client. Any of the examples I've seen either
- Stream the backup to the local PC, and then re-upload it to Blob Storage
OR
- Rely on having a worker role deployed on Azure to handle process
Is there a way to trigger the Backup Functionality that's available through the Azure Management Portal (Create Backup (BACPAC) directly to Blob Storage) from a remote client?
You should use SQL Azure Database Import Export Service. You can find more about this service here.
For export functionallity you can then use this piece of code: