From 0d412320baf9e37672e1b80a7f32bf45db20e077 Mon Sep 17 00:00:00 2001 From: Michael Barton Date: Mon, 19 May 2025 13:00:59 +0100 Subject: [PATCH] Fix containerapp update using yml file I think the upgrade to the new API version (https://github.com/Azure/azure-cli/pull/31276) lead to `runningStatus` appearing as a field at the top level when the YAML file passed to `az containerapp update` is run through the deserialiser. It then caused an error before the command was run: ``` (InvalidRequestContent) The request content was invalid and could not be deserialized: 'Could not find member 'runningStatus' on object of type 'ResourceDefinition'. Path 'runningStatus', line 1, position 224.'. ``` The fix is to add it to the existing list of readonly attributes to remove. --- src/azure-cli/azure/cli/command_modules/containerapp/_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/containerapp/_utils.py b/src/azure-cli/azure/cli/command_modules/containerapp/_utils.py index 893ec203c8d..69dba421f9a 100644 --- a/src/azure-cli/azure/cli/command_modules/containerapp/_utils.py +++ b/src/azure-cli/azure/cli/command_modules/containerapp/_utils.py @@ -949,7 +949,8 @@ def _remove_readonly_attributes(containerapp_def): "latestRevisionFqdn", "customDomainVerificationId", "outboundIpAddresses", - "fqdn" + "fqdn", + "runningStatus" ] for unneeded_property in unneeded_properties: