如何使用powershell从Azure表存储中删除属性?

问题描述 投票:0回答:1

我尝试使用此代码从表中删除属性:

$propertiesToRemove = @("Prop1", "Prop2")
$row = Get-AzTableRow -Table $cloudTable -PartitionKey "PK" -RowKey $id
$propertiesToRemove | %{ $row.PSObject.Properties.Remove($_) }
Update-AzTableRow -Table $cloudTable -entity $row

但是它使他们保持不变。如何使用Powershell做到这一点?

azure powershell azure-table-storage azure-powershell
1个回答
1
投票

假设您正在使用AzureRmStorageTable,我认为不可能从表中删除属性,因为AzureRmStorageTable执行Update-AzTableRow操作而不是InsertOrMergeInsertOrMerge操作。

Replace

Replace
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.