- In the POWER QUERY ribbon tab, click From Database > From Windows Azure SQL Database.
- In the Microsoft SQL Database dialog box, specify the Windows Azure SQL Database server to connect to in the Server Name box.
- If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import Data from Database using Native Database Query.
- Click OK.
- In the Access a Microsoft SQL Database dialog box, enter your username and password.
- By default, the Encrypt connection check box is selected to signify that Power Query connects to your Windows Azure database using an encrypted connection. If you do not want to connect using an encrypted connection, clear this check box, and then click Save.
If a connection to your SQL Server is not established using an encrypted connection, Power Query prompts you to connect using an unencrypted connection. Click OK in the message to connect using an unencrypted connection.
Note Before connecting to a Windows Azure SQL Database server, you need to allow your IP address to access the database though the Windows Azure firewall.
To allow your IP address:
- Log into your Windows Azure account.
- In the Windows Azure SQL DATABASES page, click your database.
- In the page for your database, in the quick glance pane, click Manage allowed IP addresses.
- In the Allowed IP Addresses section, click ADD TO ALLOWED IP ADDRESSES to allow your IP address to access the database though the firewall.
Import data from external data sources