Symptoms
- Pipelines across several teams start failing at the same time with HTTP 403 and
AuthorizationPermissionMismatch(orThis request is not authorized to perform this operation using this permission). - Listing a folder works for some identities and fails for others. Folders created after the change behave differently from older ones.
- Someone recently ran
az storage fs access set-recursive, a PowerShellSet-AzDataLakeGen2AclRecursive, or a Storage Explorer "apply to children" on a high-level folder.
set-recursive replaces the whole ACL on every item under the path. Any entry that was not in the new ACL string is removed: other managed identities, groups and service principals. update-recursive only adds or modifies the entries you pass. Mixing the two up is the usual cause.
Caution
Do not run another
set-recursiveto "put it back" from memory. If you miss an entry, you lock out another identity. Rebuild from a known-good source (step 2) and useupdate-recursive.
1. Confirm scope and impact
Look at the ACL on the root of the container, on a failing folder and on a working folder:
az storage fs access show --account-name <acct> -f <container> -p / --auth-mode login
az storage fs access show --account-name <acct> -f <container> -p raw/sales --auth-mode login
The acl field shows entries such as user::rwx,group::r-x,other::---,user:<object-id>:r-x,default:user:<object-id>:r-x. Check for missing named entries (user:<oid> or group:<oid>) for your pipeline identities.
Find who made the change and on which path. With diagnostic settings sending storage logs to Log Analytics:
StorageBlobLogs
| where TimeGenerated > ago(24h)
| where AccountName == "<acct>"
| where OperationName has "AccessControl"
| summarize Calls = count(), First = min(TimeGenerated), Last = max(TimeGenerated)
by OperationName, RequesterObjectId, CallerIpAddress
| order by First asc
Operation names differ between log versions. If the filter returns nothing, look at all operation names in the incident window. The earliest Uri shows the top-level path the run started from.
Then list the identities that need access: ADF managed identity, Databricks access connector or service principal, Synapse workspace identity, and the AD groups for analysts. Get object IDs with:
az ad sp list --display-name <name> --query "[].{name:displayName, id:id}" -o table
az ad group show --group "<group name>" --query id -o tsv
2. Stop the bleeding with temporary RBAC
Azure RBAC data roles are evaluated before ACLs. Granting Storage Blob Data Contributor (or Reader) to a pipeline identity brings it back immediately, whatever the ACLs say:
SCOPE=$(az storage account show -n <acct> -g <rg> --query id -o tsv)/blobServices/default/containers/<container>
az role assignment create --assignee-object-id <adf-mi-object-id> \
--assignee-principal-type ServicePrincipal \
--role "Storage Blob Data Contributor" --scope "$SCOPE"
Scope it to the container, not the account. Role assignments can take several minutes to apply. Retry the pipeline after about five minutes.
Warning
Container-level RBAC removes the folder-level isolation the ACLs gave you. Record each temporary assignment in the incident ticket and remove it in step 5. Do not grant analyst groups write access this way.
3. Rebuild the ACLs
Pick a source for the correct ACLs, in this order:
| Source | Notes |
|---|---|
| IaC or ACL scripts in Git | Best. Re-run them in update mode. |
| A storage account that was not touched (DR, test) with the same layout | Read with fs access show and copy |
| A folder the run did not reach | Run fs access show on a sibling path outside the changed tree |
| Pipeline configs and team knowledge | Last resort. Build the list per folder. |
Apply entries with update-recursive. It adds or modifies the entries you pass and leaves the others alone:
az storage fs access update-recursive --account-name <acct> -f <container> -p raw/sales \
--acl "user:<adf-mi-oid>:rwx,default:user:<adf-mi-oid>:rwx,group:<analysts-oid>:r-x,default:group:<analysts-oid>:r-x" \
--auth-mode login --continue-on-failure true
default:entries matter. Without them, new files and folders created by pipelines do not inherit access, and tomorrow's run fails.- Identities also need execute (
--x) on every parent folder up to the root to traverse to their path. Do not useupdate-recursiveon/for this, because it changes everything below it. Set the parent folders one at a time withaz storage fs access set, which changes only the path you give. It takes the full ACL, so read the current one first and add the entry:
CUR=$(az storage fs access show --account-name <acct> -f <container> -p raw \
--auth-mode login --query acl -o tsv)
az storage fs access set --account-name <acct> -f <container> -p raw \
--acl "$CUR,user:<adf-mi-oid>:--x" --auth-mode login
Repeat for / and every folder between the root and the data path.
Large trees take a long time and can hit transient failures. The command returns a continuation token and failure counts. Re-run with --continuation <token> and check failedEntries in the output.
Check the mask as well. If the mask:: entry was set to r-x or ---, named entries cannot exceed it, even when they show rwx.
4. Verify recovery
az storage fs access show --account-name <acct> -f <container> -p raw/sales/2026/11 --auth-mode login
Then test as the real identity:
- Re-run one ADF pipeline that reads and writes, so it creates a new folder. Check the new folder's ACL inherited the
default:entries. - In Databricks,
dbutils.fs.ls("abfss://<container>@<acct>.dfs.core.windows.net/raw/sales")as the job's identity. - Ask one analyst to query through Synapse serverless or Fabric.
5. Remove the temporary RBAC
When ACL-only access works, remove each emergency assignment and run the tests again:
az role assignment delete --assignee <adf-mi-object-id> \
--role "Storage Blob Data Contributor" --scope "$SCOPE"
Communicate
List the failed pipeline runs from the incident window so owners can rerun them. Tell the security team which RBAC assignments were added and when they were removed.
Prevent it next time
- Keep ACLs in code (Terraform
azurerm_storage_data_lake_gen2_pathor a script) and apply them only withupdate-recursive. Ban ad hocset-recursiveabove team-level folders. - Prefer ACL entries for groups over individual identities. Fewer entries means less to lose.
- Export ACLs on a schedule (
fs access showon key paths) to a file you can restore from. - Alert on
SetAccessControl-type operations at the container root and top-level folders. - For 403s that are not ACL-related (firewall, private endpoints, SAS), see Azure Storage 403 authorization.
Get the weekly HubDatAI email
One email a week with everything new: posts, learning sessions and videos. Free, no spam, unsubscribe in one click. What you get