diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/ContainerApps.json index 0c16d207cf07..7c55f98f4600 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/ContainerApps.json @@ -871,6 +871,27 @@ "enableMetrics": { "description": "Enable jmx core metrics for the java app", "type": "boolean" + }, + "javaAgent": { + "description": "Diagnostic capabilities achieved by java agent", + "type": "object", + "properties": { + "enabled": { + "description": "Enable java agent injection for the java app.", + "type": "boolean" + }, + "logLevelSettings": { + "description": "Settings of the log level for the java app.", + "type": "array", + "items": { + "$ref": "#/definitions/LogLevelSetting" + }, + "x-ms-identifiers": [ + "logger", + "level" + ] + } + } } } }, @@ -886,6 +907,24 @@ } } }, + "LogLevelSetting": { + "description": "Log level settings for java workloads.", + "type": "object", + "required": [ + "logger", + "level" + ], + "properties": { + "logger": { + "description": "Logger name.", + "type": "string" + }, + "level": { + "description": "The specified logger's log level.", + "type": "string" + } + } + }, "Ingress": { "description": "Container App Ingress configuration.", "type": "object", diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate.json index 3b1917fd2cb5..840e7b6a13ef 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate.json @@ -93,7 +93,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true @@ -268,7 +277,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true @@ -401,7 +419,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate_ConnectedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate_ConnectedEnvironment.json index 20c3018ee006..2d25e5e673bc 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate_ConnectedEnvironment.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate_ConnectedEnvironment.json @@ -96,7 +96,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true @@ -237,7 +246,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true @@ -350,7 +368,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json index b7aebe4a113a..518495f4fa34 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json @@ -78,7 +78,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListByResourceGroup.json index fcf37eadb776..2efb8933e4a2 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListByResourceGroup.json @@ -79,7 +79,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListBySubscription.json index 1675407c183b..a80d2bbd3fb0 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListBySubscription.json @@ -78,7 +78,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json index 620e678bd139..1d36c5d18980 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json @@ -63,7 +63,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true @@ -207,7 +216,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json index d658f4910019..1b63e3701009 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json @@ -75,7 +75,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json index d658f4910019..1b63e3701009 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json @@ -75,7 +75,16 @@ }, "runtime": { "java": { - "enableMetrics": true + "enableMetrics": true, + "javaAgent": { + "enabled": true, + "logLevelSettings": [ + { + "logger": "org.springframework.boot", + "level": "debug" + } + ] + } }, "dotnet": { "autoConfigureDataProtection": true