The first step is to create a service principal and their associated credentials. You’ll give Statsig access to this service principal to access Fabric resources. You should create a new service principal for Statsig, but you can use the same service principal to give Statsig access to multiple Fabric resources if necessary.
Sign in to the Azure portal.
In the navigation menu, select Microsoft Entra ID (formerly Azure Active Directory).
Click App registrations under Manage and then click + New registration.
Enter a Name for your application such as “Statsig on Fabric”. In the Supported account types section, select Accounts in this organizational directory only and click Register
Make a note of the Application (client) ID and Directory (tenant) ID. You will use them later to connect Statsig.
Create a secret for this application. Re-select the application you just created.
On the navigation menu, click Certificates & secrets and then click + New client secret.
In the Add a client secret pane, select an expiry period and enter a description for the client secret, eg “Statsig Credentials”.
Granting the service principal access to your workspace
Any resources you wish to connect to must also be placed in a shared workspace. Once you have a shared workspace, you’ll need to grant your new service principal access to the workspace.
Select the workspace and then click Manage Access.
Click + Add people or groups.
Select the name of the service principal you created in Step 1. If it doesn’t appear, make sure you’ve enabled the Service principals can use Fabric APIs setting above.
In the drop-down menu, select Contributor.
The service principal can now access any resource within the workspace given the appropriate endpoint.
What IP addresses will Statsig access data warehouses from?
See FAQ to add Statsig’s IP addresses in your firewall to only allow traffic originating from Statsig to access your Microsoft Fabric account. You can specify IP addresses to allow as part of Microsoft Entra’s conditional access.For Microsoft Fabric, Statsig uses 4.242.112.193 but it is recommended to allowlist all Statsig IP addresses.