Skip to content

Latest commit

 

History

History
118 lines (90 loc) · 2.45 KB

Add-AzTableRow.md

File metadata and controls

118 lines (90 loc) · 2.45 KB
external help file Module Name online version schema
AzureRmStorageTableCoreHelper-help.xml
azurermstoragetable
2.0.0

Add-AzTableRow

SYNOPSIS

Adds a row/entity to a specified table

SYNTAX

Add-AzTableRow [-Table] <Object> [-PartitionKey] <String> [-RowKey] <String> [[-property] <Hashtable>]
 [-UpdateExisting] [<CommonParameters>]

DESCRIPTION

Adds a row/entity to a specified table

EXAMPLES

EXAMPLE 1

# Adding a row
Add-AzTableRow -Table $Table -PartitionKey $PartitionKey -RowKey ([guid]::NewGuid().tostring()) -property @{"firstName"="Paulo";"lastName"="Costa";"role"="presenter"}

PARAMETERS

-Table

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

-PartitionKey

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

-RowKey

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

-property

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

-UpdateExisting

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

CommonParameters

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).

INPUTS

OUTPUTS

NOTES

RELATED LINKS