Azure Blob Storage

Using your own Blob Storage Container for Datasaur projects

File Key

This attribute will be used when you create a project to tell Datasaur which file should be used. You can get it by using the Blob URL. See the example below.

  • Blob URL: https://container-name.blob.core.windows.net/storage-account/some-folder/image.jpeg

  • File key: some-folder/image.jpeg

Setup

By integrating your bucket into Datasaur, you would be able to create projects using your Blob Storage Container as the source for the project files.

1. Configure the Azure Blob Storage integration in Datasaur Team Settings

  1. Open any team Workspace (not your individual one), then go to Settings > Integrations which accessible from the sidebar.

  2. Click on the add button which will show the form and select Azure Blob Storage.

  3. Follow the explanations below for getting both the Tenant ID and Storage Container URL. Datasaur needs both values to make the appropriate request to your preferred storage.

  4. Do not close this form throughout the process. We will get back to it in a moment.

2. Getting the Tenant ID

  1. Go to your Azure Entra ID from the Azure portal.

  2. Under the Overview tab, copy the Tenant ID attribute.

3. Getting the Storage Container URL

  1. Go to the Storage Account page from the Azure portal.

  2. Create or select a Storage Account.

  3. From the sidebar, click on Data Storage > Containers menu, then create or select a Blob Storage Container.

  4. Under the Settings section, click on Properties, then copy the URL.

4. Add Datasaur to Azure tenant

You must have at least the Privileged Role Administrator to grant consent to App Registrations for delegated access.

  1. If it's the first time you integrate Azure Blob Storage on Datasaur, click the Add Datasaur to Azure tenant button to grant consent for Datasaur's App Registration to your tenant. If you already do this before, you can skip this step.

  2. Continue the process on a new tab and authorize the Datasaur app. Note that you need Admin permission to do this.

5. Configure CORS

  1. Go to your Storage Account on the Azure portal, find the Settings section on the sidebar, then click Resource sharing (CORS).

  2. Add a new entry with the following fields so that Datasaur app is allowed to access your resource:

    1. Allowed origins: https://app.datasaur.ai

    2. Allowed methods: GET, POST, PUT, DELETE

    3. Allowed headers: *

  3. [Optional, depending on your situation] If you have security settings that restrict access for your Storage Account, you need to add Datasaur's IP address to the firewall whitelist.

    1. Go to your Storage Account on the Azure portal, then find the Networking section under Security + Networking.

    2. Select Enabled from selected virtual networks and IP addresses for the Public network access setting.

    3. In the firewall settings, add the following IP address: 107.22.228.65

    4. Save the settings.

6. Grant role assignments to Datasaur's Service Principal

  1. Still in the Storage Account, find Access Control (IAM) on the sidebar**.**

  2. Click on Add > Add role assignment.

  3. Select Storage Blob Data Contributor, then click Next.

  4. In Assign access to, click on User, group, or service principal, then click select members.

  5. Search for datasaur-object-storage-integrator (you cannot see the service principals from the list, you must search for them), then add it. This step will not be available if you haven't added Datasaur to your Azure tenant above.

  6. Click Next, then Next again on Conditions.

  7. Click on Review + assign.

7. Finish the integration form

  1. Go back to the Datasaur app, where the fields are already filled on the previous steps.

  2. You can go ahead click the add storage button or check connection first. Note that add storage will automatically do the check connection in the background.

Now, Datasaur can access files from or export files into your Azure Blob Storage directly.

Last updated