Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 02: Add a role assignment to an Azure Storage account

Introduction

Zava plans to acquire Litware, Inc. and must be able to access data from Litware.

Description

In this task, you’ll add a role assignment so that your user account and the app that you registered in the previous task can connect to the storage account where you’ll store Litware data.

Example scenario

Zava’s data engineering team needs controlled access to Litware’s data stored in Azure Data Lake Storage. By assigning roles to both users and applications, Zava ensures that data pipelines and analytics tools can securely read and write data without exposing unnecessary permissions.

Success criteria

You’ve successfully completed this task when both your user account and the registered application can access the Litware storage account using the assigned role.

Learning resources

Key steps

01: Grant storage access to the service principal and user account

  1. Return to the Azure web page.

  2. in the Search field, search for and select Storage accounts.

    Be sure to use Storage accounts and not Storage accounts (classic). The instructions and screenshots will not be correct if you use Storage accounts (classic).

  3. Select the litwaredata@lab.LabInstance.Id storage account.

    76a4mgdz.jpg

  4. In the left pane, select Access Control (IAM).

    pv064kvo.jpg

  5. In the Grant access to this resource tile, select Add role assignment.

    2q4ex9j4.jpg

  6. At the top of the list of roles, in the Search field, enter Storage Blob Data Contributor.

    optf87is.jpg

  7. Select Storage Blob Data Contributor from the search results and then select Next.

    bvm9tsi3.jpg l9cszx6x.jpg

    You must select Storage Blob Data Contributor from the list of search results before you select Next to ensure that you add members correctly to the role.

  8. On Add role assignment page, select the Members tab. Then, in the Members section, select + Select members.

    5i2lqhxg.jpg

    You’ll add two members for this role assignment.

  9. In the Select members pane, in the Search field, enter the following value and then select the member from the search results:

    @lab.CloudPortalCredential(User1).Username

  10. Select Select.

    bt3gl6d8.jpg cjr9e67j.jpg dx0oqjii.jpg

  11. On the Add role assignment page, select + Select members to add the second member.

    5i2lqhxg.jpg

  12. In the Select members search box, enter fabric@lab.LabInstance.Id and then select the member from the search results. Select Select.

    8ol0tv35.jpg 5e9ufkj9.jpg 7auij3p4.jpg

  13. On the Add role assignment page, select Review + assign twice.

    br0j01ll.jpg 6akdptgp.jpg

  14. Leave the Azure page open.