Update-Azure Cmdlet
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")