Skip to content

Commit

Permalink
add instruction for specifying odatatype for entity values
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinhzy committed Dec 17, 2024
1 parent 1c6b3cc commit 2a83a0a
Show file tree
Hide file tree
Showing 3 changed files with 410 additions and 187 deletions.
11 changes: 10 additions & 1 deletion src/azure-cli/azure/cli/command_modules/storage/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,13 @@
- name: --entity -e
type: list
short-summary: Space-separated list of key=value pairs. Must contain a PartitionKey and a RowKey.
long-summary: The PartitionKey and RowKey must be unique within the table, and may be up to 64Kb in size. If using an integer value as a key, convert it to a fixed-width string which can be canonically sorted. For example, convert the integer value 1 to the string value "0000001" to ensure proper sorting.
long-summary: >
The PartitionKey and RowKey must be unique within the table, and may be up to 64Kb in size.
If using an integer value as a key, convert it to a fixed-width string which can be canonically sorted.
For example, convert the integer value 1 to the string value "0000001" to ensure proper sorting. \n
To manually specify the value type, an additional key,value pair can be added in the format of
[email protected]=<EdmType> where <EdmType> can be from the following list: Edm.Binary, Edm.Int64, Edm.Guid,
Edm.DateTime, Edm.String, Edm.Int32, Edm.Double, Edm.Boolean
- name: --if-exists
type: string
short-summary: Behavior when an entity already exists for the specified PartitionKey and RowKey.
Expand All @@ -1869,6 +1875,9 @@
text: |
az storage entity insert --connection-string $connectionString --entity PartitionKey=AAA RowKey=BBB Content=ASDF2 --if-exists fail --table-name MyTable
crafted: true
- name: Insert an entity when specifying the odatatype.
text: |
az storage entity insert --connection-string $connectionString --entity PartitionKey=AAA RowKey=BBB Content=0152 [email protected]=Edm.String --if-exists merge --table-name MyTable
"""

helps['storage entity merge'] = """
Expand Down
Loading

0 comments on commit 2a83a0a

Please sign in to comment.