你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Enable-AzStorageBlobLastAccessTimeTracking
为 Azure 存储 Blob 服务启用上次访问时间跟踪。
语法
Enable-AzStorageBlobLastAccessTimeTracking
[-ResourceGroupName] <String>
[-StorageAccountName] <String>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Enable-AzStorageBlobLastAccessTimeTracking
-StorageAccount <PSStorageAccount>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Enable-AzStorageBlobLastAccessTimeTracking cmdlet 为 Azure 存储 Blob 服务启用上次访问时间跟踪。
示例
示例 1:为 Blob 服务启用上次访问时间跟踪
Enable-AzStorageBlobLastAccessTimeTracking -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -PassThru
Enable Name TrackingGranularityInDays BlobType
------ ---- ------------------------- --------
True AccessTimeTracking 1 {blockBlob}
此命令为 Blob 服务启用上次访问时间跟踪,并显示上次访问时间跟踪策略属性。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-PassThru
显示 ServiceProperties
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-StorageAccount
存储帐户对象
类型: | PSStorageAccount |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-StorageAccountName
存储帐户名称。
类型: | String |
别名: | AccountName, Name |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |