AZ-104 Microsoft Azure Administrator Exam

You're a great admin... on-prem. Now, become a great admin in the cloud and prove it by passing the Microsoft Certified: Azure Administrator Associate exam!

Practice Test

Exam

Create and configure a container in Blob Storage

Configure Access Control and Security Settings

Azure Blob Storage is a powerful tool for storing large amounts of data, but ensuring that data is secure is crucial. To protect information and comply with security requirements, it offers various mechanisms like stored access policies, shared access signatures (SAS), and role-based access control (RBAC). These tools help manage how data can be accessed and by whom, adding layers of protection and control over your stored data.

Stored Access Policies

One way to exercise control is through stored access policies. These are server-side rules that allow you to group multiple SAS tokens and apply restrictions like start and end times, as well as permissions. Such policies can be applied at the container or file share level, giving you the ability to oversee who can access the container and its contents. They are especially useful for managing access to resources like blob containers, file shares, queues, and tables.

Creating a stored access policy involves using the Set Container ACL operation. This requires authentication, which can be done using account access keys. In practical terms, this means using specific methods from the Azure Storage .NET client library like BlobContainerClient.SetAccessPolicy, which enable defining policies with tailored permissions.

AllowBlobPublicAccess Property

Another important aspect of security settings is managing anonymous access. By default, you can control whether anonymous users can access your blob data by configuring the AllowBlobPublicAccess property. This can be set using various methods such as the Azure portal, PowerShell, or Azure CLI. For example, in PowerShell, you can disable public access by creating a storage account with the -AllowBlobPublicAccess $false parameter to ensure that only authorized people can see your data.

Role-Based Access Control (RBAC)

To further secure Azure storage, RBAC plays a vital role. It lets you assign specific roles to users, determining what actions they can perform. Roles like Storage Blob Data Contributor or Storage Blob Data Reader can be allocated to grant permissions for actions such as writing or reading blob data. By leveraging RBAC, you ensure that only users who are supposed to have access to certain data or actions actually do, preventing unauthorized usage.

Conclusion

In sum, managing access control and security settings in Azure Blob Storage is key to safeguarding your data. By setting up stored access policies, controlling anonymous access with properties like AllowBlobPublicAccess, and using RBAC effectively, you enhance the security framework around your blobs. These measures not only ensure data protection and compliance but also allow for seamless management of secure access across your storage solutions in Azure.