Skip to content

Commit 1737cf1

Browse files
committed
Add AppState and LatestReadyRevisionName (Azure#21034)
* Add new props * add defaults
1 parent b6e8461 commit 1737cf1

File tree

7 files changed

+48
-3
lines changed

7 files changed

+48
-3
lines changed

specification/app/resource-manager/Microsoft.App/stable/2022-10-01/ContainerApps.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@
482482
"Single"
483483
],
484484
"type": "string",
485+
"default": "Single",
485486
"x-ms-enum": {
486487
"name": "ActiveRevisionsMode",
487488
"modelAsString": true
@@ -568,11 +569,28 @@
568569
"$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileType",
569570
"description": "Workload profile type to pin for container app execution."
570571
},
572+
"appState": {
573+
"description": "Current state of the app. Controls if the app is enabled or disabled.",
574+
"enum": [
575+
"Enabled",
576+
"Disabled"
577+
],
578+
"type": "string",
579+
"x-ms-enum": {
580+
"name": "AppState",
581+
"modelAsString": true
582+
}
583+
},
571584
"latestRevisionName": {
572585
"description": "Name of the latest revision of the Container App.",
573586
"type": "string",
574587
"readOnly": true
575588
},
589+
"latestReadyRevisionName": {
590+
"description": "Name of the latest ready revision of the Container App.",
591+
"type": "string",
592+
"readOnly": true
593+
},
576594
"latestRevisionFqdn": {
577595
"description": "Fully Qualified Domain Name of the latest revision of the Container App.",
578596
"type": "string",
@@ -636,7 +654,8 @@
636654
"properties": {
637655
"enabled": {
638656
"description": "Boolean indicating if the Dapr side car is enabled",
639-
"type": "boolean"
657+
"type": "boolean",
658+
"default": false
640659
},
641660
"appId": {
642661
"description": "Dapr application identifier",
@@ -649,6 +668,7 @@
649668
"grpc"
650669
],
651670
"type": "string",
671+
"default": "http",
652672
"x-ms-enum": {
653673
"name": "appProtocol",
654674
"modelAsString": true
@@ -725,7 +745,8 @@
725745
"x-ms-enum": {
726746
"name": "IngressTransportMethod",
727747
"modelAsString": true
728-
}
748+
},
749+
"default": "auto"
729750
},
730751
"traffic": {
731752
"description": "Traffic weights for app's revisions",
@@ -749,7 +770,8 @@
749770
},
750771
"allowInsecure": {
751772
"description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections",
752-
"type": "boolean"
773+
"type": "boolean",
774+
"default": false
753775
},
754776
"ipSecurityRestrictions": {
755777
"description": "Rules to restrict incoming IP address.",

specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_CreateOrUpdate.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"properties": {
1010
"environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
1111
"workloadProfileType": "GeneralPurpose",
12+
"appState": "Enabled",
1213
"configuration": {
1314
"ingress": {
1415
"external": true,
@@ -130,6 +131,9 @@
130131
"provisioningState": "Succeeded",
131132
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
132133
"workloadProfileType": "GeneralPurpose",
134+
"appState": "Enabled",
135+
"latestRevisionName": "testcontainerApp0-pjxhsye",
136+
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
133137
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
134138
"configuration": {
135139
"ingress": {
@@ -256,6 +260,9 @@
256260
"properties": {
257261
"provisioningState": "InProgress",
258262
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
263+
"appState": "Enabled",
264+
"latestRevisionName": "testcontainerApp0-pjxhsye",
265+
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
259266
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
260267
"configuration": {
261268
"ingress": {

specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_Get.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"provisioningState": "Succeeded",
1818
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
1919
"workloadProfileType": "GeneralPurpose",
20+
"appState": "Enabled",
21+
"latestRevisionName": "testcontainerApp0-pjxhsye",
22+
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
2023
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
2124
"configuration": {
2225
"ingress": {

specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_ListByResourceGroup.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"provisioningState": "Succeeded",
1919
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
2020
"workloadProfileType": "GeneralPurpose",
21+
"appState": "Enabled",
22+
"latestRevisionName": "testcontainerApp0-pjxhsye",
23+
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
2124
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
2225
"configuration": {
2326
"ingress": {

specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_ListBySubscription.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"provisioningState": "Succeeded",
1818
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
1919
"workloadProfileType": "GeneralPurpose",
20+
"appState": "Enabled",
21+
"latestRevisionName": "testcontainerApp0-pjxhsye",
22+
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
2023
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
2124
"configuration": {
2225
"ingress": {

specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_Patch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"tag2": "value2"
1212
},
1313
"properties": {
14+
"appState": "Enabled",
1415
"configuration": {
1516
"ingress": {
1617
"external": true,

specification/app/resource-manager/Microsoft.App/stable/2022-10-01/examples/ContainerApps_TcpApp_CreateOrUpdate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
"properties": {
6969
"provisioningState": "Succeeded",
7070
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
71+
"appState": "Enabled",
72+
"latestRevisionName": "testcontainerAppTcp-pjxhsye",
73+
"latestReadyRevisionName": "testcontainerAppTcp-pjxhsye",
7174
"latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
7275
"configuration": {
7376
"ingress": {
@@ -137,6 +140,9 @@
137140
"properties": {
138141
"provisioningState": "InProgress",
139142
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
143+
"appState": "Enabled",
144+
"latestRevisionName": "testcontainerAppTcp-pjxhsye",
145+
"latestReadyRevisionName": "testcontainerAppTcp-pjxhsye",
140146
"latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
141147
"configuration": {
142148
"ingress": {

0 commit comments

Comments
 (0)