diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/CommonDefinitions.json index b91b7d5574c9..f8ecd0ed5a48 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/CommonDefinitions.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/CommonDefinitions.json @@ -616,6 +616,16 @@ "x-ms-identifiers": [ "name" ] + }, + "serviceBinds": { + "description": "List of container app services bound to the app", + "type": "array", + "items": { + "$ref": "#/definitions/ServiceBind" + }, + "x-ms-identifier": [ + "name" + ] } } }, @@ -1149,6 +1159,20 @@ ] } } + }, + "ServiceBind": { + "description": "Configuration to bind a ContainerApp to a dev ContainerApp Service", + "type": "object", + "properties": { + "serviceId": { + "description": "Resource id of the target service", + "type": "string" + }, + "name": { + "description": "Name of the service bind", + "type": "string" + } + } } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index 0d85ef658464..05577d2b1ff2 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -535,6 +535,10 @@ "format": "int32", "description": "Optional. Max inactive revisions a Container App can have.", "type": "integer" + }, + "service": { + "$ref": "#/definitions/Service", + "description": "Container App to be a dev Container App Service" } } }, @@ -1205,6 +1209,19 @@ "x-ms-client-flatten": true } } + }, + "Service": { + "description": "Container App to be a dev service", + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Dev ContainerApp service type", + "type": "string" + } + } } }, "securityDefinitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json index 2376ef5cb56c..47de8a0d5c16 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json @@ -80,7 +80,10 @@ "logLevel": "debug", "enableApiLogging": true }, - "maxInactiveRevisions": 10 + "maxInactiveRevisions": 10, + "service": { + "type": "redis" + } }, "template": { "containers": [ @@ -137,7 +140,13 @@ } } ] - } + }, + "serviceBinds": [ + { + "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService", + "name": "redisService" + } + ] } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json index 70f49201f4aa..f425302af374 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json @@ -75,7 +75,10 @@ "logLevel": "debug", "enableApiLogging": true }, - "maxInactiveRevisions": 10 + "maxInactiveRevisions": 10, + "service": { + "type": "redis" + } }, "template": { "containers": [ @@ -111,7 +114,13 @@ } } ] - } + }, + "serviceBinds": [ + { + "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service", + "name": "service" + } + ] }, "eventStreamEndpoint": "testEndpoint" } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListBySubscription.json index 942bba01c499..bc20efb9741c 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListBySubscription.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListBySubscription.json @@ -75,7 +75,10 @@ "logLevel": "debug", "enableApiLogging": true }, - "maxInactiveRevisions": 10 + "maxInactiveRevisions": 10, + "service": { + "type": "redis" + } }, "template": { "containers": [ @@ -111,7 +114,13 @@ } } ] - } + }, + "serviceBinds": [ + { + "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service", + "name": "service" + } + ] }, "eventStreamEndpoint": "testEndpoint" } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Patch.json index 9e4930bd0848..3f33e6a1b3e7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Patch.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Patch.json @@ -61,7 +61,10 @@ "logLevel": "debug", "enableApiLogging": true }, - "maxInactiveRevisions": 10 + "maxInactiveRevisions": 10, + "service": { + "type": "redis" + } }, "template": { "containers": [ @@ -111,7 +114,13 @@ } } ] - } + }, + "serviceBinds": [ + { + "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service", + "name": "service" + } + ] } } }