diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/ContainerApps.json index c400c416f1b0..747098a86d7e 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/ContainerApps.json @@ -649,6 +649,10 @@ "$ref": "#/definitions/Dapr", "description": "Dapr configuration for the Container App." }, + "runtime": { + "$ref": "#/definitions/Runtime", + "description": "App runtime configuration for the Container App." + }, "maxInactiveRevisions": { "format": "int32", "description": "Optional. Max inactive revisions a Container App can have.", @@ -891,6 +895,22 @@ } } }, + "Runtime": { + "description": "Container App Runtime configuration.", + "type": "object", + "properties": { + "java": { + "description": "Java app configuration", + "type": "object", + "properties": { + "enableMetrics": { + "description": "Enable jmx core metrics for the java app", + "type": "boolean" + } + } + } + } + }, "Ingress": { "description": "Container App Ingress configuration.", "type": "object", diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_CreateOrUpdate.json index 71684dbff941..9b231c3c0a40 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_CreateOrUpdate.json @@ -94,6 +94,11 @@ "maxInactiveRevisions": 10, "service": { "type": "redis" + }, + "runtime": { + "java": { + "enableMetrics": true + } } }, "template": { @@ -276,6 +281,11 @@ "appPort": 3000, "appProtocol": "http", "httpReadBufferSize": 30 + }, + "runtime": { + "java": { + "enableMetrics": true + } } }, "template": { @@ -424,6 +434,11 @@ "appPort": 3000, "appProtocol": "http", "httpReadBufferSize": 30 + }, + "runtime": { + "java": { + "enableMetrics": true + } } }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Get.json index 001b6781ff2f..3d897f3187d3 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Get.json @@ -76,6 +76,11 @@ "logLevel": "debug", "enableApiLogging": true }, + "runtime": { + "java": { + "enableMetrics": true + } + }, "maxInactiveRevisions": 10, "service": { "type": "redis" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListByResourceGroup.json index e5512791d8ba..b77a2b5e0a3a 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListByResourceGroup.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListByResourceGroup.json @@ -77,6 +77,11 @@ "logLevel": "debug", "enableApiLogging": true }, + "runtime": { + "java": { + "enableMetrics": true + } + }, "maxInactiveRevisions": 10 }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListBySubscription.json index cec7b429b7a1..5b49885c9ec3 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_ListBySubscription.json @@ -76,6 +76,11 @@ "logLevel": "debug", "enableApiLogging": true }, + "runtime": { + "java": { + "enableMetrics": true + } + }, "maxInactiveRevisions": 10, "service": { "type": "redis" diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Patch.json index 41586eda8134..998bce57f931 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Patch.json @@ -61,6 +61,11 @@ "logLevel": "debug", "enableApiLogging": true }, + "runtime": { + "java": { + "enableMetrics": true + } + }, "maxInactiveRevisions": 10, "service": { "type": "redis" @@ -195,6 +200,11 @@ "logLevel": "debug", "enableApiLogging": true }, + "runtime": { + "java": { + "enableMetrics": true + } + }, "maxInactiveRevisions": 10 }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Start.json index bdadce432bd4..41b1fe87a9f6 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Start.json @@ -73,6 +73,11 @@ "logLevel": "debug", "enableApiLogging": true }, + "runtime": { + "java": { + "enableMetrics": true + } + }, "maxInactiveRevisions": 10 }, "template": { diff --git a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Stop.json index 59b2a1ab4373..aab14e698e46 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2025-01-01/examples/ContainerApps_Stop.json @@ -73,6 +73,11 @@ "logLevel": "debug", "enableApiLogging": true }, + "runtime": { + "java": { + "enableMetrics": true + } + }, "maxInactiveRevisions": 10 }, "template": {