diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index e30102bc706..857dccd38d3 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -11,9 +11,9 @@ upcoming * 'az containerapp env dapr-component init': support initializing Dapr components and dev services for an environment * 'az containerapp patch apply': support image patching for java application * Upgrade api-version to 2023-08-01-preview -* 'az container app create/update': support --logs-dynamic-json-columns/-j to configure whether to parse json string log into dynamic json columns -* 'az container app create/update/up': Remove the region check for the Cloud Build feature -* 'az container app create/update/up': Improve logs on the local buildpack source to cloud flow +* 'az containerapp env create/update': Support --logs-dynamic-json-columns/-j to configure whether to parse json string log into dynamic json columns +* 'az containerapp create/update/up': Remove the region check for the Cloud Build feature +* 'az containerapp create/update/up': Improve logs on the local buildpack source to cloud flow 0.3.43 ++++++ diff --git a/src/containerapp/azext_containerapp/containerapp_env_decorator.py b/src/containerapp/azext_containerapp/containerapp_env_decorator.py index 11193074264..3f005769385 100644 --- a/src/containerapp/azext_containerapp/containerapp_env_decorator.py +++ b/src/containerapp/azext_containerapp/containerapp_env_decorator.py @@ -88,6 +88,9 @@ def set_up_app_log_configuration(self): logs_destination = None if logs_destination == "none" else logs_destination safe_set(self.managed_env_def, "properties", "appLogsConfiguration", "destination", value=logs_destination) + if logs_destination == "azure-monitor": + safe_set(self.managed_env_def, "properties", "appLogsConfiguration", "logAnalyticsConfiguration", value=None) + if self.get_argument_logs_customer_id() and self.get_argument_logs_key(): safe_set(self.managed_env_def, "properties", "appLogsConfiguration", "logAnalyticsConfiguration", "customerId", value=self.get_argument_logs_customer_id())