Cannot use entity variable in az storage entity insert using Azure CLI 2.40.0 #23932
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.
CXP Attention
This issue is handled by CXP 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
Related command
az storage entity insert
Describe the bug
Using a Powershell variable for inserting a Storage Entity results in error using Azure CLI 2.40. Same command was working fine in Azure CLI 2.37.0. Running the same command without using a variables also works fine.
To Reproduce
$entity = @()
$entity += "PartitionKey=$partitionKey"
$entity += "RowKey=$rowKey"
$entity += "Content=$content"
az storage entity insert -t $tableName --account-name $storageAccount --auth-mode login -e $entity
Actual behavior
incorrect usage: entity requires: RowKey PartitionKey
Expected behavior
An entity is inserted to the table storage.
Environment summary
CLI version 2.40.0
Additional context
The text was updated successfully, but these errors were encountered: