I found a faster and easier way to accomplish this.
First, copy the table (or query) into a tab delimited file as follows:
COPY (SELECT siteid, searchdist, listtype, list, sitename, county, street, city, state, zip, georesult, elevation, lat, lng, wkt, unlocated_bool, id, status, standard_status, date_opened_or_reported, date_closed, notes, list_type_description FROM mlocal) TO 'c:\SQLAzureImportFiles\data_script_mlocal.tsv' NULL E''
Then you need to create your table in SQL, this will not process any schema for you. The schema must match the exported TSV file in order and data types.
Finally, you run the SQL bcp utility to enter the tsv file as follows:
bcp MyDb.dbo.mlocal in "\\NEWDBSERVER\SQLAzureImportFiles\data_script_mlocal.tsv" -S tcp:YourDBServer.database.windows.net -U YourUserName -P YourPassword -c
A few comments that I met. Postgres and SQL Server handle logical fields differently. For your SQL Server schema, your logical fields must be set to varchar (1), and the resulting data will be "f", "t", or "null". Then you will need to translate this field a little. something like:
ALTER TABLE mlocal ADD unlocated bit; UPDATE mlocal SET unlocated=1 WHERE unlocated_bool='t'; UPDATE mlocal SET unlocated=0 WHERE unlocated_bool='f'; ALTER TABLE mlocal DROP COLUMN unlocated_bool;
Another thing is that the fields of geography / geometry are very different between the two platforms. Export geometry fields as WKT with ST_AsText(geo) and convert accordingly to the end of SQL Server.
There may be more incompatibilities that require such settings.
EDIT. Therefore, when this method technically works, I try to transfer several million records from 100+ tables in SQL Azure and bcp to SQL Azure, it turns out pretty flaky. I constantly get intermittent. It is not possible to open errors in the files of the BCP server files, the server is interrupted with a delay and for some reason some records are not transmitted without any signs of errors or problems. Therefore, this method is unstable for transferring large amounts of Azure SQL data.