We Want to update the access tiers in the ADLS Gen2 for Multiple paths and want to use Azure CLI or Python Code as per our requirement. According to Microsoft Documentation, We see only Portal and Power shell code to do it. Can anyone let us know if we can explore through the mentioned code.
Are you looking for this command -
az storage account update -g <resource-group> -n <storage-account> --set kind=StorageV2 --access-tier=<Hot/Cool>
I was able to update the access tier of Azure Data Lake Storage Gen2 using this command.
I'm not sure you want to change account access tier or blob access tier. If you want to change blob access tier. You can try this command:
az storage blob set-tier --account-key 00000000 --account-name MyAccount --container-name MyContainer --name MyBlob --tier Hot
tier value choose among Archive, Cool, Hot.
Below is my test screenshot,it works:
Here is the API document .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.