简体   繁体   English

我需要什么权限才能使Azure存储分析日志不可变?

[英]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.

相关问题 如何访问azure storage $ logs - How do I access azure storage $logs 如何在 azure 中读取和写入不可变 Blob 存储 - How do I read and write to immutable blob storage in azure 对 Azure 存储容器中的目录进行 ACL 更改需要哪些权限? - What permissions are required to make ACL changes to a directory in an Azure storage container? 什么是Windows Azure存储分析? - What is Windows Azure Storage Analytics? 创建队列存储触发功能需要什么权限? - What permissions I need to create queue storage trigger function? 在Azure Devops中,添加一个state需要什么样的权限? - In Azure Devops, what kind of permissions do you need to add a state? 我可以使用 App Service Storage 使动态生成的文件可供公众永久下载,还是需要使用 Azure 存储? - Can I use App Service Storage to make files dynamically generated permanently downloadable by the public or do I need to use Azure Storage? Azure 中的 Microsoft Bot 是否需要任何特定权限才能写入表存储? - Do a Microsoft Bot in Azure need any specific Permissions to write in a Table Storage? 如何获取特定 Azure 存储队列中的消息计数 Azure Log Analytics - How do I get the count of messages in a particular Azure Storage queue in Azure Log Analytics 我需要将存储附加到Bitnami Wordpress Azure吗? - Do I need to attach storage to Bitnami Wordpress Azure?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM