Azure / Azure/azure-cli

How to assign access policies to datalake storage account without recursive option

Open
#21,959 14 comments 0 reactions 1 assignee Assigned to @evelyn-ys View on GitHub
act-codegen-extensibility-squad Auto-Assign customer-reported Service Attention Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

It seems the Microsoft document on "az storage fs access update-recursive" is not clear not fully functional as per my testing. is there any way to do update alone without doing the update-recursive?

I have an azuredevops pipeline to assign new access & default policies to the datalake storage account policies without affecting the exising ACL settings and which is working fine.

But we are facing issues when the access is granting recursively to the directory paths for larger storage blobs.

So looking for a solution where we can decrease the time taken for assigning the access policies or can we have workaroud solution yo assign only assign the policies to the given path alone not recursively.


- task: AzureCLI@2
displayName: 'setting Default ACL for Execution permission for ${{ user }}'
inputs:
azureSubscription: 'mysubscription'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: 'az storage fs access update-recursive --acl "default:user:${{ user }}:--x" -p / -f ${{parameters.fsname}} --account-name ${{parameters.storagename}} --auth-mode login'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.