Closed wbreza closed 1 week ago
After initial investigation the following is happening.
azd
is using Azure SDK for go that is generated from API version 2023-11-02-preview
During azd deploy
the container app metadata is retrieved, a few modifications are made to the metadata to support updating the revisions and referenced container image and the updated metadata is PUT back to the ARM control plan.
Since the new scale rules identity property is from a newer API version it is not unmarshalled into the existing SDK struct and when serialized back during the PUT operation the scale rules are essentially reset causing the current behavior.
azd
should respect the API version of the configured container app without unintentionally truncating the configuration.
When using API version
2024-02-02-preview
for Azure container apps and configuring KEDA scale rulesExample:
Steps to reproduce
azd provision
Scale rules created successfullyazd deploy
Scale rules identity configuration resetActual behavior
KEDA scale rules identity are reset after running
azd deploy
Expected behavior
KEDA scale rules remain intact and work correctly.