external help file | Module Name | online version | schema |
---|---|---|---|
AzureRmStorageTableCoreHelper-help.xml |
azurermstoragetable |
2.0.0 |
Adds a row/entity to a specified table
Add-AzTableRow [-Table] <Object> [-PartitionKey] <String> [-RowKey] <String> [[-property] <Hashtable>]
[-UpdateExisting] [<CommonParameters>]
Adds a row/entity to a specified table
# Adding a row
Add-AzTableRow -Table $Table -PartitionKey $PartitionKey -RowKey ([guid]::NewGuid().tostring()) -property @{"firstName"="Paulo";"lastName"="Costa";"role"="presenter"}
Table object of type Microsoft.Azure.Cosmos.Table.CloudTable where the entity will be added
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Identifies the table partition
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Identifies a row within a partition
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Hashtable with the columns that will be part of the entity. E.g. @{"firstName"="Paulo";"lastName"="Marques"}
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Signalizes that command should update existing row, if such found by PartitionKey and RowKey. If not found, new row is added.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).