Roles and Permissions (Azure)
    • Dark
      Light

    Roles and Permissions (Azure)

    • Dark
      Light

    Article Summary

    Overview

    For Matillion ETL to detect Azure Blob Storage containers, additional credentials may be required. Matillion ETL can either use instance credentials or user defined credentials, the latter of which requires you to gather credentials from your Azure account, and enter them into Matillion ETL.


    Using identities (instance credentials)

    To use instance credentials, your Matillion ETL virtual machine (VM) must already be set up. If you wish to use a user-assigned managed identity (as opposed to a system-assigned managed identity, which is unique to the VM) then you will need to search for the Managed Identities blade on the Azure Portal and set one up.

    If you haven't already done so, please follow the steps below:

    1. Log in to the Azure Portal.
    2. Select the Virtual Machines tile or select More Services to locate it from the full list of Azure services.
    3. Select the virtual machine containing your instance then select Identity from the center-left panel.
    4. In the Identity panel, click the User assigned tab at the top, and click + Add.
    5. You will see a list of user-assigned managed identities on the Add user assigned managed identity panel to the right. Select your Subscription from the drop-down menu and search for the user identity you want to add. Select one or more identities that you want to assign to the resource, then click the Add button.
    6. Return to the Azure portal and select the Storage accounts tile, then select the Blob Storage account that you want Matillion ETL to access.
    7. Once you've selected your Blob Storage account, click Access control (IAM) from the center-left panel.
    8. Select + Add at the top of the page and then Add role assignment from the small menu below the + Add button.
    9. The Add role assignment page will be displayed on the Role tab. Select Storage Account contributor from the list of Job function roles and click Next, which will take you to the Members tab.
    10. For user-assigned identities:
    11. Select User, group, or principle in the Assign access to field.
    12. Select +Select members to open the Select members panel at the right. Search for and select the users you want to assign access to, then click Select.
    13. For system-assigned identities:
    14. Select Managed identity in the Assign access to field.
    15. Select your Subscription and choose the relevant virtual machine from the Managed identity drop-down menu.
    16. Search for and select the users you want to assign access to, then click Select.
    17. Click Review + Assign or Next at the bottom of the window to go to the Review and assign tab to review your selections.
    18. Click Review + Assign again to confirm and save your selections.

    Using apps (user defined credentials)

    To add storage accounts to Matillion ETL, we must first create an app. This requires a user with the Application administrator directory role.

    1. Log in to the Azure Portal.
    2. Select the App registrations tile or select More Services to locate it from the full list of Azure services.
    3. Select + New registration at the top of the page.
    4. On the Register an application page, provide the following details:
      • Name: A clear and descriptive name.
      • Supported account types: Tick the checkbox next to Accounts in any organizational directory (Any Azure AD directory – Multi-tenant) and personal Microsoft accounts (e.g. Skype, Xbox).
      • Redirect URI (optional): Select Web in the drop-down field and paste the Callback URL copied from the Manage OAuth window in Matillion ETL. Note that although the page states this field is optional, you must complete it.
    5. Click Register.
    6. The browser will redirect to the Overview page on the app's newly created dashboard. From here, copy the credentials to the right of Application (client) ID and Directory (tenant) ID as they will be required for use in Matillion ETL.
    Note

    If you haven't already, add a Blob Storage resource to this storage account.

    1. Return to the storage account and select the Blob account from the list of storage accounts, and click Overview, then click Containers.
    2. To add a new container, click the + Container button at the top. Give it a name and access level, and click Create.

    Now, when you import details from your app into Matillion ETL, your client will be able to discover the buckets that the app has ownership of. To use this app in your Matillion ETL client, see the next section.


    Gathering Azure credentials

    For a Matillion ETL instance to take advantage of Azure resources, you are required to provide credentials in the form of a Tenant ID, which is unique to your Azure account, and a Client ID and Secret Key, which are taken from a registered app.

    Tenant ID

    From the Azure Portal, browse to Azure Active Directory, then click Properties from the sidebar on the left, and copy the Tenant ID.

    Client ID

    Browse from the Azure Portal to Azure Active Directory, then click App Registrations, and select an app that's associated with your desired storage accounts. Copy the Application (client) ID, for your Client ID.

    Secret Key

    1. Browse from the Azure Portal to Azure Active Directory, then click App Registrations. Select the App associated with your desired storage accounts.

    2. Next, click Certificates & secrets on the sidebar on the left. Then, in the Certificates & secrets window, click + New client secret, situated underneath the Client Secret section.

    3. The Add a client secret pop-up window will appear at the right of the page. Provide details for the following fields:

      • Description: Provide a description of the client secret.
      • Expires: Tick the checkbox next to when the client secret should expire, then click Add.
    4. Returning to the Certificates & secrets window, the new client secret will appear on the list in the Client secrets section. Copy the Value of the relevant client secret, as you will need to refer to this in Matillion ETL.

    Note
    • Make sure to copy the client secret value right away as it may appear only once.
    • Additionally, when copying the client secret value, some browsers may add a space to the end of the string. Watch out for this as it will cause the credentials to fail.

    Test credentials

    You can test credentials by clicking ProjectManage Credentials.

    If instance credentials are available, you can test them by clicking the Test button at the top of the dialog. This will check access to any services that Matillion ETL uses. You may continue even if the tests fail; however, some features of the product may be impaired or non-functional without appropriate credentials.

    Azure User Defined Credentials are listed by name under their respective tabs. New user defined credentials can be added by using the + button, edited using the pencil icon, or deleted using the X icon by each entry. When creating or editing credentials, a Test button is made available in the new dialog to check the details before finalizing your credentials.

    To learn more, read Manage credentials.

    If you need help with connecting to Azure Blob Storage from Matillion ETL, visit the page Troubleshooting connections to Azure Blob Storage for more information.