[英]What permissions do I need to make Azure Storage analytics logs immutable?
I have Owner permissions on a storage account in Azure. 我对Azure中的存储帐户具有所有者权限。 To make a blob container immutable I can use this command in PowerShell:
要使Blob容器不可变,我可以在PowerShell中使用以下命令:
Set-AzRmStorageContainerImmutabilityPolicy -ResourceGroupName 'xxxxx' -StorageAccountName 'xxxxx' -ContainerName 'TestContainer' -ImmutabilityPeriod 1 #1 day
When I try this on the analytics logs container ("$logs"), I get this error: 当我在分析日志容器(“ $ logs”)上尝试此操作时,出现以下错误:
Set-AzRmStorageContainerImmutabilityPolicy : The account being accessed
does not have sufficient permissions to execute this operation.
What permissions do I need to do this? 我需要什么权限?
Considering $logs
container is a system defined blob container, I don't think you can change the immutability policy for that container. 考虑到
$logs
容器是系统定义的Blob容器,我认为您不能更改该容器的不变性策略。 You can't even delete that blob container. 您甚至无法删除该Blob容器。
If you're trying to set the blobs in this blob container to auto-expire after a certain period of time, you may want to try Blob Lifecycle Management
. 如果您尝试将Blob容器中的Blob设置为在一定时间后自动过期,则可能需要尝试
Blob Lifecycle Management
。 You can read more about it here: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-concepts . 您可以在此处了解更多信息: https : //docs.microsoft.com/zh-cn/azure/storage/blobs/storage-lifecycle-management-concepts 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.