az containerapp job update overwrites all scale rules instead of updating one #28226
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
ContainerApp
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
Run a command like this one:
It will effectively create the desired scale rule. However, it will also delete all other existing scale rules.
I want to keep two scale rules.
Related command
az containerapp job update --name $NAME --resource-group $RG --scale-rule-name $SR_NAME --scale-rule-type "azure-queue" --scale-rule-metadata "accountName=$ACCOUNT_NAME" "queueName=$QUEUE_NAME" "queueLength=1" --scale-rule-auth "connection=connection-string-secret"
Errors
Other scale rules deleted
Issue script & Debug output
N/A
Expected behavior
The scale rule name I set is overwritten, other scale rules are not touched.
Environment Summary
azure-cli 2.56.0
core 2.56.0
telemetry 1.1.0
Extensions:
containerapp 0.3.46
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\USERNAME.azure\cliextensions'
Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:21:31) [MSC v.1936 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
My objective is two spawn my job if any of the queues have messages to process.
The text was updated successfully, but these errors were encountered: