Azure RBAC(Role-Based Access Control) example use case

Swetha Mudunuri
3 min readFeb 21, 2023

--

RBAC User Roles

๐ŸŽฏ๐€๐ณ๐ฎ๐ซ๐ž ๐‘๐๐€๐‚ ๐„๐ฑ๐š๐ฆ๐ฉ๐ฅ๐ž

โœ To further understand how Azure RBAC works, letโ€™s look at an example scenario.

๐Ÿ’Ž Letโ€™s say that Cloudnloud Tech Community is a business that uses Microsoft Azure for its cloud computing requirements.

๐Ÿ’ŽEach of the departments within Cloudnloud Tech Community, including HR, Finance, and IT, has its own set of Azure resources, including virtual machines, storage accounts, and databases.

๐Ÿ’ŽAll of the companyโ€™s Azure resources are managed by the IT department.

๐Ÿ’ŽThe IT department uses Azure RBAC to give responsibilities to users in each department, ensuring that each department may only access the resources it requires.

๐…๐จ๐ซ ๐ข๐ง๐ฌ๐ญ๐š๐ง๐œ๐ž:

๐Ÿ‘‘The HR department is given the โ€œReaderโ€ role for all Azure resources, which allows them to view but not edit them.

Reader Role ๐Ÿ˜

๐Ÿ‘‘The Finance department is given the โ€œContributorโ€ role for the companyโ€™s Finance database, which allows them to build and manage resources in that database but not to access any other Azure services.

Contributor Role ๐Ÿ™‚

๐Ÿ‘‘The IT department is given the โ€œOwnerโ€ role in Azure for all resources, allowing them to create, delete, and edit any resources in the companyโ€™s subscription.

Owner Role

๐Ÿ‘‘One day, an HR employee named Swetha logs in to Azure and tries to delete a virtual machine, but she receives an error message saying that she doesnโ€™t have permission to perform that action.

Access Denied ๐Ÿ˜ฒ

๐Ÿ‘‘For all Azure resources, Swetha has only been given the โ€œReaderโ€ role, which prevents her from making any modifications.

๐Ÿ‘‘Swetha approaches the IT department to request authorization to destroy the virtual machine, and the IT department gives her the โ€œVirtual Machine Contributorโ€ role for that particular virtual machine, enabling her to delete it.

Deleted the virtual machine ๐Ÿ™‚

๐Ÿ‘‘A Finance employee named Vijji logs in to Azure and tries to access a storage account to which she doesnโ€™t have permission.

๐Ÿ‘‘She receives an error message stating that she is not authorized to view that resource.

Permission Denied ๐Ÿ˜ฒ

๐Ÿ‘‘This is because Vijji has only been assigned the โ€œContributorโ€ role for the companyโ€™s Finance database, and not for the storage account.

๐Ÿ‘‘Vijji contacts the IT department to request permission to access the storage account, and the IT department assigns her the โ€œStorage Account Contributorโ€ role for that specific storage account, which allows her to access it.

Able to access the storage account ๐Ÿ˜Ž

๐ŸŽ†In this way, Azure RBAC ensures that each department only has access to the resources it needs and that users can only perform actions that they have been granted permission to perform. This helps to ensure the security and integrity of the companyโ€™s resources in Azure.

Thank you ๐Ÿ˜

๐Ÿ‘‰ Follow me Swetha Mudunuri on LinkedIn, and check my GitHub profile swethamudunuri07

๐Ÿ‘‰ Follow Cloudnloud Tech Community for more information on cloud training and career guidance & CloudnLoud@youtube YouTube channel

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Swetha Mudunuri
Swetha Mudunuri

Written by Swetha Mudunuri

Cloud and Cybersecurity Professional

No responses yet

Write a response