Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reference feedback]: Insert Table Entity as Entity - Set Column Type #30974

Open
shanerowley-ds opened this issue Mar 7, 2025 · 2 comments
Open
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Storage az storage
Milestone

Comments

@shanerowley-ds
Copy link

shanerowley-ds commented Mar 7, 2025

Type of issue

Other (describe below)

Reference command name

So this works

$entity = @()
$entity += "PartitionKey=$partitionKey"
$entity += "RowKey=$rowKey"
$entity += "Content=$content"
az storage entity insert -t $tableName --account-name $storageAccount --auth-mode login -e @entity

Feedback

But how do I include the odata.type per column in the entity? e.g. "Content=$content [email protected]@odata.type=Edm.Int32"? I've tried a few different things but nothing seems to work.

Page URL

No response

Content source URL

#23932

Author

No response

Document Id

No response

@shanerowley-ds shanerowley-ds added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Mar 7, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 7, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage az storage labels Mar 7, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 7, 2025
@shanerowley-ds shanerowley-ds changed the title [Reference feedback]: https://github.com/Azure/azure-cli/issues/23932 [Reference feedback]: Insert Table Entity as Entity - Set Column Type Mar 7, 2025
@yonzhan yonzhan added this to the Backlog milestone Mar 7, 2025
@calvinhzy
Copy link
Member

Hi @shanerowley-ds , I have added instruction here https://github.com/Azure/azure-cli/pull/30534/files
Can you try this az storage entity insert --connection-string $connectionString --entity PartitionKey=AAA RowKey=BBB Content=0152 [email protected]=Edm.String --if-exists merge --table-name MyTable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Storage az storage
Projects
None yet
Development

No branches or pull requests

4 participants