Configure BCS from Office 365 to Azure PaaS SQL

Sriram Varadarajan
 
Solution Architect
October 9, 2016
 
Rate this article
 
Views
4772

In one of my earlier article we have discussed about setting up SQL in IAAS and PAAS, now let’s talk about consuming them in SharePoint Online Using BCS. This document explains the steps to configure BCS using Office 365 that can pull data from Azure PaaS SQL DB and also to configure firewall IP ranges and network possibilities.

Note: Please make sure to set an AZURE PAAS SQL before proceeding further.

Once you have AZURE SQL in place, the next is to set the secure store.

Create Secure Store Token ID

· Go to Admin site of the O365 tenant and open secure store tab

· Create a new secure store token ID with user name as SQL server username and password and SQL server password, as shown below in the image.

· Make a note of the secure store token ID.

clip_image002[6]

Configure in SharePoint Designer 2013

· Create an external content type with external system as shown in the below image.

· While connecting to Azure PaaS SQL DB in the external System screen, switch to Open network. (If you’re corporate, may be your internal firewall might block the traffic)

· In the add connection wizard provide Azure SQL DB related field values along with secure store token as shown below in the image

clip_image004[4]

· On click of ok button, error popup will be shown up, but this pop up is specific to your network.

clip_image006[4]

· As a onetime activity add the IP specified in the popup to the firewall settings of the Azure SQL server firewall settings page. Along with that add 11 more IP ranges to the firewall settings page in Azure SQL server as shown below.

clip_image008[4]

IP Ranges table

13.107.6.150/31  13.107.6.150 13.107.6.151
13.107.9.150/3113.107.9.15013.107.9.151
40.108.0.0/1940.108.0.140.108.31.254
40.108.128.0/1740.108.128.140.108.255.254
104.146.0.0/19104.146.0.1104.146.31.254
104.146.128.0/17104.146.128.1104.146.255.254
134.170.200.0/21134.170.200.1134.170.207.254
134.170.208.0/21134.170.208.1134.170.215.254
191.232.0.0/23191.232.0.1191.232.1.254
191.234.128.0/21191.234.128.1191.234.135.254
191.235.0.0/20191.235.0.1191.235.15.234

The above IP ranges may be updated based on Microsoft updates. This updates needs to be periodically checked across in this site.

· Next go back to SharePoint designer and click ok, now the connection will be stablished and DB will be created.

· Select any DB and create all operations, set parameters, filters and click finish

·

clip_image010[4]

· Click the save button at the top left of the designer to save the connection to external content type.

· Now navigate to the O365 admin site > BCS tab > click Manage BDC models and external content types.

· Newly created content type will be reflected there in the bcs screen. Select the content type and “set object permissions” and “set metadata store permissions” as shown below

clip_image012[4]

ADD BDC Web part or External List in O365

· Create new web page and add Business Data List web Part as shown below

clip_image014[4]

· Edit the web part and configure the external content type to the above created one as shown below

clip_image016[4]

· BCS is configured and shown as below

clip_image018[4]

Author Info

Sriram Varadarajan
 
Solution Architect
 
Rate this article
 
Sriram is a Technology Evangelist with 15+ years experience in Microsoft Technologies. He is an enterprise architect working for large pharmaceutical organization which has presence globally with largest Microsoft implementation ...read more
 

Leave a comment