From 2c76d4c8c5477d9dcd6688fb8fd09f6520d8a0dd Mon Sep 17 00:00:00 2001 From: Ningting Pan Date: Wed, 6 Dec 2023 09:38:47 +0800 Subject: [PATCH 1/2] Short lived app support --- .../2024-01-01-preview/appplatform.json | 18 ++++++++++++++++++ .../examples/Apps_CreateOrUpdate.json | 4 ++++ .../Apps_CreateOrUpdate_VNetInjection.json | 4 ++++ .../2024-01-01-preview/examples/Apps_Get.json | 1 + .../examples/Apps_Get_VNetInjection.json | 1 + .../2024-01-01-preview/examples/Apps_List.json | 1 + .../examples/Apps_List_VNetInjection.json | 1 + 7 files changed, 30 insertions(+) diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json index 82b07992844f..1719ffbacb56 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json @@ -11239,6 +11239,19 @@ "description": "App resource properties payload", "type": "object", "properties": { + "type": { + "description": "The type of App, whether it's long running app or short lived app", + "enum": [ + "LongRunning", + "ShortLived" + ], + "type": "string", + "default": "LongRunning", + "x-ms-enum": { + "name": "AppResourceType", + "modelAsString": true + } + }, "public": { "description": "Indicates whether the App exposes public endpoint", "type": "boolean" @@ -12780,6 +12793,11 @@ "type": "string", "readOnly": true }, + "endTime": { + "description": "End time of the deployment instance", + "type": "string", + "readOnly": true + }, "zone": { "description": "Availability zone information of the deployment instance", "type": "string", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json index ae0631867b4a..a92f4734b50a 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json @@ -2,6 +2,7 @@ "parameters": { "appResource": { "properties": { + "type": "LongRunning", "public": true, "httpsOnly": false, "enableEndToEndTLS": false, @@ -77,6 +78,7 @@ "200": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Succeeded", @@ -151,6 +153,7 @@ "201": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Creating", @@ -225,6 +228,7 @@ "202": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Updating", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json index 2ed7a9567f82..1c134db5920c 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json @@ -2,6 +2,7 @@ "parameters": { "appResource": { "properties": { + "type": "LongRunning", "public": true, "httpsOnly": false, "enableEndToEndTLS": false, @@ -78,6 +79,7 @@ "200": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Succeeded", @@ -154,6 +156,7 @@ "201": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Creating", @@ -230,6 +233,7 @@ "202": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Updating", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json index 257df6bbbb4e..f7c464726e7e 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json @@ -10,6 +10,7 @@ "200": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Succeeded", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json index 6843a1fca122..8f654aaceb93 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json @@ -10,6 +10,7 @@ "200": { "body": { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Succeeded", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json index 94cd3e510637..ae44390c3a3b 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json @@ -11,6 +11,7 @@ "value": [ { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Succeeded", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json index 9985f4810aca..10dc1ab91c50 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json @@ -11,6 +11,7 @@ "value": [ { "properties": { + "type": "LongRunning", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Succeeded", From 1af8e64ded5b5e31e96a8eab0a7c9fb0a352545b Mon Sep 17 00:00:00 2001 From: Ningting Pan Date: Thu, 14 Dec 2023 17:52:52 +0800 Subject: [PATCH 2/2] Rename type to kind --- .../preview/2024-01-01-preview/appplatform.json | 8 ++++---- .../2024-01-01-preview/examples/Apps_CreateOrUpdate.json | 8 ++++---- .../examples/Apps_CreateOrUpdate_VNetInjection.json | 8 ++++---- .../preview/2024-01-01-preview/examples/Apps_Get.json | 2 +- .../examples/Apps_Get_VNetInjection.json | 2 +- .../preview/2024-01-01-preview/examples/Apps_List.json | 2 +- .../examples/Apps_List_VNetInjection.json | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json index 1719ffbacb56..0ddbafe36676 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/appplatform.json @@ -11239,14 +11239,14 @@ "description": "App resource properties payload", "type": "object", "properties": { - "type": { + "kind": { "description": "The type of App, whether it's long running app or short lived app", "enum": [ - "LongRunning", - "ShortLived" + "Application", + "Task" ], "type": "string", - "default": "LongRunning", + "default": "Application", "x-ms-enum": { "name": "AppResourceType", "modelAsString": true diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json index a92f4734b50a..4d7b7292aff4 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "appResource": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "httpsOnly": false, "enableEndToEndTLS": false, @@ -78,7 +78,7 @@ "200": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Succeeded", @@ -153,7 +153,7 @@ "201": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Creating", @@ -228,7 +228,7 @@ "202": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Updating", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json index 1c134db5920c..82782785d39e 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_CreateOrUpdate_VNetInjection.json @@ -2,7 +2,7 @@ "parameters": { "appResource": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "httpsOnly": false, "enableEndToEndTLS": false, @@ -79,7 +79,7 @@ "200": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Succeeded", @@ -156,7 +156,7 @@ "201": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Creating", @@ -233,7 +233,7 @@ "202": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Updating", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json index f7c464726e7e..7c125bd6ff84 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get.json @@ -10,7 +10,7 @@ "200": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Succeeded", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json index 8f654aaceb93..cfe7ec1756db 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_Get_VNetInjection.json @@ -10,7 +10,7 @@ "200": { "body": { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Succeeded", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json index ae44390c3a3b..e8d6d54475b2 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List.json @@ -11,7 +11,7 @@ "value": [ { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.azuremicroservices.io", "provisioningState": "Succeeded", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json index 10dc1ab91c50..b9e07cb5e3c2 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2024-01-01-preview/examples/Apps_List_VNetInjection.json @@ -11,7 +11,7 @@ "value": [ { "properties": { - "type": "LongRunning", + "kind": "Application", "public": true, "url": "myapp.myservice.private.azuremicroservices.io", "provisioningState": "Succeeded",