The Simplest Way to Make Azure Resource Manager and Azure Storage Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure resource manager and azure storage to build and run cloud storage. The manager sets up the storage accounts, while the storage tool holds the files. This pair lets teams automate bucket creation, set rules, and move data in production. When set up right, apps can read and write blobs without manual steps. How azure resource manager and azure storage share roles and data First, understand that these two tools work on two separate planes. The manager runs the control plane where

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams use azure resource manager and azure storage to build and run cloud storage. The manager sets up the storage accounts, while the storage tool holds the files. This pair lets teams automate bucket creation, set rules, and move data in production. When set up right, apps can read and write blobs without manual steps.

How azure resource manager and azure storage share roles and data

First, understand that these two tools work on two separate planes. The manager runs the control plane where you create, update, or delete accounts. The storage service runs the data plane where apps read and write actual files. A user or app must log in to Azure before doing any work. The manager checks the role on the subscription or resource group first. If the role allows it, the manager creates or updates the storage account. Still, a control plane role does not always grant data plane rights. Wait until you assign a specific data role before reading blobs or queues. Data flows straight from your app to the storage endpoint over the network. The manager does not sit in the middle of file uploads or downloads. Instead, the manager can hand out shared keys if a role allows key listing. Using identity roles for both planes keeps the login flow clean and simple.

Common failures and how to scope roles and networks

Many teams fail because they give out broad owner roles to everyone. An owner on the control plane can list master storage keys at any time. Once someone has a master key, they bypass all identity checks on data. Shared service accounts create a similar risk for production teams. When ten developers share one service account, audit logs cannot show who deleted files. Broad tokens that last for months also leave storage buckets open to leaks. Unlogged queries and file reads make it hard to track down data bugs. You can fix this by turning off shared key use on the account. Next, split your roles between control plane tasks and data plane tasks. Give deployment pipelines the right to change account settings through the manager. Give running apps the right to read or write only one specific container. Lock down the network path so storage only accepts traffic from known virtual networks. Turn on diagnostic logs for both planes so your team can check every action. If a bucket holds emails, phone numbers, or card numbers, add data masking rules. Masking rewrites matched fields in results so raw sensitive values do not spill out.

Keeping day-to-day storage operations fast and safe

Daily work often mixes quick fixes with long term automation. Engineers might need to check a failed deployment or inspect a single file. Without clear boundaries, temporary fixes turn into permanent security holes. Teams often open public network rules during an outage and forget to close them. A better plan keeps network rules strict at all times. You should assign roles to groups instead of single users. Group assignments make it easy to add or remove team members in one place. Review your control plane logs each week to spot surprise changes to storage settings. Check data plane logs to find apps that still use old tokens. Keep test storage accounts in a separate resource group from production data. This simple split stops test scripts from touching live customer files.

Azure RBAC + GCP Access Context Manager: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Can a resource manager role read files inside a storage account?

Not by default, unless that role allows listing the account master keys. You should turn off shared keys and assign a separate data role instead.

How do we stop developers from sharing storage account keys?

Disable shared key access in the account settings through the manager. Force all users and apps to log in with their own cloud identities.

Should our deployment pipeline have data plane rights on storage?

No, the pipeline only needs control plane rights to create and set up accounts. Keep data reading and writing roles for the apps that actually process files.

The query runs. The emails stay hidden.