Cmdlets for Azure Table Storage

Build 25.0.9434

Update-Azure Cmdlet

Parameters   Output Objects  

Azure Table Storage データを更新します。

Syntax

Update-Azure [parameters]

Remarks

Update-Azure コマンドレットを使って、SQL UPDATE ステートメントに似た構文を用いてAzure Table Storage データを更新できます。

$conn = Connect-Azure -AccessKey 'myAccessKey' -Account 'myAccountName'
Update-Azure -Connection $conn -Table "NorthwindProducts" -Columns @("Name") -Values @("Jon Doe") -Id "1"
Where パラメータはテーブルの主キーを指定するためにも使われます。
Update-Azure -Connection $conn -Table "NorthwindProducts" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '1'"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-Azure -Connection $conn -Table NorthwindProducts -Where "Industry = 'Floppy Disks'" | Update-Azure -Columns @("Industry") -Values @("Floppy Disks 2")

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434