I am wanting to clone a copy of our production database onto our QA server as part of our continuous integration program.
There doesn't appear to be a method in Azure to clone a database just yet so I am exporting and importing the database via blob storage.
I am having trouble with the following commands (ommiting the unimportant stuff):
$SqlCtx = New-AzureSqlDatabaseServerContext -ServerName $ServerName -UseSubscription
$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainer $Container -DatabaseName $DatabaseName -BlobName $BlobName
Which returns the following error.
Start-AzureSqlDatabaseExport : Cannot bind parameter 'SqlConnectionContext'. Cannot convert the "Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.ServerDataServiceCertAuth" value of type "Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.ServerDataServiceCertAuth" to type "Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.ServerDataServiceSqlAuth".
I am quite sure that this is because I don't have any sql credentials in my subscription so the sql connection doesn't know how to connect. Does anybody know how I can make this work?