From 8126c9d2510d9d57478e075b57f72d34485540d6 Mon Sep 17 00:00:00 2001
From: Paul Dorsch <107068277+pauld-msft@users.noreply.github.com>
Date: Wed, 31 May 2023 10:50:58 -0400
Subject: [PATCH 01/15] Adds base for updating Microsoft.App from version
preview/2023-04-01-preview to version 2023-05-02-preview
---
.../2023-05-02-preview/AuthConfigs.json | 980 +++++++++++
.../AvailableWorkloadProfiles.json | 144 ++
.../2023-05-02-preview/BillingMeters.json | 118 ++
.../2023-05-02-preview/CommonDefinitions.json | 1196 ++++++++++++++
.../ConnectedEnvironments.json | 469 ++++++
.../ConnectedEnvironmentsCertificates.json | 315 ++++
.../ConnectedEnvironmentsDaprComponents.json | 307 ++++
.../ConnectedEnvironmentsStorages.json | 290 ++++
.../2023-05-02-preview/ContainerApps.json | 1363 ++++++++++++++++
.../ContainerAppsRevisions.json | 677 ++++++++
.../2023-05-02-preview/Diagnostics.json | 715 ++++++++
.../preview/2023-05-02-preview/Global.json | 140 ++
.../preview/2023-05-02-preview/Jobs.json | 1193 ++++++++++++++
.../ManagedEnvironments.json | 1438 +++++++++++++++++
.../ManagedEnvironmentsDaprComponents.json | 313 ++++
.../ManagedEnvironmentsStorages.json | 290 ++++
.../2023-05-02-preview/SourceControls.json | 446 +++++
.../examples/AuthConfigs_CreateOrUpdate.json | 53 +
.../examples/AuthConfigs_Delete.json | 13 +
.../examples/AuthConfigs_Get.json | 35 +
.../examples/AuthConfigs_ListByContainer.json | 39 +
.../AvailableWorkloadProfiles_Get.json | 145 ++
.../examples/BillingMeters_Get.json | 81 +
.../examples/Certificate_CreateOrUpdate.json | 38 +
.../examples/Certificate_Delete.json | 13 +
.../examples/Certificate_Get.json | 32 +
.../Certificates_CheckNameAvailability.json | 21 +
...Certificates_ListByManagedEnvironment.json | 53 +
.../examples/Certificates_Patch.json | 41 +
...nvironmentsCertificate_CreateOrUpdate.json | 38 +
...nnectedEnvironmentsCertificate_Delete.json | 13 +
.../ConnectedEnvironmentsCertificate_Get.json | 32 +
...ntsCertificates_CheckNameAvailability.json | 21 +
...rtificates_ListByConnectedEnvironment.json | 53 +
...nnectedEnvironmentsCertificates_Patch.json | 41 +
...ronmentsDaprComponents_CreateOrUpdate.json | 87 +
...ctedEnvironmentsDaprComponents_Delete.json | 13 +
...nnectedEnvironmentsDaprComponents_Get.json | 51 +
...nectedEnvironmentsDaprComponents_List.json | 54 +
...nvironmentsDaprComponents_ListSecrets.json | 26 +
...edEnvironmentsStorages_CreateOrUpdate.json | 35 +
.../ConnectedEnvironmentsStorages_Delete.json | 13 +
.../ConnectedEnvironmentsStorages_Get.json | 25 +
.../ConnectedEnvironmentsStorages_List.json | 28 +
.../ConnectedEnvironments_CreateOrUpdate.json | 73 +
.../ConnectedEnvironments_Delete.json | 23 +
.../examples/ConnectedEnvironments_Get.json | 42 +
...ectedEnvironments_ListByResourceGroup.json | 63 +
...nectedEnvironments_ListBySubscription.json | 54 +
.../examples/ConnectedEnvironments_Patch.json | 42 +
.../ContainerAppsDiagnostics_Get.json | 68 +
.../ContainerAppsDiagnostics_List.json | 38 +
.../ContainerApps_CheckNameAvailability.json | 21 +
.../ContainerApps_CreateOrUpdate.json | 387 +++++
.../examples/ContainerApps_Delete.json | 17 +
.../examples/ContainerApps_Get.json | 131 ++
.../examples/ContainerApps_GetAuthToken.json | 24 +
.../ContainerApps_ListByResourceGroup.json | 125 ++
.../ContainerApps_ListBySubscription.json | 133 ++
...tainerApps_ListCustomHostNameAnalysis.json | 42 +
.../examples/ContainerApps_ListSecrets.json | 23 +
...ontainerApps_ManagedBy_CreateOrUpdate.json | 204 +++
.../examples/ContainerApps_Patch.json | 243 +++
.../examples/ContainerApps_Start.json | 123 ++
.../examples/ContainerApps_Stop.json | 123 ++
.../ContainerApps_TcpApp_CreateOrUpdate.json | 201 +++
...s_CreateOrUpdate_SecretStoreComponent.json | 78 +
...DaprComponents_CreateOrUpdate_Secrets.json | 87 +
.../examples/DaprComponents_Delete.json | 13 +
...prComponents_Get_SecretStoreComponent.json | 47 +
.../examples/DaprComponents_Get_Secrets.json | 51 +
.../examples/DaprComponents_List.json | 122 ++
.../examples/DaprComponents_ListSecrets.json | 24 +
.../examples/Job_CreateorUpdate.json | 207 +++
.../Job_CreateorUpdate_EventTrigger.json | 199 +++
.../examples/Job_Delete.json | 17 +
.../examples/Job_Execution_Get.json | 49 +
.../examples/Job_Executions_Get.json | 53 +
.../2023-05-02-preview/examples/Job_Get.json | 54 +
.../examples/Job_ListSecrets.json | 23 +
.../examples/Job_Patch.json | 114 ++
.../examples/Job_Start.json | 51 +
.../examples/Job_Stop_Execution.json | 17 +
.../examples/Job_Stop_Multiple.json | 54 +
.../examples/Jobs_ListByResourceGroup.json | 100 ++
.../examples/Jobs_ListBySubscription.json | 99 ++
.../ManagedCertificate_CreateOrUpdate.json | 50 +
.../examples/ManagedCertificate_Delete.json | 13 +
.../examples/ManagedCertificate_Get.json | 24 +
...Certificates_ListByManagedEnvironment.json | 47 +
.../examples/ManagedCertificates_Patch.json | 30 +
.../ManagedEnvironmentDiagnostics_Get.json | 68 +
.../ManagedEnvironmentDiagnostics_List.json | 37 +
...edEnvironmentsStorages_CreateOrUpdate.json | 35 +
.../ManagedEnvironmentsStorages_Delete.json | 13 +
.../ManagedEnvironmentsStorages_Get.json | 25 +
.../ManagedEnvironmentsStorages_List.json | 28 +
.../ManagedEnvironments_CreateOrUpdate.json | 182 +++
...tomInfrastructureResourceGroup_Create.json | 168 ++
.../examples/ManagedEnvironments_Delete.json | 18 +
.../examples/ManagedEnvironments_Get.json | 73 +
.../ManagedEnvironments_GetAuthToken.json | 23 +
...nagedEnvironments_ListByResourceGroup.json | 93 ++
...anagedEnvironments_ListBySubscription.json | 92 ++
...nvironments_ListWorkloadProfileStates.json | 36 +
.../examples/ManagedEnvironments_Patch.json | 71 +
.../examples/Operations_List.json | 24 +
.../examples/Replicas_Get.json | 39 +
.../examples/Replicas_List.json | 42 +
.../examples/Revisions_Activate.json | 12 +
.../examples/Revisions_Deactivate.json | 12 +
.../examples/Revisions_Get.json | 54 +
.../examples/Revisions_List.json | 57 +
.../examples/Revisions_Restart.json | 12 +
.../SourceControls_CreateOrUpdate.json | 77 +
.../examples/SourceControls_Delete.json | 18 +
.../examples/SourceControls_Get.json | 31 +
.../SourceControls_ListByContainer.json | 35 +
118 files changed, 16686 insertions(+)
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
new file mode 100644
index 000000000000..9100b4f4598e
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
@@ -0,0 +1,980 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs": {
+ "get": {
+ "tags": [
+ "ContainerAppsAuthConfigs"
+ ],
+ "summary": "Get the Container App AuthConfigs in a given resource group.",
+ "operationId": "ContainerAppsAuthConfigs_ListByContainerApp",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AuthConfigCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Auth Configs by Container Apps": {
+ "$ref": "./examples/AuthConfigs_ListByContainer.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}": {
+ "get": {
+ "tags": [
+ "ContainerAppsAuthConfigs"
+ ],
+ "summary": "Get a AuthConfig of a Container App.",
+ "operationId": "ContainerAppsAuthConfigs_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "authConfigName",
+ "in": "path",
+ "description": "Name of the Container App AuthConfig.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AuthConfig"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App's AuthConfig": {
+ "$ref": "./examples/AuthConfigs_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ContainerAppsAuthConfigs"
+ ],
+ "summary": "Create or update the AuthConfig for a Container App.",
+ "description": "Create or update the AuthConfig for a Container App.",
+ "operationId": "ContainerAppsAuthConfigs_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "authConfigName",
+ "in": "path",
+ "description": "Name of the Container App AuthConfig.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "authConfigEnvelope",
+ "in": "body",
+ "description": "Properties used to create a Container App AuthConfig",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/AuthConfig"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "schema": {
+ "$ref": "#/definitions/AuthConfig"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or Update Container App AuthConfig": {
+ "$ref": "./examples/AuthConfigs_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ContainerAppsAuthConfigs"
+ ],
+ "summary": "Delete a Container App AuthConfig.",
+ "description": "Delete a Container App AuthConfig.",
+ "operationId": "ContainerAppsAuthConfigs_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "authConfigName",
+ "in": "path",
+ "description": "Name of the Container App AuthConfig.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App deleted successfully."
+ },
+ "204": {
+ "description": "Container App AuthConfig does not exist."
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Container App AuthConfig": {
+ "$ref": "./examples/AuthConfigs_Delete.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "AuthConfigCollection": {
+ "description": "AuthConfig collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AuthConfig"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "AuthConfig": {
+ "description": "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "AuthConfig resource specific properties",
+ "type": "object",
+ "properties": {
+ "platform": {
+ "$ref": "#/definitions/AuthPlatform",
+ "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization."
+ },
+ "globalValidation": {
+ "$ref": "#/definitions/GlobalValidation",
+ "description": "The configuration settings that determines the validation flow of users using Service Authentication/Authorization."
+ },
+ "identityProviders": {
+ "$ref": "#/definitions/IdentityProviders",
+ "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization."
+ },
+ "login": {
+ "$ref": "#/definitions/Login",
+ "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization."
+ },
+ "httpSettings": {
+ "$ref": "#/definitions/HttpSettings",
+ "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization."
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "AuthPlatform": {
+ "description": "The configuration settings of the platform of ContainerApp Service Authentication/Authorization.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "true
if the Authentication / Authorization feature is enabled for the current app; otherwise, false
.",
+ "type": "boolean"
+ },
+ "runtimeVersion": {
+ "description": "The RuntimeVersion of the Authentication / Authorization feature in use for the current app.\nThe setting in this value can control the behavior of certain features in the Authentication / Authorization module.",
+ "type": "string"
+ }
+ }
+ },
+ "GlobalValidation": {
+ "description": "The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization.",
+ "type": "object",
+ "properties": {
+ "unauthenticatedClientAction": {
+ "description": "The action to take when an unauthenticated client attempts to access the app.",
+ "enum": [
+ "RedirectToLoginPage",
+ "AllowAnonymous",
+ "Return401",
+ "Return403"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "UnauthenticatedClientActionV2",
+ "modelAsString": false
+ }
+ },
+ "redirectToProvider": {
+ "description": "The default authentication provider to use when multiple providers are configured.\nThis setting is only needed if multiple providers are configured and the unauthenticated client\naction is set to \"RedirectToLoginPage\".",
+ "type": "string"
+ },
+ "excludedPaths": {
+ "description": "The paths for which unauthenticated flow would not be redirected to the login page.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "HttpSettings": {
+ "description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization.",
+ "type": "object",
+ "properties": {
+ "requireHttps": {
+ "description": "false
if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true
.",
+ "type": "boolean"
+ },
+ "routes": {
+ "$ref": "#/definitions/HttpSettingsRoutes",
+ "description": "The configuration settings of the paths HTTP requests."
+ },
+ "forwardProxy": {
+ "$ref": "#/definitions/ForwardProxy",
+ "description": "The configuration settings of a forward proxy used to make the requests."
+ }
+ }
+ },
+ "HttpSettingsRoutes": {
+ "description": "The configuration settings of the paths HTTP requests.",
+ "type": "object",
+ "properties": {
+ "apiPrefix": {
+ "description": "The prefix that should precede all the authentication/authorization paths.",
+ "type": "string"
+ }
+ }
+ },
+ "ForwardProxy": {
+ "description": "The configuration settings of a forward proxy used to make the requests.",
+ "type": "object",
+ "properties": {
+ "convention": {
+ "description": "The convention used to determine the url of the request made.",
+ "enum": [
+ "NoProxy",
+ "Standard",
+ "Custom"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ForwardProxyConvention",
+ "modelAsString": false
+ }
+ },
+ "customHostHeaderName": {
+ "description": "The name of the header containing the host of the request.",
+ "type": "string"
+ },
+ "customProtoHeaderName": {
+ "description": "The name of the header containing the scheme of the request.",
+ "type": "string"
+ }
+ }
+ },
+ "Login": {
+ "description": "The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.",
+ "type": "object",
+ "properties": {
+ "routes": {
+ "$ref": "#/definitions/LoginRoutes",
+ "description": "The routes that specify the endpoints used for login and logout requests."
+ },
+ "preserveUrlFragmentsForLogins": {
+ "description": "true
if the fragments from the request are preserved after the login request is made; otherwise, false
.",
+ "type": "boolean"
+ },
+ "allowedExternalRedirectUrls": {
+ "description": "External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored.\nThis is an advanced setting typically only needed by Windows Store application backends.\nNote that URLs within the current domain are always implicitly allowed.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "cookieExpiration": {
+ "$ref": "#/definitions/CookieExpiration",
+ "description": "The configuration settings of the session cookie's expiration."
+ },
+ "nonce": {
+ "$ref": "#/definitions/Nonce",
+ "description": "The configuration settings of the nonce used in the login flow."
+ }
+ }
+ },
+ "LoginRoutes": {
+ "description": "The routes that specify the endpoints used for login and logout requests.",
+ "type": "object",
+ "properties": {
+ "logoutEndpoint": {
+ "description": "The endpoint at which a logout request should be made.",
+ "type": "string"
+ }
+ }
+ },
+ "CookieExpiration": {
+ "description": "The configuration settings of the session cookie's expiration.",
+ "type": "object",
+ "properties": {
+ "convention": {
+ "description": "The convention used when determining the session cookie's expiration.",
+ "enum": [
+ "FixedTime",
+ "IdentityProviderDerived"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CookieExpirationConvention",
+ "modelAsString": false
+ }
+ },
+ "timeToExpiration": {
+ "description": "The time after the request is made when the session cookie should expire.",
+ "type": "string"
+ }
+ }
+ },
+ "Nonce": {
+ "description": "The configuration settings of the nonce used in the login flow.",
+ "type": "object",
+ "properties": {
+ "validateNonce": {
+ "description": "false
if the nonce should not be validated while completing the login flow; otherwise, true
.",
+ "type": "boolean"
+ },
+ "nonceExpirationInterval": {
+ "description": "The time after the request is made when the nonce should expire.",
+ "type": "string"
+ }
+ }
+ },
+ "IdentityProviders": {
+ "description": "The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.",
+ "type": "object",
+ "properties": {
+ "azureActiveDirectory": {
+ "$ref": "#/definitions/AzureActiveDirectory",
+ "description": "The configuration settings of the Azure Active directory provider."
+ },
+ "facebook": {
+ "$ref": "#/definitions/Facebook",
+ "description": "The configuration settings of the Facebook provider."
+ },
+ "gitHub": {
+ "$ref": "#/definitions/GitHub",
+ "description": "The configuration settings of the GitHub provider."
+ },
+ "google": {
+ "$ref": "#/definitions/Google",
+ "description": "The configuration settings of the Google provider."
+ },
+ "twitter": {
+ "$ref": "#/definitions/Twitter",
+ "description": "The configuration settings of the Twitter provider."
+ },
+ "apple": {
+ "$ref": "#/definitions/Apple",
+ "description": "The configuration settings of the Apple provider."
+ },
+ "azureStaticWebApps": {
+ "$ref": "#/definitions/AzureStaticWebApps",
+ "description": "The configuration settings of the Azure Static Web Apps provider."
+ },
+ "customOpenIdConnectProviders": {
+ "description": "The map of the name of the alias of each custom Open ID Connect provider to the\nconfiguration settings of the custom Open ID Connect provider.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/CustomOpenIdConnectProvider"
+ }
+ }
+ }
+ },
+ "AzureActiveDirectory": {
+ "description": "The configuration settings of the Azure Active directory provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/AzureActiveDirectoryRegistration",
+ "description": "The configuration settings of the Azure Active Directory app registration."
+ },
+ "login": {
+ "$ref": "#/definitions/AzureActiveDirectoryLogin",
+ "description": "The configuration settings of the Azure Active Directory login flow."
+ },
+ "validation": {
+ "$ref": "#/definitions/AzureActiveDirectoryValidation",
+ "description": "The configuration settings of the Azure Active Directory token validation flow."
+ },
+ "isAutoProvisioned": {
+ "description": "Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling.\nThis is an internal flag primarily intended to support the Azure Management Portal. Users should not\nread or write to this property.",
+ "type": "boolean"
+ }
+ }
+ },
+ "AzureActiveDirectoryLogin": {
+ "description": "The configuration settings of the Azure Active Directory login flow.",
+ "type": "object",
+ "properties": {
+ "loginParameters": {
+ "description": "Login parameters to send to the OpenID Connect authorization endpoint when\na user logs in. Each parameter must be in the form \"key=value\".",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "disableWWWAuthenticate": {
+ "description": "true
if the www-authenticate provider should be omitted from the request; otherwise, false
.",
+ "type": "boolean"
+ }
+ }
+ },
+ "AzureActiveDirectoryRegistration": {
+ "description": "The configuration settings of the Azure Active Directory app registration.",
+ "type": "object",
+ "properties": {
+ "openIdIssuer": {
+ "description": "The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application.\nWhen using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/.\nThis URI is a case-sensitive identifier for the token issuer.\nMore information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html",
+ "type": "string"
+ },
+ "clientId": {
+ "description": "The Client ID of this relying party application, known as the client_id.\nThis setting is required for enabling OpenID Connection authentication with Azure Active Directory or \nother 3rd party OpenID Connect providers.\nMore information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html",
+ "type": "string"
+ },
+ "clientSecretSettingName": {
+ "description": "The app setting name that contains the client secret of the relying party application.",
+ "type": "string"
+ },
+ "clientSecretCertificateThumbprint": {
+ "description": "An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret. It is also optional.",
+ "type": "string"
+ },
+ "clientSecretCertificateSubjectAlternativeName": {
+ "description": "An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.",
+ "type": "string"
+ },
+ "clientSecretCertificateIssuer": {
+ "description": "An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as\na replacement for the Client Secret Certificate Thumbprint. It is also optional.",
+ "type": "string"
+ }
+ }
+ },
+ "AzureActiveDirectoryValidation": {
+ "description": "The configuration settings of the Azure Active Directory token validation flow.",
+ "type": "object",
+ "properties": {
+ "jwtClaimChecks": {
+ "$ref": "#/definitions/JwtClaimChecks",
+ "description": "The configuration settings of the checks that should be made while validating the JWT Claims."
+ },
+ "allowedAudiences": {
+ "description": "The list of audiences that can make successful authentication/authorization requests.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "defaultAuthorizationPolicy": {
+ "$ref": "#/definitions/DefaultAuthorizationPolicy",
+ "description": "The configuration settings of the default authorization policy."
+ }
+ }
+ },
+ "JwtClaimChecks": {
+ "description": "The configuration settings of the checks that should be made while validating the JWT Claims.",
+ "type": "object",
+ "properties": {
+ "allowedGroups": {
+ "description": "The list of the allowed groups.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "allowedClientApplications": {
+ "description": "The list of the allowed client applications.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "DefaultAuthorizationPolicy": {
+ "description": "The configuration settings of the Azure Active Directory default authorization policy.",
+ "type": "object",
+ "properties": {
+ "allowedPrincipals": {
+ "$ref": "#/definitions/AllowedPrincipals",
+ "description": "The configuration settings of the Azure Active Directory allowed principals."
+ },
+ "allowedApplications": {
+ "description": "The configuration settings of the Azure Active Directory allowed applications.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "AllowedPrincipals": {
+ "description": "The configuration settings of the Azure Active Directory allowed principals.",
+ "type": "object",
+ "properties": {
+ "groups": {
+ "description": "The list of the allowed groups.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "identities": {
+ "description": "The list of the allowed identities.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "Facebook": {
+ "description": "The configuration settings of the Facebook provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the Facebook provider should not be enabled despite the set registration; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/AppRegistration",
+ "description": "The configuration settings of the app registration for the Facebook provider."
+ },
+ "graphApiVersion": {
+ "description": "The version of the Facebook api to be used while logging in.",
+ "type": "string"
+ },
+ "login": {
+ "$ref": "#/definitions/LoginScopes",
+ "description": "The configuration settings of the login flow."
+ }
+ }
+ },
+ "AppRegistration": {
+ "description": "The configuration settings of the app registration for providers that have app ids and app secrets",
+ "type": "object",
+ "properties": {
+ "appId": {
+ "description": "The App ID of the app used for login.",
+ "type": "string"
+ },
+ "appSecretSettingName": {
+ "description": "The app setting name that contains the app secret.",
+ "type": "string"
+ }
+ }
+ },
+ "LoginScopes": {
+ "description": "The configuration settings of the login flow, including the scopes that should be requested.",
+ "type": "object",
+ "properties": {
+ "scopes": {
+ "description": "A list of the scopes that should be requested while authenticating.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "GitHub": {
+ "description": "The configuration settings of the GitHub provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the GitHub provider should not be enabled despite the set registration; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/ClientRegistration",
+ "description": "The configuration settings of the app registration for the GitHub provider."
+ },
+ "login": {
+ "$ref": "#/definitions/LoginScopes",
+ "description": "The configuration settings of the login flow."
+ }
+ }
+ },
+ "ClientRegistration": {
+ "description": "The configuration settings of the app registration for providers that have client ids and client secrets",
+ "type": "object",
+ "properties": {
+ "clientId": {
+ "description": "The Client ID of the app used for login.",
+ "type": "string"
+ },
+ "clientSecretSettingName": {
+ "description": "The app setting name that contains the client secret.",
+ "type": "string"
+ }
+ }
+ },
+ "Google": {
+ "description": "The configuration settings of the Google provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the Google provider should not be enabled despite the set registration; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/ClientRegistration",
+ "description": "The configuration settings of the app registration for the Google provider."
+ },
+ "login": {
+ "$ref": "#/definitions/LoginScopes",
+ "description": "The configuration settings of the login flow."
+ },
+ "validation": {
+ "$ref": "#/definitions/AllowedAudiencesValidation",
+ "description": "The configuration settings of the Azure Active Directory token validation flow."
+ }
+ }
+ },
+ "AllowedAudiencesValidation": {
+ "description": "The configuration settings of the Allowed Audiences validation flow.",
+ "type": "object",
+ "properties": {
+ "allowedAudiences": {
+ "description": "The configuration settings of the allowed list of audiences from which to validate the JWT token.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "Twitter": {
+ "description": "The configuration settings of the Twitter provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the Twitter provider should not be enabled despite the set registration; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/TwitterRegistration",
+ "description": "The configuration settings of the app registration for the Twitter provider."
+ }
+ }
+ },
+ "TwitterRegistration": {
+ "description": "The configuration settings of the app registration for the Twitter provider.",
+ "type": "object",
+ "properties": {
+ "consumerKey": {
+ "description": "The OAuth 1.0a consumer key of the Twitter application used for sign-in.\nThis setting is required for enabling Twitter Sign-In.\nTwitter Sign-In documentation: https://dev.twitter.com/web/sign-in",
+ "type": "string"
+ },
+ "consumerSecretSettingName": {
+ "description": "The app setting name that contains the OAuth 1.0a consumer secret of the Twitter\napplication used for sign-in.",
+ "type": "string"
+ }
+ }
+ },
+ "Apple": {
+ "description": "The configuration settings of the Apple provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the Apple provider should not be enabled despite the set registration; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/AppleRegistration",
+ "description": "The configuration settings of the Apple registration."
+ },
+ "login": {
+ "$ref": "#/definitions/LoginScopes",
+ "description": "The configuration settings of the login flow."
+ }
+ }
+ },
+ "AppleRegistration": {
+ "description": "The configuration settings of the registration for the Apple provider",
+ "type": "object",
+ "properties": {
+ "clientId": {
+ "description": "The Client ID of the app used for login.",
+ "type": "string"
+ },
+ "clientSecretSettingName": {
+ "description": "The app setting name that contains the client secret.",
+ "type": "string"
+ }
+ }
+ },
+ "AzureStaticWebApps": {
+ "description": "The configuration settings of the Azure Static Web Apps provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/AzureStaticWebAppsRegistration",
+ "description": "The configuration settings of the Azure Static Web Apps registration."
+ }
+ }
+ },
+ "AzureStaticWebAppsRegistration": {
+ "description": "The configuration settings of the registration for the Azure Static Web Apps provider",
+ "type": "object",
+ "properties": {
+ "clientId": {
+ "description": "The Client ID of the app used for login.",
+ "type": "string"
+ }
+ }
+ },
+ "CustomOpenIdConnectProvider": {
+ "description": "The configuration settings of the custom Open ID Connect provider.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "false
if the custom Open ID provider provider should not be enabled; otherwise, true
.",
+ "type": "boolean"
+ },
+ "registration": {
+ "$ref": "#/definitions/OpenIdConnectRegistration",
+ "description": "The configuration settings of the app registration for the custom Open ID Connect provider."
+ },
+ "login": {
+ "$ref": "#/definitions/OpenIdConnectLogin",
+ "description": "The configuration settings of the login flow of the custom Open ID Connect provider."
+ }
+ }
+ },
+ "OpenIdConnectRegistration": {
+ "description": "The configuration settings of the app registration for the custom Open ID Connect provider.",
+ "type": "object",
+ "properties": {
+ "clientId": {
+ "description": "The client id of the custom Open ID Connect provider.",
+ "type": "string"
+ },
+ "clientCredential": {
+ "$ref": "#/definitions/OpenIdConnectClientCredential",
+ "description": "The authentication credentials of the custom Open ID Connect provider."
+ },
+ "openIdConnectConfiguration": {
+ "$ref": "#/definitions/OpenIdConnectConfig",
+ "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider."
+ }
+ }
+ },
+ "OpenIdConnectClientCredential": {
+ "description": "The authentication client credentials of the custom Open ID Connect provider.",
+ "type": "object",
+ "properties": {
+ "method": {
+ "description": "The method that should be used to authenticate the user.",
+ "enum": [
+ "ClientSecretPost"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ClientCredentialMethod",
+ "modelAsString": false
+ }
+ },
+ "clientSecretSettingName": {
+ "description": "The app setting that contains the client secret for the custom Open ID Connect provider.",
+ "type": "string"
+ }
+ }
+ },
+ "OpenIdConnectConfig": {
+ "description": "The configuration settings of the endpoints used for the custom Open ID Connect provider.",
+ "type": "object",
+ "properties": {
+ "authorizationEndpoint": {
+ "description": "The endpoint to be used to make an authorization request.",
+ "type": "string"
+ },
+ "tokenEndpoint": {
+ "description": "The endpoint to be used to request a token.",
+ "type": "string"
+ },
+ "issuer": {
+ "description": "The endpoint that issues the token.",
+ "type": "string"
+ },
+ "certificationUri": {
+ "description": "The endpoint that provides the keys necessary to validate the token.",
+ "type": "string"
+ },
+ "wellKnownOpenIdConfiguration": {
+ "description": "The endpoint that contains all the configuration endpoints for the provider.",
+ "type": "string"
+ }
+ }
+ },
+ "OpenIdConnectLogin": {
+ "description": "The configuration settings of the login flow of the custom Open ID Connect provider.",
+ "type": "object",
+ "properties": {
+ "nameClaimType": {
+ "description": "The name of the claim that contains the users name.",
+ "type": "string"
+ },
+ "scopes": {
+ "description": "A list of the scopes that should be requested while authenticating.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
new file mode 100644
index 000000000000..391cf3904c6e
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
@@ -0,0 +1,144 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes": {
+ "get": {
+ "tags": [
+ "AvailableWorkloadProfiles"
+ ],
+ "summary": "Get available workload profiles by location.",
+ "description": "Get all available workload profiles for a location.",
+ "operationId": "AvailableWorkloadProfiles_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AvailableWorkloadProfilesCollection"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "BillingMeters_Get": {
+ "$ref": "./examples/AvailableWorkloadProfiles_Get.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "AvailableWorkloadProfile": {
+ "description": "A workload profile with specific hardware configure to run container apps.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "Region of the workload profile."
+ },
+ "properties": {
+ "description": "Revision resource specific properties",
+ "type": "object",
+ "properties": {
+ "category": {
+ "description": "Used to categorize workload profiles.",
+ "type": "string"
+ },
+ "applicability": {
+ "type": "string",
+ "description": "indicates whether the profile is default for the location.",
+ "enum": [
+ "LocationDefault",
+ "Custom"
+ ],
+ "x-ms-enum": {
+ "name": "Applicability",
+ "modelAsString": true
+ }
+ },
+ "cores": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Number of cores in CPU."
+ },
+ "memoryGiB": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Memory in GiB."
+ },
+ "displayName": {
+ "type": "string",
+ "description": "The everyday name of the workload profile."
+ }
+ }
+ }
+ }
+ },
+ "AvailableWorkloadProfilesCollection": {
+ "description": "Collection of available workload profiles in the location.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of workload profiles.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AvailableWorkloadProfile"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
new file mode 100644
index 000000000000..89d29c5ce5a1
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
@@ -0,0 +1,118 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters": {
+ "get": {
+ "tags": [
+ "BillingMeters"
+ ],
+ "summary": "Get billing meters by location.",
+ "description": "Get all billingMeters for a location.",
+ "operationId": "BillingMeters_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/BillingMeterCollection"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "BillingMeters_Get": {
+ "$ref": "./examples/BillingMeters_Get.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "BillingMeter": {
+ "description": "Billing meter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "Region for the billing meter."
+ },
+ "properties": {
+ "description": "Revision resource specific properties",
+ "type": "object",
+ "properties": {
+ "category": {
+ "description": "Used to categorize billing meters.",
+ "type": "string"
+ },
+ "meterType": {
+ "type": "string",
+ "description": "Billing meter type."
+ },
+ "displayName": {
+ "type": "string",
+ "description": "The everyday name of the billing meter."
+ }
+ }
+ }
+ }
+ },
+ "BillingMeterCollection": {
+ "description": "Collection of billing meters.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of billing meters.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BillingMeter"
+ }
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
new file mode 100644
index 000000000000..4d38ac3bd869
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
@@ -0,0 +1,1196 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {},
+ "definitions": {
+ "EnvironmentVar": {
+ "description": "Container App container environment variable.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Environment variable name.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Non-secret environment variable value.",
+ "type": "string"
+ },
+ "secretRef": {
+ "description": "Name of the Container App secret from which to pull the environment variable value.",
+ "type": "string"
+ }
+ }
+ },
+ "WorkloadProfileName": {
+ "description": "Workload profile name for container apps to execute on.",
+ "type": "string"
+ },
+ "WorkloadProfileType": {
+ "description": "Workload profile type for container apps to execute on.",
+ "type": "string"
+ },
+ "BaseContainer": {
+ "description": "Container App base container definition.",
+ "type": "object",
+ "properties": {
+ "image": {
+ "description": "Container image tag.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Custom container name.",
+ "type": "string"
+ },
+ "command": {
+ "description": "Container start command.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "args": {
+ "description": "Container start command arguments.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "env": {
+ "description": "Container environment variables.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnvironmentVar"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "resources": {
+ "$ref": "#/definitions/ContainerResources",
+ "description": "Container resource requirements."
+ },
+ "volumeMounts": {
+ "description": "Container volume mounts.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VolumeMount"
+ },
+ "x-ms-identifiers": [
+ "volumeName"
+ ]
+ }
+ }
+ },
+ "InitContainer": {
+ "description": "Container App init container definition",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseContainer"
+ }
+ ]
+ },
+ "Container": {
+ "description": "Container App container definition",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseContainer"
+ }
+ ],
+ "properties": {
+ "probes": {
+ "description": "List of probes for the container.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContainerAppProbe"
+ },
+ "x-ms-identifiers": [
+ "type"
+ ]
+ }
+ }
+ },
+ "ContainerResources": {
+ "description": "Container App container resource requirements.",
+ "type": "object",
+ "properties": {
+ "cpu": {
+ "format": "double",
+ "description": "Required CPU in cores, e.g. 0.5",
+ "type": "number"
+ },
+ "memory": {
+ "description": "Required memory, e.g. \"250Mb\"",
+ "type": "string"
+ },
+ "ephemeralStorage": {
+ "description": "Ephemeral Storage, e.g. \"1Gi\"",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ContainerAppProbe": {
+ "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
+ "type": "object",
+ "properties": {
+ "failureThreshold": {
+ "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "httpGet": {
+ "description": "HTTPGet specifies the http request to perform.",
+ "type": "object",
+ "required": [
+ "port"
+ ],
+ "properties": {
+ "host": {
+ "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.",
+ "type": "string"
+ },
+ "httpHeaders": {
+ "description": "Custom headers to set in the request. HTTP allows repeated headers.",
+ "type": "array",
+ "items": {
+ "description": "HTTPHeader describes a custom header to be used in HTTP probes",
+ "type": "object",
+ "required": [
+ "name",
+ "value"
+ ],
+ "properties": {
+ "name": {
+ "description": "The header field name",
+ "type": "string"
+ },
+ "value": {
+ "description": "The header field value",
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "path": {
+ "description": "Path to access on the HTTP server.",
+ "type": "string"
+ },
+ "port": {
+ "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "scheme": {
+ "description": "Scheme to use for connecting to the host. Defaults to HTTP.",
+ "enum": [
+ "HTTP",
+ "HTTPS"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "Scheme",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "initialDelaySeconds": {
+ "description": "Number of seconds after the container has started before liveness probes are initiated. Minimum value is 1. Maximum value is 60.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "periodSeconds": {
+ "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "successThreshold": {
+ "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "tcpSocket": {
+ "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.",
+ "type": "object",
+ "required": [
+ "port"
+ ],
+ "properties": {
+ "host": {
+ "description": "Optional: Host name to connect to, defaults to the pod IP.",
+ "type": "string"
+ },
+ "port": {
+ "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "terminationGracePeriodSeconds": {
+ "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 hour)",
+ "type": "integer",
+ "format": "int64"
+ },
+ "timeoutSeconds": {
+ "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 240.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "type": {
+ "description": "The type of probe.",
+ "enum": [
+ "Liveness",
+ "Readiness",
+ "Startup"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "Type",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "CustomScaleRule": {
+ "description": "Container App container Custom scaling rule.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "Type of the custom scale rule\neg: azure-servicebus, redis etc.",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Metadata properties to describe custom scale rule.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "auth": {
+ "description": "Authentication secrets for the custom scale rule.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ScaleRuleAuth"
+ },
+ "x-ms-identifiers": [
+ "triggerParameter"
+ ]
+ }
+ }
+ },
+ "CustomDomainConfiguration": {
+ "type": "object",
+ "description": "Configuration properties for apps environment custom domain",
+ "properties": {
+ "customDomainVerificationId": {
+ "description": "Id used to verify domain name ownership",
+ "type": "string",
+ "readOnly": true
+ },
+ "dnsSuffix": {
+ "type": "string",
+ "description": "Dns suffix for the environment domain",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "certificateValue": {
+ "format": "byte",
+ "description": "PFX or PEM blob",
+ "type": "string",
+ "x-ms-secret": true
+ },
+ "certificatePassword": {
+ "description": "Certificate password",
+ "type": "string",
+ "x-ms-secret": true
+ },
+ "expirationDate": {
+ "format": "date-time",
+ "description": "Certificate expiration date.",
+ "type": "string",
+ "readOnly": true
+ },
+ "thumbprint": {
+ "description": "Certificate thumbprint.",
+ "type": "string",
+ "readOnly": true
+ },
+ "subjectName": {
+ "description": "Subject name of the certificate.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "DefaultErrorResponse": {
+ "description": "App Service error response.",
+ "type": "object",
+ "properties": {
+ "error": {
+ "description": "Error model.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Standardized string to programmatically identify the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ },
+ "target": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "type": "array",
+ "description": "Details or the error",
+ "items": {
+ "description": "Detailed errors.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Standardized string to programmatically identify the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ },
+ "target": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "readOnly": true
+ },
+ "x-ms-identifiers": [
+ "code"
+ ]
+ },
+ "innererror": {
+ "description": "More information to debug error.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "HttpScaleRule": {
+ "description": "Container App container Http scaling rule.",
+ "type": "object",
+ "properties": {
+ "metadata": {
+ "description": "Metadata properties to describe http scale rule.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "auth": {
+ "description": "Authentication secrets for the custom scale rule.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ScaleRuleAuth"
+ },
+ "x-ms-identifiers": [
+ "triggerParameter"
+ ]
+ }
+ }
+ },
+ "TcpScaleRule": {
+ "description": "Container App container Tcp scaling rule.",
+ "type": "object",
+ "properties": {
+ "metadata": {
+ "description": "Metadata properties to describe tcp scale rule.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "auth": {
+ "description": "Authentication secrets for the tcp scale rule.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ScaleRuleAuth"
+ },
+ "x-ms-identifiers": [
+ "triggerParameter"
+ ]
+ }
+ }
+ },
+ "QueueScaleRule": {
+ "description": "Container App container Azure Queue based scaling rule.",
+ "type": "object",
+ "properties": {
+ "queueName": {
+ "description": "Queue name.",
+ "type": "string"
+ },
+ "queueLength": {
+ "format": "int32",
+ "description": "Queue length.",
+ "type": "integer"
+ },
+ "auth": {
+ "description": "Authentication secrets for the queue scale rule.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ScaleRuleAuth"
+ },
+ "x-ms-identifiers": [
+ "triggerParameter"
+ ]
+ }
+ }
+ },
+ "Scale": {
+ "description": "Container App scaling configurations.",
+ "type": "object",
+ "properties": {
+ "minReplicas": {
+ "format": "int32",
+ "description": "Optional. Minimum number of container replicas.",
+ "type": "integer"
+ },
+ "maxReplicas": {
+ "format": "int32",
+ "description": "Optional. Maximum number of container replicas. Defaults to 10 if not set.",
+ "type": "integer",
+ "default": 10
+ },
+ "rules": {
+ "description": "Scaling rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ScaleRule"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ },
+ "ScaleRule": {
+ "description": "Container App container scaling rule.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Scale Rule Name",
+ "type": "string"
+ },
+ "azureQueue": {
+ "$ref": "#/definitions/QueueScaleRule",
+ "description": "Azure Queue based scaling."
+ },
+ "custom": {
+ "$ref": "#/definitions/CustomScaleRule",
+ "description": "Custom scale rule."
+ },
+ "http": {
+ "$ref": "#/definitions/HttpScaleRule",
+ "description": "HTTP requests based scaling."
+ },
+ "tcp": {
+ "$ref": "#/definitions/TcpScaleRule",
+ "description": "Tcp requests based scaling."
+ }
+ }
+ },
+ "ScaleRuleAuth": {
+ "description": "Auth Secrets for Scale Rule",
+ "type": "object",
+ "properties": {
+ "secretRef": {
+ "description": "Name of the secret from which to pull the auth params.",
+ "type": "string"
+ },
+ "triggerParameter": {
+ "description": "Trigger Parameter that uses the secret",
+ "type": "string"
+ }
+ }
+ },
+ "Secret": {
+ "description": "Secret definition.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Secret Name.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Secret Value.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ],
+ "x-ms-secret": true
+ },
+ "identity": {
+ "description": "Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.",
+ "type": "string"
+ },
+ "keyVaultUrl": {
+ "description": "Azure Key Vault URL pointing to the secret referenced by the container app.",
+ "type": "string"
+ }
+ }
+ },
+ "Template": {
+ "description": "Container App versioned application definition.\nDefines the desired state of an immutable revision.\nAny changes to this section Will result in a new revision being created",
+ "type": "object",
+ "properties": {
+ "revisionSuffix": {
+ "description": "User friendly suffix that is appended to the revision name",
+ "type": "string"
+ },
+ "terminationGracePeriodSeconds": {
+ "description": "Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
+ "format": "int64",
+ "type": "integer"
+ },
+ "initContainers": {
+ "description": "List of specialized containers that run before app containers.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InitContainer"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "containers": {
+ "description": "List of container definitions for the Container App.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Container"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "scale": {
+ "$ref": "#/definitions/Scale",
+ "description": "Scaling properties for the Container App."
+ },
+ "volumes": {
+ "description": "List of volume definitions for the Container App.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Volume"
+ },
+ "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"
+ ]
+ }
+ }
+ },
+ "Volume": {
+ "description": "Volume definitions for the Container App.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Volume name.",
+ "type": "string"
+ },
+ "storageType": {
+ "description": "Storage type for the volume. If not provided, use EmptyDir.",
+ "enum": [
+ "AzureFile",
+ "EmptyDir",
+ "Secret"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "StorageType",
+ "modelAsString": true
+ }
+ },
+ "storageName": {
+ "description": "Name of storage resource. No need to provide for EmptyDir and Secret.",
+ "type": "string"
+ },
+ "secrets": {
+ "description": "List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SecretVolumeItem"
+ },
+ "x-ms-identifiers": [
+ "secretRef"
+ ]
+ },
+ "mountOptions": {
+ "description": "Mount options used while mounting the AzureFile. Must be a comma-separated string.",
+ "type": "string"
+ }
+ }
+ },
+ "SecretVolumeItem": {
+ "description": "Secret to be added to volume.",
+ "type": "object",
+ "properties": {
+ "secretRef": {
+ "description": "Name of the Container App secret from which to pull the secret value.",
+ "type": "string"
+ },
+ "path": {
+ "description": "Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.",
+ "type": "string"
+ }
+ }
+ },
+ "VolumeMount": {
+ "description": "Volume mount for the Container App.",
+ "type": "object",
+ "properties": {
+ "volumeName": {
+ "description": "This must match the Name of a Volume.",
+ "type": "string"
+ },
+ "mountPath": {
+ "description": "Path within the container at which the volume should be mounted.Must not contain ':'.",
+ "type": "string"
+ },
+ "subPath": {
+ "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
+ "type": "string"
+ }
+ }
+ },
+ "DaprComponentsCollection": {
+ "description": "Dapr Components ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DaprComponent"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "DaprComponent": {
+ "description": "Dapr Component.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Dapr Component resource specific properties",
+ "type": "object",
+ "properties": {
+ "componentType": {
+ "description": "Component type",
+ "type": "string"
+ },
+ "version": {
+ "description": "Component version",
+ "type": "string"
+ },
+ "ignoreErrors": {
+ "description": "Boolean describing if the component errors are ignores",
+ "type": "boolean",
+ "default": false
+ },
+ "initTimeout": {
+ "description": "Initialization timeout",
+ "type": "string"
+ },
+ "secrets": {
+ "description": "Collection of secrets used by a Dapr component",
+ "type": "array",
+ "items": {
+ "$ref": "./CommonDefinitions.json#/definitions/Secret"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "secretStoreComponent": {
+ "description": "Name of a Dapr component to retrieve component secrets from",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Component metadata",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DaprMetadata"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "scopes": {
+ "description": "Names of container apps that can use this Dapr component",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "DaprMetadata": {
+ "description": "Dapr component metadata.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Metadata property name.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Metadata property value.",
+ "type": "string"
+ },
+ "secretRef": {
+ "description": "Name of the Dapr Component secret from which to pull the metadata property value.",
+ "type": "string"
+ }
+ }
+ },
+ "DaprSecretsCollection": {
+ "description": "Dapr component Secrets Collection for ListSecrets Action.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of secrets used by a Dapr component",
+ "type": "array",
+ "items": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprSecret"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ },
+ "DaprSecret": {
+ "description": "Dapr component Secret for ListSecrets Action",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Secret Name.",
+ "type": "string",
+ "readOnly": true
+ },
+ "value": {
+ "description": "Secret Value.",
+ "type": "string",
+ "x-ms-secret": true,
+ "readOnly": true
+ }
+ }
+ },
+ "ExtendedLocation": {
+ "type": "object",
+ "description": "The complex type of the extended location.",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the extended location."
+ },
+ "type": {
+ "$ref": "#/definitions/ExtendedLocationType",
+ "description": "The type of the extended location."
+ }
+ }
+ },
+ "ExtendedLocationType": {
+ "type": "string",
+ "description": "The type of extendedLocation.",
+ "enum": [
+ "CustomLocation"
+ ],
+ "x-ms-enum": {
+ "name": "ExtendedLocationTypes",
+ "modelAsString": true
+ }
+ },
+ "AzureFileProperties": {
+ "description": "Azure File Properties.",
+ "type": "object",
+ "properties": {
+ "accountName": {
+ "description": "Storage account name for azure file.",
+ "type": "string"
+ },
+ "accountKey": {
+ "description": "Storage account key for azure file.",
+ "type": "string",
+ "x-ms-secret": true
+ },
+ "accessMode": {
+ "description": "Access mode for storage",
+ "enum": [
+ "ReadOnly",
+ "ReadWrite"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "AccessMode",
+ "modelAsString": true
+ }
+ },
+ "shareName": {
+ "description": "Azure file share name.",
+ "type": "string"
+ }
+ }
+ },
+ "Certificate": {
+ "description": "Certificate used for Custom Domain bindings of Container Apps in a Managed Environment",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Certificate resource specific properties",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "description": "Provisioning state of the certificate.",
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "DeleteFailed",
+ "Pending"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "CertificateProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "password": {
+ "description": "Certificate password.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create"
+ ],
+ "x-ms-secret": true
+ },
+ "subjectName": {
+ "description": "Subject name of the certificate.",
+ "type": "string",
+ "readOnly": true
+ },
+ "subjectAlternativeNames": {
+ "description": "Subject alternative names the certificate applies to.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ },
+ "value": {
+ "format": "byte",
+ "description": "PFX or PEM blob",
+ "type": "string",
+ "x-ms-mutability": [
+ "create"
+ ],
+ "x-ms-secret": true
+ },
+ "issuer": {
+ "description": "Certificate issuer.",
+ "type": "string",
+ "readOnly": true
+ },
+ "issueDate": {
+ "format": "date-time",
+ "description": "Certificate issue Date.",
+ "type": "string",
+ "readOnly": true
+ },
+ "expirationDate": {
+ "format": "date-time",
+ "description": "Certificate expiration date.",
+ "type": "string",
+ "readOnly": true
+ },
+ "thumbprint": {
+ "description": "Certificate thumbprint.",
+ "type": "string",
+ "readOnly": true
+ },
+ "valid": {
+ "description": "Is the certificate valid?.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "publicKeyHash": {
+ "description": "Public key hash.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "x-ms-client-flatten": true
+ },
+ "CertificateCollection": {
+ "description": "Collection of Certificates.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Certificate"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "CertificatePatch": {
+ "description": "A certificate to update",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Application-specific metadata in the form of key-value pairs."
+ }
+ }
+ },
+ "ManagedCertificate": {
+ "description": "Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Certificate resource specific properties",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "description": "Provisioning state of the certificate.",
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "DeleteFailed",
+ "Pending"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "CertificateProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "subjectName": {
+ "description": "Subject name of the certificate.",
+ "type": "string"
+ },
+ "error": {
+ "description": "Any error occurred during the certificate provision.",
+ "type": "string",
+ "readOnly": true
+ },
+ "domainControlValidation": {
+ "description": "Selected type of domain control validation for managed certificates.",
+ "enum": [
+ "CNAME",
+ "HTTP",
+ "TXT"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ManagedCertificateDomainControlValidation",
+ "modelAsString": true
+ }
+ },
+ "validationToken": {
+ "description": "A TXT token used for DNS TXT domain control validation when issuing this type of managed certificates.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "x-ms-client-flatten": true
+ },
+ "ManagedCertificatePatch": {
+ "description": "A managed certificate to update",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Application-specific metadata in the form of key-value pairs."
+ }
+ }
+ },
+ "ManagedCertificateCollection": {
+ "description": "Collection of Managed Certificates.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedCertificate"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "JobTemplate": {
+ "description": "Container Apps Job versioned application definition. Defines the desired state of an immutable revision. Any changes to this section Will result in a new revision being created",
+ "type": "object",
+ "properties": {
+ "initContainers": {
+ "description": "List of specialized containers that run before app containers.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InitContainer"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "containers": {
+ "description": "List of container definitions for the Container App.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Container"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "volumes": {
+ "description": "List of volume definitions for the Container App.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Volume"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ },
+ "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": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
new file mode 100644
index 000000000000..17769c489333
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
@@ -0,0 +1,469 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments": {
+ "get": {
+ "tags": [
+ "ConnectedEnvironments"
+ ],
+ "summary": "Get all connectedEnvironments for a subscription.",
+ "description": "Get all connectedEnvironments for a subscription.",
+ "operationId": "ConnectedEnvironments_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironmentCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List connected environments by subscription": {
+ "$ref": "./examples/ConnectedEnvironments_ListBySubscription.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments": {
+ "get": {
+ "tags": [
+ "ConnectedEnvironments"
+ ],
+ "operationId": "ConnectedEnvironments_ListByResourceGroup",
+ "description": "Get all connectedEnvironments in a resource group.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironmentCollection"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List environments by resource group": {
+ "$ref": "./examples/ConnectedEnvironments_ListByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}": {
+ "get": {
+ "tags": [
+ "ConnectedEnvironments"
+ ],
+ "operationId": "ConnectedEnvironments_Get",
+ "description": "Get the properties of an connectedEnvironment.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connectedEnvironment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get connected environment by connectedEnvironmentName": {
+ "$ref": "./examples/ConnectedEnvironments_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ConnectedEnvironments"
+ ],
+ "description": "Creates or updates an connectedEnvironment.",
+ "operationId": "ConnectedEnvironments_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connectedEnvironment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "environmentEnvelope",
+ "in": "body",
+ "description": "Configuration details of the connectedEnvironment.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironment"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironment"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironment"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create kube environments": {
+ "$ref": "./examples/ConnectedEnvironments_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ConnectedEnvironments"
+ ],
+ "summary": "Delete an connectedEnvironment.",
+ "description": "Delete an connectedEnvironment.",
+ "operationId": "ConnectedEnvironments_Delete",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connectedEnvironment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete operation completed"
+ },
+ "202": {
+ "description": "Delete operation is accepted",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "ConnectedEnvironment does not exist"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete connected environment by connectedEnvironmentName": {
+ "$ref": "./examples/ConnectedEnvironments_Delete.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ConnectedEnvironments"
+ ],
+ "summary": "Update connected Environment's properties.",
+ "description": "Patches a Managed Environment. Only patching of tags is supported currently",
+ "operationId": "ConnectedEnvironments_Update",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connectedEnvironment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironment"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Patch Managed Environment": {
+ "$ref": "./examples/ConnectedEnvironments_Patch.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/checkNameAvailability": {
+ "post": {
+ "tags": [
+ "ConnectedEnvironments"
+ ],
+ "summary": "Checks the resource connectedEnvironmentName availability.",
+ "description": "Checks if resource connectedEnvironmentName is available.",
+ "operationId": "ConnectedEnvironments_CheckNameAvailability",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "checkNameAvailabilityRequest",
+ "in": "body",
+ "description": "The check connectedEnvironmentName availability request.",
+ "required": true,
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Certificates_CheckNameAvailability": {
+ "$ref": "./examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ConnectedEnvironment": {
+ "description": "An environment for Kubernetes cluster specialized for web workloads by Azure App Service",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "extendedLocation": {
+ "$ref": "./CommonDefinitions.json#/definitions/ExtendedLocation"
+ },
+ "properties": {
+ "description": "ConnectedEnvironment resource specific properties",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "description": "Provisioning state of the Kubernetes Environment.",
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "Waiting",
+ "InitializationInProgress",
+ "InfrastructureSetupInProgress",
+ "InfrastructureSetupComplete",
+ "ScheduledForDelete"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "ConnectedEnvironmentProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "deploymentErrors": {
+ "description": "Any errors that occurred during deployment or deployment validation",
+ "type": "string",
+ "readOnly": true
+ },
+ "defaultDomain": {
+ "description": "Default Domain Name for the cluster",
+ "type": "string",
+ "readOnly": true
+ },
+ "staticIp": {
+ "description": "Static IP of the connectedEnvironment",
+ "type": "string"
+ },
+ "daprAIConnectionString": {
+ "type": "string",
+ "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry",
+ "x-ms-secret": true
+ },
+ "customDomainConfiguration": {
+ "$ref": "./CommonDefinitions.json#/definitions/CustomDomainConfiguration",
+ "description": "Custom domain configuration for the environment"
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "ConnectedEnvironmentCollection": {
+ "description": "Collection of connectedEnvironments",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectedEnvironment"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
new file mode 100644
index 000000000000..00eaeeff6901
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
@@ -0,0 +1,315 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates": {
+ "get": {
+ "tags": [
+ "ConnectedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Get the Certificates in a given connected environment.",
+ "operationId": "ConnectedEnvironmentsCertificates_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Connected Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/CertificateCollection"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Certificates by Connected Environment": {
+ "$ref": "./examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}": {
+ "get": {
+ "tags": [
+ "ConnectedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Get the specified Certificate.",
+ "operationId": "ConnectedEnvironmentsCertificates_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Connected Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Certificate": {
+ "$ref": "./examples/ConnectedEnvironmentsCertificate_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ConnectedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Create or Update a Certificate.",
+ "operationId": "ConnectedEnvironmentsCertificates_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Connected Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateEnvelope",
+ "in": "body",
+ "description": "Certificate to be created or updated",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or Update Certificate": {
+ "$ref": "./examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ConnectedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Deletes the specified Certificate.",
+ "operationId": "ConnectedEnvironmentsCertificates_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Connected Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete operation completed"
+ },
+ "204": {
+ "description": "Certificate does not exist"
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Certificate": {
+ "$ref": "./examples/ConnectedEnvironmentsCertificate_Delete.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ConnectedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Update properties of a certificate",
+ "description": "Patches a certificate. Currently only patching of tags is supported",
+ "operationId": "ConnectedEnvironmentsCertificates_Update",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Connected Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "Properties of a certificate that need to be updated",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/CertificatePatch"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Certificate updated successfully.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Patch Certificate": {
+ "$ref": "./examples/ConnectedEnvironmentsCertificates_Patch.json"
+ }
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json
new file mode 100644
index 000000000000..250021c0d6e7
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json
@@ -0,0 +1,307 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents": {
+ "get": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Get the Dapr Components for a connected environment.",
+ "operationId": "ConnectedEnvironmentsDaprComponents_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connected environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponentsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Dapr Components": {
+ "$ref": "./examples/ConnectedEnvironmentsDaprComponents_List.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}": {
+ "get": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Get a dapr component.",
+ "operationId": "ConnectedEnvironmentsDaprComponents_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connected environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponent"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Dapr Component": {
+ "$ref": "./examples/ConnectedEnvironmentsDaprComponents_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Creates or updates a Dapr Component.",
+ "description": "Creates or updates a Dapr Component in a connected environment.",
+ "operationId": "ConnectedEnvironmentsDaprComponents_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connected environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "daprComponentEnvelope",
+ "in": "body",
+ "description": "Configuration details of the Dapr Component.",
+ "required": true,
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponent"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponent"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": false,
+ "x-ms-examples": {
+ "Create or update dapr component": {
+ "$ref": "./examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Delete a Dapr Component.",
+ "description": "Delete a Dapr Component from a connected environment.",
+ "operationId": "ConnectedEnvironmentsDaprComponents_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connected environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete operation completed"
+ },
+ "204": {
+ "description": "Environment does not exist"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete dapr component": {
+ "$ref": "./examples/ConnectedEnvironmentsDaprComponents_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}/listSecrets": {
+ "post": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "List secrets for a dapr component",
+ "operationId": "ConnectedEnvironmentsDaprComponents_ListSecrets",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the connected environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprSecretsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps Secrets": {
+ "$ref": "./examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json"
+ }
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json
new file mode 100644
index 000000000000..dbdc6b302ead
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json
@@ -0,0 +1,290 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages": {
+ "get": {
+ "tags": [
+ "ConnectedEnvironmentsStorages"
+ ],
+ "summary": "Get all storages for a connectedEnvironment.",
+ "description": "Get all storages for a connectedEnvironment.",
+ "operationId": "ConnectedEnvironmentsStorages_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironmentStoragesCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List environments storages by subscription": {
+ "$ref": "./examples/ConnectedEnvironmentsStorages_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}": {
+ "get": {
+ "tags": [
+ "ConnectedEnvironmentsStorages"
+ ],
+ "summary": "Get storage for a connectedEnvironment.",
+ "description": "Get storage for a connectedEnvironment.",
+ "operationId": "ConnectedEnvironmentsStorages_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageName",
+ "in": "path",
+ "description": "Name of the storage.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironmentStorage"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "get a environments storage properties by subscription": {
+ "$ref": "./examples/ConnectedEnvironmentsStorages_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ConnectedEnvironmentsStorages"
+ ],
+ "summary": "Create or update storage for a connectedEnvironment.",
+ "description": "Create or update storage for a connectedEnvironment.",
+ "operationId": "ConnectedEnvironmentsStorages_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageName",
+ "in": "path",
+ "description": "Name of the storage.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageEnvelope",
+ "in": "body",
+ "description": "Configuration details of storage.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironmentStorage"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ConnectedEnvironmentStorage"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or update environments storage": {
+ "$ref": "./examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ConnectedEnvironmentsStorages"
+ ],
+ "summary": "Delete storage for a connectedEnvironment.",
+ "description": "Delete storage for a connectedEnvironment.",
+ "operationId": "ConnectedEnvironmentsStorages_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "connectedEnvironmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageName",
+ "in": "path",
+ "description": "Name of the storage.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "Storage does not exist"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List environments storages by subscription": {
+ "$ref": "./examples/ConnectedEnvironmentsStorages_Delete.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ConnectedEnvironmentStoragesCollection": {
+ "description": "Collection of Storage for Environments",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of storage resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectedEnvironmentStorage"
+ }
+ }
+ }
+ },
+ "ConnectedEnvironmentStorage": {
+ "description": "Storage resource for connectedEnvironment.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Storage properties",
+ "type": "object",
+ "properties": {
+ "azureFile": {
+ "$ref": "./CommonDefinitions.json#/definitions/AzureFileProperties",
+ "description": "Azure file properties"
+ }
+ }
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
new file mode 100644
index 000000000000..35c9116c92a8
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
@@ -0,0 +1,1363 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps": {
+ "get": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Get the Container Apps in a given subscription.",
+ "operationId": "ContainerApps_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ContainerAppCollection"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps by subscription": {
+ "$ref": "./examples/ContainerApps_ListBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps": {
+ "get": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Get the Container Apps in a given resource group.",
+ "operationId": "ContainerApps_ListByResourceGroup",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ContainerAppCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps by resource group": {
+ "$ref": "./examples/ContainerApps_ListByResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}": {
+ "get": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Get the properties of a Container App.",
+ "operationId": "ContainerApps_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK.",
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ "404": {
+ "description": "Not found.",
+ "x-ms-error-response": true
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App": {
+ "$ref": "./examples/ContainerApps_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Create or update a Container App.",
+ "description": "Create or update a Container App.",
+ "operationId": "ContainerApps_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "containerAppEnvelope",
+ "in": "body",
+ "description": "Properties used to create a container app",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "No change performed on the Container App.",
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ "201": {
+ "description": "Container App create or update has been started.",
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or Update Container App": {
+ "$ref": "./examples/ContainerApps_CreateOrUpdate.json"
+ },
+ "Create or Update Tcp App": {
+ "$ref": "./examples/ContainerApps_TcpApp_CreateOrUpdate.json"
+ },
+ "Create or Update ManagedBy App": {
+ "$ref": "./examples/ContainerApps_ManagedBy_CreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ },
+ "delete": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Delete a Container App.",
+ "description": "Delete a Container App.",
+ "operationId": "ContainerApps_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App deleted successfully."
+ },
+ "202": {
+ "description": "Delete operation is in progress.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Container App does not exist."
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Container App": {
+ "$ref": "./examples/ContainerApps_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ },
+ "patch": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Update properties of a Container App",
+ "description": "Patches a Container App using JSON Merge Patch",
+ "operationId": "ContainerApps_Update",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "containerAppEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "Properties of a Container App that need to be updated",
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ "202": {
+ "description": "Patch operation is in progress.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Patch Container App": {
+ "$ref": "./examples/ContainerApps_Patch.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis": {
+ "post": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Analyzes a custom hostname for a Container App",
+ "operationId": "ContainerApps_ListCustomHostNameAnalysis",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "customHostname",
+ "in": "query",
+ "description": "Custom hostname.",
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CustomHostnameAnalysisResult"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Analyze Custom Hostname": {
+ "$ref": "./examples/ContainerApps_ListCustomHostNameAnalysis.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets": {
+ "post": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "List secrets for a container app",
+ "operationId": "ContainerApps_ListSecrets",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SecretsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps Secrets": {
+ "$ref": "./examples/ContainerApps_ListSecrets.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/getAuthtoken": {
+ "post": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Get auth token for a container app",
+ "operationId": "ContainerApps_GetAuthToken",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ContainerAppAuthToken"
+ }
+ },
+ "404": {
+ "description": "Not found.",
+ "x-ms-error-response": true
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App Auth Token": {
+ "$ref": "./examples/ContainerApps_GetAuthToken.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start": {
+ "post": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Start a container app",
+ "operationId": "ContainerApps_Start",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App started successfully.",
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ "202": {
+ "description": "Start operation is in progress.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Start Container App": {
+ "$ref": "./examples/ContainerApps_Start.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop": {
+ "post": {
+ "tags": [
+ "ContainerApps"
+ ],
+ "summary": "Stop a container app",
+ "operationId": "ContainerApps_Stop",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App stopped successfully.",
+ "schema": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ "202": {
+ "description": "Stop operation is in progress.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Stop Container App": {
+ "$ref": "./examples/ContainerApps_Stop.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "Configuration": {
+ "description": "Non versioned Container App configuration properties that define the mutable settings of a Container app",
+ "type": "object",
+ "properties": {
+ "secrets": {
+ "description": "Collection of secrets used by a Container app",
+ "type": "array",
+ "items": {
+ "$ref": "./CommonDefinitions.json#/definitions/Secret"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "activeRevisionsMode": {
+ "description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\n- Multiple: multiple revisions can be active.
- Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.
",
+ "enum": [
+ "Multiple",
+ "Single"
+ ],
+ "type": "string",
+ "default": "Single",
+ "x-ms-enum": {
+ "name": "ActiveRevisionsMode",
+ "modelAsString": true
+ }
+ },
+ "ingress": {
+ "$ref": "#/definitions/Ingress",
+ "description": "Ingress configurations."
+ },
+ "registries": {
+ "description": "Collection of private container registry credentials for containers used by the Container app",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RegistryCredentials"
+ },
+ "x-ms-identifiers": [
+ "server"
+ ]
+ },
+ "dapr": {
+ "$ref": "#/definitions/Dapr",
+ "description": "Dapr configuration for the Container App."
+ },
+ "maxInactiveRevisions": {
+ "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"
+ }
+ }
+ },
+ "ContainerApp": {
+ "description": "Container App.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "extendedLocation": {
+ "$ref": "./CommonDefinitions.json#/definitions/ExtendedLocation"
+ },
+ "identity": {
+ "description": "managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.",
+ "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity"
+ },
+ "managedBy": {
+ "type": "string",
+ "x-ms-mutability": [
+ "read",
+ "create",
+ "update"
+ ],
+ "description": "The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource."
+ },
+ "properties": {
+ "description": "ContainerApp resource specific properties",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "description": "Provisioning state of the Container App.",
+ "enum": [
+ "InProgress",
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "Deleting"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "ContainerAppProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "managedEnvironmentId": {
+ "description": "Deprecated. Resource ID of the Container App's environment.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "environmentId": {
+ "description": "Resource ID of environment.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "workloadProfileName": {
+ "$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileName",
+ "description": "Workload profile name to pin for container app execution."
+ },
+ "latestRevisionName": {
+ "description": "Name of the latest revision of the Container App.",
+ "type": "string",
+ "readOnly": true
+ },
+ "latestReadyRevisionName": {
+ "description": "Name of the latest ready revision of the Container App.",
+ "type": "string",
+ "readOnly": true
+ },
+ "latestRevisionFqdn": {
+ "description": "Fully Qualified Domain Name of the latest revision of the Container App.",
+ "type": "string",
+ "readOnly": true
+ },
+ "customDomainVerificationId": {
+ "description": "Id used to verify domain name ownership",
+ "type": "string",
+ "readOnly": true
+ },
+ "configuration": {
+ "$ref": "#/definitions/Configuration",
+ "description": "Non versioned Container App configuration properties."
+ },
+ "template": {
+ "$ref": "./CommonDefinitions.json#/definitions/Template",
+ "description": "Container App versioned application definition."
+ },
+ "outboundIpAddresses": {
+ "description": "Outbound IP Addresses for container app.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ },
+ "eventStreamEndpoint": {
+ "description": "The endpoint of the eventstream of the container app.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "ContainerAppCollection": {
+ "description": "Container App collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContainerApp"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Dapr": {
+ "description": "Container App Dapr configuration.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "Boolean indicating if the Dapr side car is enabled",
+ "type": "boolean",
+ "default": false
+ },
+ "appId": {
+ "description": "Dapr application identifier",
+ "type": "string"
+ },
+ "appProtocol": {
+ "description": "Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http",
+ "enum": [
+ "http",
+ "grpc"
+ ],
+ "type": "string",
+ "default": "http",
+ "x-ms-enum": {
+ "name": "appProtocol",
+ "modelAsString": true
+ }
+ },
+ "appPort": {
+ "format": "int32",
+ "description": "Tells Dapr which port your application is listening on",
+ "type": "integer"
+ },
+ "httpReadBufferSize": {
+ "type": "integer",
+ "description": "Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.",
+ "format": "int32"
+ },
+ "httpMaxRequestSize": {
+ "type": "integer",
+ "description": "Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.",
+ "format": "int32"
+ },
+ "logLevel": {
+ "description": "Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.",
+ "enum": [
+ "info",
+ "debug",
+ "warn",
+ "error"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "logLevel",
+ "modelAsString": true
+ }
+ },
+ "enableApiLogging": {
+ "description": "Enables API logging for the Dapr sidecar",
+ "type": "boolean"
+ }
+ }
+ },
+ "Ingress": {
+ "description": "Container App Ingress configuration.",
+ "type": "object",
+ "properties": {
+ "fqdn": {
+ "description": "Hostname.",
+ "type": "string",
+ "readOnly": true
+ },
+ "external": {
+ "description": "Bool indicating if app exposes an external http endpoint",
+ "default": false,
+ "type": "boolean"
+ },
+ "targetPort": {
+ "format": "int32",
+ "description": "Target Port in containers for traffic from ingress",
+ "type": "integer"
+ },
+ "exposedPort": {
+ "format": "int32",
+ "description": "Exposed Port in containers for TCP traffic from ingress",
+ "type": "integer"
+ },
+ "transport": {
+ "description": "Ingress transport protocol",
+ "enum": [
+ "auto",
+ "http",
+ "http2",
+ "tcp"
+ ],
+ "type": "string",
+ "default": "auto",
+ "x-ms-enum": {
+ "name": "IngressTransportMethod",
+ "modelAsString": true
+ }
+ },
+ "traffic": {
+ "description": "Traffic weights for app's revisions",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TrafficWeight"
+ },
+ "x-ms-identifiers": [
+ "revisionName"
+ ]
+ },
+ "customDomains": {
+ "description": "custom domain bindings for Container Apps' hostnames.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CustomDomain"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "allowInsecure": {
+ "description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections",
+ "type": "boolean",
+ "default": false
+ },
+ "ipSecurityRestrictions": {
+ "description": "Rules to restrict incoming IP address.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IpSecurityRestrictionRule"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "stickySessions": {
+ "description": "Sticky Sessions for Single Revision Mode",
+ "type": "object",
+ "properties": {
+ "affinity": {
+ "description": "Sticky Session Affinity",
+ "enum": [
+ "sticky",
+ "none"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "affinity",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "clientCertificateMode": {
+ "description": "Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require a client certificate. Require indicates server requires a client certificate.",
+ "enum": [
+ "ignore",
+ "accept",
+ "require"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "IngressClientCertificateMode",
+ "modelAsString": true
+ }
+ },
+ "corsPolicy": {
+ "description": "CORS policy for container app",
+ "$ref": "#/definitions/CorsPolicy"
+ }
+ }
+ },
+ "RegistryCredentials": {
+ "description": "Container App Private Registry",
+ "type": "object",
+ "properties": {
+ "server": {
+ "description": "Container Registry Server",
+ "type": "string"
+ },
+ "username": {
+ "description": "Container Registry Username",
+ "type": "string"
+ },
+ "passwordSecretRef": {
+ "description": "The name of the Secret that contains the registry login password",
+ "type": "string"
+ },
+ "identity": {
+ "description": "A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'",
+ "type": "string"
+ }
+ }
+ },
+ "SecretsCollection": {
+ "description": "Container App Secrets Collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContainerAppSecret"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ },
+ "ContainerAppSecret": {
+ "description": "Container App Secret.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Secret Name.",
+ "type": "string",
+ "readOnly": true
+ },
+ "value": {
+ "description": "Secret Value.",
+ "type": "string",
+ "x-ms-secret": true,
+ "readOnly": true
+ },
+ "identity": {
+ "description": "Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.",
+ "type": "string",
+ "readOnly": true
+ },
+ "keyVaultUrl": {
+ "description": "Azure Key Vault URL pointing to the secret referenced by the container app.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "TrafficWeight": {
+ "description": "Traffic weight assigned to a revision",
+ "type": "object",
+ "properties": {
+ "revisionName": {
+ "description": "Name of a revision",
+ "type": "string"
+ },
+ "weight": {
+ "format": "int32",
+ "description": "Traffic weight assigned to a revision",
+ "type": "integer"
+ },
+ "latestRevision": {
+ "description": "Indicates that the traffic weight belongs to a latest stable revision",
+ "default": false,
+ "type": "boolean"
+ },
+ "label": {
+ "description": "Associates a traffic label with a revision",
+ "type": "string"
+ }
+ }
+ },
+ "CustomDomain": {
+ "description": "Custom Domain of a Container App",
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "description": "Hostname.",
+ "type": "string"
+ },
+ "bindingType": {
+ "description": "Custom Domain binding type.",
+ "enum": [
+ "Disabled",
+ "SniEnabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "bindingType",
+ "modelAsString": true
+ }
+ },
+ "certificateId": {
+ "description": "Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment.",
+ "type": "string"
+ }
+ }
+ },
+ "IpSecurityRestrictionRule": {
+ "description": "Rule to restrict incoming IP address.",
+ "type": "object",
+ "required": [
+ "name",
+ "ipAddressRange",
+ "action"
+ ],
+ "properties": {
+ "name": {
+ "description": "Name for the IP restriction rule.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Describe the IP restriction rule that is being sent to the container-app. This is an optional field.",
+ "type": "string"
+ },
+ "ipAddressRange": {
+ "description": "CIDR notation to match incoming IP address",
+ "type": "string"
+ },
+ "action": {
+ "description": "Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny",
+ "enum": [
+ "Allow",
+ "Deny"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "action",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "CorsPolicy": {
+ "description": "Cross-Origin-Resource-Sharing policy",
+ "type": "object",
+ "required": [
+ "allowedOrigins"
+ ],
+ "properties": {
+ "allowedOrigins": {
+ "description": "Specifies the content for the access-control-allow-origins header",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "allowedMethods": {
+ "description": "Specifies the content for the access-control-allow-methods header",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "allowedHeaders": {
+ "description": "Specifies the content for the access-control-allow-headers header",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exposeHeaders": {
+ "description": "Specifies the content for the access-control-expose-headers header ",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "maxAge": {
+ "format": "int32",
+ "description": "Specifies the content for the access-control-max-age header",
+ "type": "integer"
+ },
+ "allowCredentials": {
+ "description": "Specifies whether the resource allows credentials",
+ "type": "boolean"
+ }
+ }
+ },
+ "CustomHostnameAnalysisResult": {
+ "description": "Custom domain analysis.",
+ "type": "object",
+ "properties": {
+ "hostName": {
+ "description": "Host name that was analyzed",
+ "type": "string",
+ "readOnly": true
+ },
+ "isHostnameAlreadyVerified": {
+ "description": "true
if hostname is already verified; otherwise, false
.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "customDomainVerificationTest": {
+ "description": "DNS verification test result.",
+ "enum": [
+ "Passed",
+ "Failed",
+ "Skipped"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "DnsVerificationTestResult",
+ "modelAsString": false
+ }
+ },
+ "customDomainVerificationFailureInfo": {
+ "description": "Raw failure information if DNS verification fails.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Standardized string to programmatically identify the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ },
+ "target": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "type": "array",
+ "description": "Details or the error",
+ "items": {
+ "description": "Detailed errors.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Standardized string to programmatically identify the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ },
+ "target": {
+ "description": "Detailed error description and debugging information.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "readOnly": true
+ },
+ "x-ms-identifiers": [
+ "code"
+ ]
+ }
+ },
+ "readOnly": true
+ },
+ "hasConflictOnManagedEnvironment": {
+ "description": "true
if there is a conflict on the Container App's managed environment; otherwise, false
.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "conflictWithEnvironmentCustomDomain": {
+ "description": "true
if there is a conflict on the Container App's managed environment level custom domain; otherwise, false
.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "conflictingContainerAppResourceId": {
+ "description": "Name of the conflicting Container App on the Managed Environment if it's within the same subscription.",
+ "type": "string",
+ "readOnly": true
+ },
+ "cNameRecords": {
+ "description": "CName records visible for this hostname.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "txtRecords": {
+ "description": "TXT records visible for this hostname.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "aRecords": {
+ "description": "A records visible for this hostname.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "alternateCNameRecords": {
+ "description": "Alternate CName records visible for this hostname.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "alternateTxtRecords": {
+ "description": "Alternate TXT records visible for this hostname.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-client-flatten": true
+ },
+ "ContainerAppAuthToken": {
+ "description": "Container App Auth Token.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Container App auth token resource specific properties",
+ "type": "object",
+ "properties": {
+ "token": {
+ "description": "Auth token value.",
+ "type": "string",
+ "x-ms-secret": true,
+ "readOnly": true
+ },
+ "expires": {
+ "format": "date-time",
+ "description": "Token expiration date.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "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": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json
new file mode 100644
index 000000000000..08cdb87451f6
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json
@@ -0,0 +1,677 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions": {
+ "get": {
+ "tags": [
+ "ContainerAppsRevisions"
+ ],
+ "summary": "Get the Revisions for a given Container App.",
+ "operationId": "ContainerAppsRevisions_ListRevisions",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App for which Revisions are needed.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "description": "The filter to apply on the operation.",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RevisionCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container App's revisions": {
+ "$ref": "./examples/Revisions_List.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/Revision"
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}": {
+ "get": {
+ "tags": [
+ "ContainerAppsRevisions"
+ ],
+ "summary": "Get a revision of a Container App.",
+ "operationId": "ContainerAppsRevisions_GetRevision",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "revisionName",
+ "in": "path",
+ "description": "Name of the Container App Revision.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Revision"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App's revision": {
+ "$ref": "./examples/Revisions_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate": {
+ "post": {
+ "tags": [
+ "ContainerAppsRevisions"
+ ],
+ "summary": "Activates a revision for a Container App",
+ "operationId": "ContainerAppsRevisions_ActivateRevision",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "revisionName",
+ "in": "path",
+ "description": "Name of the Container App Revision.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App revision was activated"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Activate Container App's revision": {
+ "$ref": "./examples/Revisions_Activate.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate": {
+ "post": {
+ "tags": [
+ "ContainerAppsRevisions"
+ ],
+ "summary": "Deactivates a revision for a Container App",
+ "operationId": "ContainerAppsRevisions_DeactivateRevision",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "revisionName",
+ "in": "path",
+ "description": "Name of the Container App Revision.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App revision was deactivated"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Deactivate Container App's revision": {
+ "$ref": "./examples/Revisions_Deactivate.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}": {
+ "get": {
+ "tags": [
+ "ContainerAppsRevisionReplicas"
+ ],
+ "summary": "Get a replica for a Container App Revision.",
+ "operationId": "ContainerAppsRevisionReplicas_GetReplica",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "revisionName",
+ "in": "path",
+ "description": "Name of the Container App Revision.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "replicaName",
+ "in": "path",
+ "description": "Name of the Container App Revision Replica.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Replica"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App's revision replica": {
+ "$ref": "./examples/Replicas_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas": {
+ "get": {
+ "tags": [
+ "ContainerAppsRevisionReplicas"
+ ],
+ "summary": "List replicas for a Container App Revision.",
+ "operationId": "ContainerAppsRevisionReplicas_ListReplicas",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "revisionName",
+ "in": "path",
+ "description": "Name of the Container App Revision.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ReplicaCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container App's replicas": {
+ "$ref": "./examples/Replicas_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart": {
+ "post": {
+ "tags": [
+ "ContainerAppsRevisions"
+ ],
+ "summary": "Restarts a revision for a Container App",
+ "operationId": "ContainerAppsRevisions_RestartRevision",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "revisionName",
+ "in": "path",
+ "description": "Name of the Container App Revision.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App revision was restarted"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Restart Container App's revision": {
+ "$ref": "./examples/Revisions_Restart.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "Revision": {
+ "description": "Container App Revision.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Revision resource specific properties",
+ "type": "object",
+ "properties": {
+ "createdTime": {
+ "format": "date-time",
+ "description": "Timestamp describing when the revision was created\nby controller",
+ "type": "string",
+ "readOnly": true
+ },
+ "lastActiveTime": {
+ "format": "date-time",
+ "description": "Timestamp describing when the revision was last active. Only meaningful when revision is inactive",
+ "type": "string",
+ "readOnly": true
+ },
+ "fqdn": {
+ "description": "Fully qualified domain name of the revision",
+ "type": "string",
+ "readOnly": true
+ },
+ "template": {
+ "$ref": "./CommonDefinitions.json#/definitions/Template",
+ "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time",
+ "readOnly": true
+ },
+ "active": {
+ "description": "Boolean describing if the Revision is Active",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "replicas": {
+ "format": "int32",
+ "description": "Number of pods currently running for this revision",
+ "type": "integer",
+ "readOnly": true
+ },
+ "trafficWeight": {
+ "format": "int32",
+ "description": "Traffic weight assigned to this revision",
+ "type": "integer",
+ "readOnly": true
+ },
+ "provisioningError": {
+ "description": "Optional Field - Platform Error Message",
+ "type": "string",
+ "readOnly": true
+ },
+ "healthState": {
+ "description": "Current health State of the revision",
+ "enum": [
+ "Healthy",
+ "Unhealthy",
+ "None"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "RevisionHealthState",
+ "modelAsString": true
+ }
+ },
+ "provisioningState": {
+ "description": "Current provisioning State of the revision",
+ "enum": [
+ "Provisioning",
+ "Provisioned",
+ "Failed",
+ "Deprovisioning",
+ "Deprovisioned"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "RevisionProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "runningState": {
+ "description": "Current running state of the revision",
+ "enum": [
+ "Running",
+ "Processing",
+ "Stopped",
+ "Degraded",
+ "Failed",
+ "Unknown"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "RevisionRunningState",
+ "modelAsString": true
+ }
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "RevisionCollection": {
+ "description": "Container App Revisions collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Revision"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Replica": {
+ "description": "Container App Revision Replica.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Replica resource specific properties",
+ "type": "object",
+ "properties": {
+ "createdTime": {
+ "type": "string",
+ "description": "Timestamp describing when the pod was created by controller",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "runningState": {
+ "description": "Current running state of the replica",
+ "enum": [
+ "Running",
+ "NotRunning",
+ "Unknown"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "ContainerAppReplicaRunningState",
+ "modelAsString": true
+ }
+ },
+ "runningStateDetails": {
+ "description": "The details of replica current running state",
+ "type": "string",
+ "readOnly": true
+ },
+ "containers": {
+ "description": "The containers collection under a replica.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReplicaContainer"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "initContainers": {
+ "description": "The init containers collection under a replica.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReplicaContainer"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "ReplicaCollection": {
+ "description": "Container App Revision Replicas collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Replica"
+ }
+ }
+ }
+ },
+ "ReplicaContainer": {
+ "description": "Container object under Container App Revision Replica.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The Name of the Container",
+ "type": "string"
+ },
+ "containerId": {
+ "description": "The Id of the Container",
+ "type": "string"
+ },
+ "ready": {
+ "description": "The container ready status",
+ "type": "boolean"
+ },
+ "started": {
+ "description": "The container start status",
+ "type": "boolean"
+ },
+ "restartCount": {
+ "format": "int32",
+ "description": "The container restart count",
+ "type": "integer"
+ },
+ "runningState": {
+ "description": "Current running state of the container",
+ "enum": [
+ "Running",
+ "Terminated",
+ "Waiting"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "ContainerAppContainerRunningState",
+ "modelAsString": true
+ }
+ },
+ "runningStateDetails": {
+ "description": "The details of container current running state",
+ "type": "string",
+ "readOnly": true
+ },
+ "logStreamEndpoint": {
+ "description": "Log Stream endpoint",
+ "type": "string",
+ "readOnly": true
+ },
+ "execEndpoint": {
+ "description": "Container exec endpoint",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json
new file mode 100644
index 000000000000..87429565f2e6
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json
@@ -0,0 +1,715 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors": {
+ "get": {
+ "tags": [
+ "ContainerApps",
+ "Diagnostics"
+ ],
+ "summary": "Get the list of diagnostics for a given Container App.",
+ "operationId": "ContainerAppsDiagnostics_ListDetectors",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App for which detector info is needed.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiagnosticsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get the list of available diagnostics for a given Container App": {
+ "$ref": "./examples/ContainerAppsDiagnostics_List.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{detectorName}": {
+ "get": {
+ "tags": [
+ "ContainerApps",
+ "Diagnostics"
+ ],
+ "summary": "Get a diagnostics result of a Container App.",
+ "operationId": "ContainerAppsDiagnostics_GetDetector",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "detectorName",
+ "in": "path",
+ "description": "Name of the Container App Detector.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Diagnostics"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App's diagnostics info": {
+ "$ref": "./examples/ContainerAppsDiagnostics_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/": {
+ "get": {
+ "tags": [
+ "ContainerApps",
+ "Diagnostics"
+ ],
+ "summary": "Get the Revisions for a given Container App.",
+ "operationId": "ContainerAppsDiagnostics_ListRevisions",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App for which Revisions are needed.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "description": "The filter to apply on the operation.",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./ContainerAppsRevisions.json#/definitions/RevisionCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container App's revisions": {
+ "$ref": "./examples/Revisions_List.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/Revision"
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/{revisionName}": {
+ "get": {
+ "tags": [
+ "ContainerApps",
+ "Diagnostics"
+ ],
+ "summary": "Get a revision of a Container App.",
+ "operationId": "ContainerAppsDiagnostics_GetRevision",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "revisionName",
+ "in": "path",
+ "description": "Name of the Container App Revision.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./ContainerAppsRevisions.json#/definitions/Revision"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App's revision": {
+ "$ref": "./examples/Revisions_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/rootApi/": {
+ "get": {
+ "tags": [
+ "ContainerApps",
+ "Diagnostics"
+ ],
+ "summary": "Get the properties of a Container App.",
+ "operationId": "ContainerAppsDiagnostics_GetRoot",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK.",
+ "schema": {
+ "$ref": "./ContainerApps.json#/definitions/ContainerApp"
+ }
+ },
+ "404": {
+ "description": "Not found.",
+ "x-ms-error-response": true
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App": {
+ "$ref": "./examples/ContainerApps_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments",
+ "Diagnostics"
+ ],
+ "summary": "Get the list of diagnostics for a given Managed Environment.",
+ "description": "Get the list of diagnostics for a Managed Environment used to host container apps.",
+ "operationId": "ManagedEnvironmentDiagnostics_ListDetectors",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiagnosticsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get the list of available diagnostic data for a managed environments": {
+ "$ref": "./examples/ManagedEnvironmentDiagnostics_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments",
+ "Diagnostics"
+ ],
+ "summary": "Get the diagnostics data for a given Managed Environment.",
+ "description": "Get the diagnostics data for a Managed Environment used to host container apps.",
+ "operationId": "ManagedEnvironmentDiagnostics_GetDetector",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "detectorName",
+ "in": "path",
+ "description": "Name of the Managed Environment detector.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Diagnostics"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get diagnostic data for a managed environments": {
+ "$ref": "./examples/ManagedEnvironmentDiagnostics_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorProperties/rootApi/": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments",
+ "Diagnostics"
+ ],
+ "summary": "Get the properties of a Managed Environment.",
+ "description": "Get the properties of a Managed Environment used to host container apps.",
+ "operationId": "ManagedEnvironmentsDiagnostics_GetRoot",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./ManagedEnvironments.json#/definitions/ManagedEnvironment"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get environments by name": {
+ "$ref": "./examples/ManagedEnvironments_Get.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "DiagnosticsCollection": {
+ "description": "Diagnostics data collection for a resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of diagnostic data.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Diagnostics"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Diagnostics": {
+ "description": "Diagnostics data for a resource.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Diagnostics resource specific properties",
+ "type": "object",
+ "properties": {
+ "metadata": {
+ "$ref": "#/definitions/DiagnosticsDefinition",
+ "description": "Metadata of the diagnostics response."
+ },
+ "dataset": {
+ "description": "Set of data collections associated with the response.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DiagnosticsDataApiResponse"
+ },
+ "x-ms-identifiers": []
+ },
+ "status": {
+ "$ref": "#/definitions/DiagnosticsStatus",
+ "description": "Status of the diagnostics response."
+ },
+ "dataProviderMetadata": {
+ "$ref": "#/definitions/DiagnosticDataProviderMetadata",
+ "description": "List of data providers' metadata."
+ }
+ }
+ }
+ }
+ },
+ "DiagnosticsDefinition": {
+ "description": "Metadata of the diagnostics response",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique detector name",
+ "type": "string",
+ "readOnly": true
+ },
+ "name": {
+ "description": "Display Name of the detector",
+ "type": "string",
+ "readOnly": true
+ },
+ "description": {
+ "description": "Details of the diagnostics info",
+ "type": "string",
+ "readOnly": true
+ },
+ "author": {
+ "description": "Authors' names of the detector",
+ "type": "string",
+ "readOnly": true
+ },
+ "category": {
+ "description": "Category of the detector",
+ "type": "string",
+ "readOnly": true
+ },
+ "supportTopicList": {
+ "description": "List of support topics",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DiagnosticSupportTopic"
+ }
+ },
+ "analysisTypes": {
+ "description": "List of analysis types",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "type": {
+ "description": "Authors' names of the detector",
+ "type": "string",
+ "readOnly": true
+ },
+ "score": {
+ "description": "Authors' names of the detector",
+ "type": "number",
+ "readOnly": true
+ }
+ }
+ },
+ "DiagnosticSupportTopic": {
+ "description": "Support topic information",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Unique topic identifier",
+ "type": "string",
+ "readOnly": true
+ },
+ "pesId": {
+ "description": "PES identifier",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "DiagnosticsDataApiResponse": {
+ "description": "Diagnostics data returned from a detector",
+ "type": "object",
+ "properties": {
+ "table": {
+ "description": "Table response",
+ "$ref": "#/definitions/DiagnosticDataTableResponseObject"
+ },
+ "renderingProperties": {
+ "description": "Details of the table response",
+ "$ref": "#/definitions/DiagnosticRendering"
+ }
+ }
+ },
+ "DiagnosticDataTableResponseObject": {
+ "description": "Diagnostics data table",
+ "type": "object",
+ "properties": {
+ "tableName": {
+ "description": "Table name",
+ "type": "string"
+ },
+ "columns": {
+ "description": "Columns in the table",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DiagnosticDataTableResponseColumn"
+ },
+ "x-ms-identifiers": [
+ "columnName"
+ ]
+ },
+ "rows": {
+ "description": "Rows in the table",
+ "type": "array",
+ "items": {
+ "type": "object"
+ },
+ "x-ms-identifiers": []
+ }
+ }
+ },
+ "DiagnosticDataTableResponseColumn": {
+ "description": "Diagnostics data column",
+ "type": "object",
+ "properties": {
+ "columnName": {
+ "description": "Column name",
+ "type": "string"
+ },
+ "dataType": {
+ "description": "Data type of the column",
+ "type": "string"
+ },
+ "columnType": {
+ "description": "Column type",
+ "type": "string"
+ }
+ }
+ },
+ "DiagnosticRendering": {
+ "description": "Rendering details of a diagnostics table",
+ "type": "object",
+ "properties": {
+ "type": {
+ "format": "int32",
+ "description": "Rendering type",
+ "type": "integer"
+ },
+ "title": {
+ "description": "Title of the table",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of the table",
+ "type": "string"
+ },
+ "isVisible": {
+ "description": "Flag if the table should be rendered",
+ "type": "boolean"
+ }
+ }
+ },
+ "DiagnosticsStatus": {
+ "description": "Rendering details of a diagnostics table",
+ "type": "object",
+ "properties": {
+ "message": {
+ "description": "Diagnostic message",
+ "type": "string"
+ },
+ "statusId": {
+ "format": "int32",
+ "description": "Status",
+ "type": "integer"
+ }
+ }
+ },
+ "DiagnosticDataProviderMetadata": {
+ "description": "Details of a diagnostics data provider",
+ "type": "object",
+ "properties": {
+ "providerName": {
+ "description": "Name of data provider",
+ "type": "string"
+ },
+ "propertyBag": {
+ "description": "Collection of properties",
+ "type": "array",
+ "items": {
+ "description": "Property details",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Property name",
+ "type": "string"
+ },
+ "value": {
+ "description": "Property value",
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json
new file mode 100644
index 000000000000..6db6eaacd5bf
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json
@@ -0,0 +1,140 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/providers/Microsoft.App/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "description": "Lists all of the available RP operations.",
+ "operationId": "Operations_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/AvailableOperations"
+ }
+ },
+ "default": {
+ "description": "Resource Provider error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List all operations": {
+ "$ref": "./examples/Operations_List.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "AvailableOperations": {
+ "description": "Available operations of the service",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of available operation details",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OperationDetail"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "nextLink": {
+ "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.",
+ "type": "string"
+ }
+ }
+ },
+ "OperationDetail": {
+ "description": "Operation detail payload",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the operation",
+ "type": "string"
+ },
+ "isDataAction": {
+ "description": "Indicates whether the operation is a data action",
+ "type": "boolean"
+ },
+ "display": {
+ "$ref": "#/definitions/OperationDisplay",
+ "description": "Display of the operation"
+ },
+ "origin": {
+ "description": "Origin of the operation",
+ "type": "string"
+ }
+ }
+ },
+ "OperationDisplay": {
+ "description": "Operation display payload",
+ "type": "object",
+ "properties": {
+ "provider": {
+ "description": "Resource provider of the operation",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource of the operation",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Localized friendly name for the operation",
+ "type": "string"
+ },
+ "description": {
+ "description": "Localized friendly description for the operation",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
new file mode 100644
index 000000000000..585c2dae46c3
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
@@ -0,0 +1,1193 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/jobs": {
+ "get": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Get the Container Apps Jobs in a given subscription.",
+ "operationId": "Jobs_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/JobsCollection"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps Jobs by subscription": {
+ "$ref": "./examples/Jobs_ListBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs": {
+ "get": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Get the Container Apps Jobs in a given resource group.",
+ "operationId": "Jobs_ListByResourceGroup",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/JobsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps Jobs by resource group": {
+ "$ref": "./examples/Jobs_ListByResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}": {
+ "get": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Get the properties of a Container Apps Job.",
+ "operationId": "Jobs_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK.",
+ "schema": {
+ "$ref": "#/definitions/Job"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container Apps Job": {
+ "$ref": "./examples/Job_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Create or Update a Container Apps Job.",
+ "description": "Create or Update a Container Apps Job.",
+ "operationId": "Jobs_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "name": "JobEnvelope",
+ "in": "body",
+ "description": "Properties used to create a container apps job",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Job"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Container Apps Job create has been started.",
+ "schema": {
+ "$ref": "#/definitions/Job"
+ }
+ },
+ "200": {
+ "description": "No change performed on the Container Apps Job.",
+ "schema": {
+ "$ref": "#/definitions/Job"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or Update Container Apps Job": {
+ "$ref": "./examples/Job_CreateorUpdate.json"
+ },
+ "Create or Update Container Apps Job With Event Driven Trigger": {
+ "$ref": "./examples/Job_CreateorUpdate_EventTrigger.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ },
+ "delete": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Delete a Container Apps Job.",
+ "description": "Delete a Container Apps Job.",
+ "operationId": "Jobs_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container Apps Job deleted successfully."
+ },
+ "202": {
+ "description": "Delete operation is in progress.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Container Apps Job does not exist."
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Container Apps Job": {
+ "$ref": "./examples/Job_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ },
+ "patch": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Update properties of a Container Apps Job",
+ "description": "Patches a Container Apps Job using JSON Merge Patch",
+ "operationId": "Jobs_Update",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "name": "JobEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "Properties used to create a container apps job",
+ "schema": {
+ "$ref": "#/definitions/JobPatchProperties"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "schema": {
+ "$ref": "#/definitions/Job"
+ }
+ },
+ "202": {
+ "description": "Patch operation is in progress.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Patch Container Apps Job": {
+ "$ref": "./examples/Job_Patch.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/start": {
+ "post": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Start a Container Apps Job",
+ "operationId": "Jobs_Start",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "name": "template",
+ "in": "body",
+ "description": "Properties used to start a job instance.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/JobExecutionTemplate"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/JobExecutionBase"
+ }
+ },
+ "202": {
+ "description": "OK",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Run a Container Apps Job": {
+ "$ref": "./examples/Job_Start.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop": {
+ "post": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Terminates execution of a running container apps job",
+ "operationId": "Jobs_StopExecution",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobExecutionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container Apps Jobs terminated successfully."
+ },
+ "202": {
+ "description": "OK",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Terminate a Container Apps Job": {
+ "$ref": "./examples/Job_Stop_Execution.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/stop": {
+ "post": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Terminates execution of a running container apps job",
+ "operationId": "Jobs_StopMultipleExecutions",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "List of all the job executions that were requested to be stopped",
+ "schema": {
+ "$ref": "#/definitions/ContainerAppJobExecutions"
+ }
+ },
+ "202": {
+ "description": "OK",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Terminate Multiple Container Apps Job": {
+ "$ref": "./examples/Job_Stop_Multiple.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions": {
+ "get": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Get a Container Apps Job's executions",
+ "operationId": "JobsExecutions_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "description": "The filter to apply on the operation.",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ContainerAppJobExecutions"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a Container Apps Job Executions": {
+ "$ref": "./examples/Job_Executions_Get.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}": {
+ "get": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "Get details of a single job execution",
+ "operationId": "JobExecution",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ },
+ {
+ "$ref": "#/parameters/JobExecutionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/JobExecution"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a single Job Execution": {
+ "$ref": "./examples/Job_Execution_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/listSecrets": {
+ "post": {
+ "tags": [
+ "Jobs"
+ ],
+ "summary": "List secrets for a container apps job",
+ "operationId": "Jobs_ListSecrets",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/JobNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/JobSecretsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps Job Secrets": {
+ "$ref": "./examples/Job_ListSecrets.json"
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "JobNameParameter": {
+ "name": "jobName",
+ "in": "path",
+ "description": "Job Name",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "x-ms-parameter-location": "method"
+ },
+ "JobExecutionNameParameter": {
+ "name": "jobExecutionName",
+ "in": "path",
+ "description": "Job execution name.",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "definitions": {
+ "JobConfiguration": {
+ "description": "Non versioned Container Apps Job configuration properties",
+ "type": "object",
+ "required": [
+ "replicaTimeout",
+ "triggerType"
+ ],
+ "properties": {
+ "secrets": {
+ "description": "Collection of secrets used by a Container Apps Job",
+ "type": "array",
+ "items": {
+ "$ref": "./CommonDefinitions.json#/definitions/Secret"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "triggerType": {
+ "description": "Trigger type of the job",
+ "enum": [
+ "Scheduled",
+ "Event",
+ "Manual"
+ ],
+ "type": "string",
+ "default": "Manual",
+ "x-ms-enum": {
+ "name": "TriggerType",
+ "modelAsString": true
+ }
+ },
+ "replicaTimeout": {
+ "description": "Maximum number of seconds a replica is allowed to run.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "replicaRetryLimit": {
+ "format": "int32",
+ "description": "Maximum number of retries before failing the job.",
+ "type": "integer"
+ },
+ "manualTriggerConfig": {
+ "type": "object",
+ "description": "Manual trigger configuration for a single execution job. Properties replicaCompletionCount and parallelism would be set to 1 by default",
+ "properties": {
+ "replicaCompletionCount": {
+ "$ref": "#/definitions/ReplicaCompletionCount"
+ },
+ "parallelism": {
+ "$ref": "#/definitions/Parallelism"
+ }
+ }
+ },
+ "scheduleTriggerConfig": {
+ "description": "Cron formatted repeating trigger schedule (\"* * * * *\") for cronjobs. Properties completions and parallelism would be set to 1 by default",
+ "required": [
+ "cronExpression"
+ ],
+ "type": "object",
+ "properties": {
+ "replicaCompletionCount": {
+ "$ref": "#/definitions/ReplicaCompletionCount"
+ },
+ "cronExpression": {
+ "description": "Cron formatted repeating schedule (\"* * * * *\") of a Cron Job.",
+ "type": "string"
+ },
+ "parallelism": {
+ "$ref": "#/definitions/Parallelism"
+ }
+ }
+ },
+ "eventTriggerConfig": {
+ "type": "object",
+ "description": "Trigger configuration of an event driven job.",
+ "properties": {
+ "replicaCompletionCount": {
+ "$ref": "#/definitions/ReplicaCompletionCount"
+ },
+ "parallelism": {
+ "$ref": "#/definitions/Parallelism"
+ },
+ "scale": {
+ "$ref": "#/definitions/JobScale"
+ }
+ }
+ },
+ "registries": {
+ "description": "Collection of private container registry credentials used by a Container apps job",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RegistryCredentials"
+ },
+ "x-ms-identifiers": [
+ "server"
+ ]
+ }
+ }
+ },
+ "Job": {
+ "type": "object",
+ "description": "Container App Job",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "identity": {
+ "description": "Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.",
+ "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity"
+ },
+ "properties": {
+ "description": "Container Apps Job resource specific properties.",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "description": "Provisioning state of the Container Apps Job.",
+ "enum": [
+ "InProgress",
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "Deleting"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "JobProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "environmentId": {
+ "description": "Resource ID of environment.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "workloadProfileName": {
+ "$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileName",
+ "description": "Workload profile name to pin for container apps job execution."
+ },
+ "configuration": {
+ "$ref": "#/definitions/JobConfiguration",
+ "description": "Container Apps Job configuration properties."
+ },
+ "template": {
+ "$ref": "./CommonDefinitions.json#/definitions/JobTemplate",
+ "description": "Container Apps job definition."
+ },
+ "outboundIpAddresses": {
+ "description": "Outbound IP Addresses of a container apps job.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ },
+ "eventStreamEndpoint": {
+ "description": "The endpoint of the eventstream of the container apps job.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ },
+ "required": []
+ },
+ "JobPatchProperties": {
+ "type": "object",
+ "description": "Container Apps Job resource specific properties.",
+ "properties": {
+ "identity": {
+ "description": "Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.",
+ "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "x-ms-mutability": [
+ "read",
+ "create",
+ "update"
+ ],
+ "description": "Resource tags."
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "environmentId": {
+ "description": "Resource ID of environment.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "read",
+ "update"
+ ]
+ },
+ "configuration": {
+ "$ref": "#/definitions/JobConfiguration",
+ "description": "Container Apps Job configuration properties."
+ },
+ "template": {
+ "$ref": "./CommonDefinitions.json#/definitions/JobTemplate",
+ "description": "Container Apps job definition."
+ },
+ "outboundIpAddresses": {
+ "description": "Outbound IP Addresses of a container apps job.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "eventStreamEndpoint": {
+ "description": "The endpoint of the eventstream of the container apps job.",
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "JobsCollection": {
+ "description": "Container Apps Jobs collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Job"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "RegistryCredentials": {
+ "description": "Container App Private Registry",
+ "type": "object",
+ "properties": {
+ "server": {
+ "description": "Container Registry Server",
+ "type": "string"
+ },
+ "username": {
+ "description": "Container Registry Username",
+ "type": "string"
+ },
+ "passwordSecretRef": {
+ "description": "The name of the Secret that contains the registry login password",
+ "type": "string"
+ },
+ "identity": {
+ "description": "A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'",
+ "type": "string"
+ }
+ }
+ },
+ "JobSecretsCollection": {
+ "description": "Container Apps Job Secrets Collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "./CommonDefinitions.json#/definitions/Secret"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ },
+ "ReplicaCompletionCount": {
+ "description": "Minimum number of successful replica completions before overall job completion.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "Parallelism": {
+ "description": "Number of parallel replicas of a job that can run at a given time.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "PollingInterval": {
+ "description": "Interval to check each event source in seconds. Defaults to 30s",
+ "format": "int32",
+ "type": "integer"
+ },
+ "JobScaleRule": {
+ "description": "Scaling rule.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Scale Rule Name",
+ "type": "string"
+ },
+ "type": {
+ "description": "Type of the scale rule\neg: azure-servicebus, redis etc.",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Metadata properties to describe the scale rule.",
+ "type": "object"
+ },
+ "auth": {
+ "description": "Authentication secrets for the scale rule.",
+ "type": "array",
+ "items": {
+ "$ref": "./CommonDefinitions.json#/definitions/ScaleRuleAuth"
+ }
+ }
+ }
+ },
+ "JobScale": {
+ "description": "Scaling configurations for event driven jobs.",
+ "type": "object",
+ "properties": {
+ "pollingInterval": {
+ "$ref": "#/definitions/PollingInterval"
+ },
+ "minExecutions": {
+ "format": "int32",
+ "description": "Minimum number of job executions that are created for a trigger, default 0",
+ "type": "integer",
+ "default": 0
+ },
+ "maxExecutions": {
+ "format": "int32",
+ "description": "Maximum number of job executions that are created for a trigger, default 100.",
+ "type": "integer",
+ "default": 100
+ },
+ "rules": {
+ "description": "Scaling rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/JobScaleRule"
+ }
+ }
+ }
+ },
+ "JobExecutionBase": {
+ "description": "Container App's Job execution name.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Job execution name.",
+ "type": "string"
+ },
+ "id": {
+ "description": "Job execution Id.",
+ "type": "string"
+ }
+ }
+ },
+ "JobExecution": {
+ "description": "Container Apps Job execution.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Job execution Name.",
+ "type": "string"
+ },
+ "id": {
+ "description": "Job execution Id.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Job Type.",
+ "type": "string"
+ },
+ "status": {
+ "description": "Current running State of the job",
+ "enum": [
+ "Running",
+ "Processing",
+ "Stopped",
+ "Degraded",
+ "Failed",
+ "Unknown",
+ "Succeeded"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "JobExecutionRunningState",
+ "modelAsString": true
+ }
+ },
+ "startTime": {
+ "description": "Job execution start time.",
+ "format": "date-time",
+ "type": "string"
+ },
+ "endTime": {
+ "description": "Job execution start time.",
+ "format": "date-time",
+ "type": "string"
+ },
+ "template": {
+ "description": "Job's execution container.",
+ "$ref": "#/definitions/JobExecutionTemplate"
+ }
+ }
+ },
+ "ContainerAppJobExecutions": {
+ "description": "Container App executions collection ARM resource.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/JobExecution"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "JobExecutionNamesCollection": {
+ "description": "Container App executions names list.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/JobExecutionBase"
+ }
+ }
+ }
+ },
+ "JobExecutionTemplate": {
+ "description": "Job's execution template, containing container configuration for a job's execution",
+ "type": "object",
+ "properties": {
+ "containers": {
+ "description": "List of container definitions for the Container Apps Job.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/JobExecutionContainer"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "initContainers": {
+ "description": "List of specialized containers that run before job containers.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/JobExecutionContainer"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ }
+ }
+ },
+ "JobExecutionContainer": {
+ "description": "Container Apps Jobs execution container definition.",
+ "type": "object",
+ "properties": {
+ "image": {
+ "description": "Container image tag.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Custom container name.",
+ "type": "string"
+ },
+ "command": {
+ "description": "Container start command.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "args": {
+ "description": "Container start command arguments.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "env": {
+ "description": "Container environment variables.",
+ "type": "array",
+ "items": {
+ "$ref": "./CommonDefinitions.json#/definitions/EnvironmentVar"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "resources": {
+ "$ref": "./CommonDefinitions.json#/definitions/ContainerResources",
+ "description": "Container resource requirements."
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json
new file mode 100644
index 000000000000..43431fb883ad
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json
@@ -0,0 +1,1438 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Get all Environments for a subscription.",
+ "description": "Get all Managed Environments for a subscription.",
+ "operationId": "ManagedEnvironments_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironmentsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List environments by subscription": {
+ "$ref": "./examples/ManagedEnvironments_ListBySubscription.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Get all the Environments in a resource group.",
+ "description": "Get all the Managed Environments in a resource group.",
+ "operationId": "ManagedEnvironments_ListByResourceGroup",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironmentsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List environments by resource group": {
+ "$ref": "./examples/ManagedEnvironments_ListByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Get the properties of a Managed Environment.",
+ "description": "Get the properties of a Managed Environment used to host container apps.",
+ "operationId": "ManagedEnvironments_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironment"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get environments by name": {
+ "$ref": "./examples/ManagedEnvironments_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Creates or updates a Managed Environment.",
+ "description": "Creates or updates a Managed Environment used to host container apps.",
+ "operationId": "ManagedEnvironments_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "environmentEnvelope",
+ "in": "body",
+ "description": "Configuration details of the Environment.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironment"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironment"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironment"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create environments": {
+ "$ref": "./examples/ManagedEnvironments_CreateOrUpdate.json"
+ },
+ "Create environment with custom infrastructureResourceGroup": {
+ "$ref": "./examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Delete a Managed Environment.",
+ "description": "Delete a Managed Environment if it does not have any container apps.",
+ "operationId": "ManagedEnvironments_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete operation completed"
+ },
+ "202": {
+ "description": "Delete operation is in progress"
+ },
+ "204": {
+ "description": "Environment does not exist"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete environment by name": {
+ "$ref": "./examples/ManagedEnvironments_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Update Managed Environment's properties.",
+ "description": "Patches a Managed Environment using JSON Merge Patch",
+ "operationId": "ManagedEnvironments_Update",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "environmentEnvelope",
+ "in": "body",
+ "description": "Configuration details of the Environment.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironment"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironment"
+ }
+ },
+ "202": {
+ "description": "Patch operation is in progress."
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Patch Managed Environment": {
+ "$ref": "./examples/ManagedEnvironments_Patch.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Get the Certificates in a given managed environment.",
+ "operationId": "Certificates_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/CertificateCollection"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Certificates by Managed Environment": {
+ "$ref": "./examples/Certificates_ListByManagedEnvironment.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Get the specified Certificate.",
+ "operationId": "Certificates_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Certificate": {
+ "$ref": "./examples/Certificate_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ManagedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Create or Update a Certificate.",
+ "operationId": "Certificates_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateEnvelope",
+ "in": "body",
+ "description": "Certificate to be created or updated",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or Update Certificate": {
+ "$ref": "./examples/Certificate_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ManagedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Deletes the specified Certificate.",
+ "operationId": "Certificates_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete operation completed"
+ },
+ "204": {
+ "description": "Certificate does not exist"
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Certificate": {
+ "$ref": "./examples/Certificate_Delete.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ManagedEnvironments",
+ "Certificates"
+ ],
+ "summary": "Update properties of a certificate",
+ "description": "Patches a certificate. Currently only patching of tags is supported",
+ "operationId": "Certificates_Update",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateName",
+ "in": "path",
+ "description": "Name of the Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "certificateEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "Properties of a certificate that need to be updated",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/CertificatePatch"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Certificate updated successfully.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/Certificate"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Patch Certificate": {
+ "$ref": "./examples/Certificates_Patch.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments",
+ "ManagedCertificates"
+ ],
+ "summary": "Get the specified Managed Certificate.",
+ "operationId": "ManagedCertificates_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "managedCertificateName",
+ "in": "path",
+ "description": "Name of the Managed Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/ManagedCertificate"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Certificate": {
+ "$ref": "./examples/ManagedCertificate_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ManagedEnvironments",
+ "ManagedCertificates"
+ ],
+ "summary": "Create or Update a Managed Certificate.",
+ "operationId": "ManagedCertificates_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "managedCertificateName",
+ "in": "path",
+ "description": "Name of the Managed Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "managedCertificateEnvelope",
+ "in": "body",
+ "description": "Managed Certificate to be created or updated",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/ManagedCertificate"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/ManagedCertificate"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/ManagedCertificate"
+ }
+ },
+ "400": {
+ "description": "Bad Request.",
+ "x-ms-error-response": true
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "x-ms-examples": {
+ "Create or Update Certificate": {
+ "$ref": "./examples/ManagedCertificate_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ManagedEnvironments",
+ "ManagedCertificates"
+ ],
+ "summary": "Deletes the specified Managed Certificate.",
+ "operationId": "ManagedCertificates_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "managedCertificateName",
+ "in": "path",
+ "description": "Name of the Managed Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete operation completed"
+ },
+ "204": {
+ "description": "Certificate does not exist"
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Certificate": {
+ "$ref": "./examples/ManagedCertificate_Delete.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ManagedEnvironments",
+ "ManagedCertificates"
+ ],
+ "summary": "Update tags of a managed certificate",
+ "description": "Patches a managed certificate. Oly patching of tags is supported",
+ "operationId": "ManagedCertificates_Update",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "managedCertificateName",
+ "in": "path",
+ "description": "Name of the Managed Certificate.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "managedCertificateEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "Properties of a managed certificate that need to be updated",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/ManagedCertificatePatch"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Managed Certificate updated successfully.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/ManagedCertificate"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Patch Managed Certificate": {
+ "$ref": "./examples/ManagedCertificates_Patch.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments",
+ "ManagedCertificates"
+ ],
+ "summary": "Get the Managed Certificates in a given managed environment.",
+ "operationId": "ManagedCertificates_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/ManagedCertificateCollection"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Managed Certificates by Managed Environment": {
+ "$ref": "./examples/ManagedCertificates_ListByManagedEnvironment.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability": {
+ "post": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Checks the resource name availability.",
+ "description": "Checks if resource name is available.",
+ "operationId": "Namespaces_CheckNameAvailability",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "checkNameAvailabilityRequest",
+ "in": "body",
+ "description": "The check name availability request.",
+ "required": true,
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityRequest"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/CheckNameAvailabilityResponse"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "ContainerApps_CheckNameAvailability": {
+ "$ref": "./examples/ContainerApps_CheckNameAvailability.json"
+ },
+ "Certificates_CheckNameAvailability": {
+ "$ref": "./examples/Certificates_CheckNameAvailability.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/getAuthtoken": {
+ "post": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Get auth token for a managed environment",
+ "description": "Checks if resource name is available.",
+ "operationId": "ManagedEnvironments_GetAuthToken",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EnvironmentAuthToken"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Managed Environment Auth Token": {
+ "$ref": "./examples/ManagedEnvironments_GetAuthToken.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates": {
+ "get": {
+ "tags": [
+ "ManagedEnvironments"
+ ],
+ "summary": "Get all workload Profile States for a Managed Environment..",
+ "description": "Get all workload Profile States for a Managed Environment.",
+ "operationId": "ManagedEnvironments_ListWorkloadProfileStates",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/workloadProfileStatesCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List environments by subscription": {
+ "$ref": "./examples/ManagedEnvironments_ListWorkloadProfileStates.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "AppLogsConfiguration": {
+ "description": "Configuration of application logs",
+ "type": "object",
+ "properties": {
+ "destination": {
+ "description": "Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'",
+ "type": "string"
+ },
+ "logAnalyticsConfiguration": {
+ "description": "Log Analytics configuration, must only be provided when destination is configured as 'log-analytics'",
+ "$ref": "#/definitions/LogAnalyticsConfiguration"
+ }
+ }
+ },
+ "KedaConfiguration": {
+ "type": "object",
+ "description": "Configuration properties Keda component",
+ "properties": {
+ "version": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The version of Keda"
+ }
+ }
+ },
+ "DaprConfiguration": {
+ "type": "object",
+ "description": "Configuration properties Dapr component",
+ "properties": {
+ "version": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The version of Dapr"
+ }
+ }
+ },
+ "VnetConfiguration": {
+ "type": "object",
+ "description": "Configuration properties for apps environment to join a Virtual Network",
+ "properties": {
+ "internal": {
+ "type": "boolean",
+ "description": "Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide infrastructureSubnetId if enabling this property",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "infrastructureSubnetId": {
+ "type": "string",
+ "description": "Resource ID of a subnet for infrastructure components. Must not overlap with any other provided IP ranges.",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "dockerBridgeCidr": {
+ "type": "string",
+ "description": "CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges.",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "platformReservedCidr": {
+ "type": "string",
+ "description": "IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other provided IP ranges.",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "platformReservedDnsIP": {
+ "type": "string",
+ "description": " An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server.",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ }
+ }
+ },
+ "Mtls": {
+ "type": "object",
+ "description": "Configuration properties for mutual TLS authentication",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "Boolean indicating whether the mutual TLS authentication is enabled"
+ }
+ }
+ },
+ "ManagedEnvironment": {
+ "description": "An environment for hosting container apps",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "kind": {
+ "type": "string",
+ "description": "Kind of the Environment."
+ },
+ "properties": {
+ "description": "Managed environment resource specific properties",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "description": "Provisioning state of the Environment.",
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "Waiting",
+ "InitializationInProgress",
+ "InfrastructureSetupInProgress",
+ "InfrastructureSetupComplete",
+ "ScheduledForDelete",
+ "UpgradeRequested",
+ "UpgradeFailed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "EnvironmentProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "daprAIInstrumentationKey": {
+ "type": "string",
+ "description": "Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry",
+ "x-ms-secret": true
+ },
+ "daprAIConnectionString": {
+ "type": "string",
+ "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry",
+ "x-ms-secret": true
+ },
+ "vnetConfiguration": {
+ "description": "Vnet configuration for the environment",
+ "$ref": "#/definitions/VnetConfiguration"
+ },
+ "deploymentErrors": {
+ "description": "Any errors that occurred during deployment or deployment validation",
+ "type": "string",
+ "readOnly": true
+ },
+ "defaultDomain": {
+ "description": "Default Domain Name for the cluster",
+ "type": "string",
+ "readOnly": true
+ },
+ "staticIp": {
+ "description": "Static IP of the Environment",
+ "type": "string",
+ "readOnly": true
+ },
+ "appLogsConfiguration": {
+ "$ref": "#/definitions/AppLogsConfiguration",
+ "description": "Cluster configuration which enables the log daemon to export\napp logs to a destination. Currently only \"log-analytics\" is\nsupported"
+ },
+ "zoneRedundant": {
+ "description": "Whether or not this Managed Environment is zone-redundant.",
+ "type": "boolean",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "customDomainConfiguration": {
+ "$ref": "./CommonDefinitions.json#/definitions/CustomDomainConfiguration",
+ "description": "Custom domain configuration for the environment"
+ },
+ "eventStreamEndpoint": {
+ "description": "The endpoint of the eventstream of the Environment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "workloadProfiles": {
+ "description": "Workload profiles configured for the Managed Environment.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/WorkloadProfile"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ]
+ },
+ "kedaConfiguration": {
+ "$ref": "#/definitions/KedaConfiguration",
+ "description": "The configuration of Keda component."
+ },
+ "daprConfiguration": {
+ "$ref": "#/definitions/DaprConfiguration",
+ "description": "The configuration of Dapr component."
+ },
+ "infrastructureResourceGroup": {
+ "description": "Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in the same subscription as the subnet.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "peerAuthentication": {
+ "description": "Peer authentication settings for the Managed Environment",
+ "type": "object",
+ "properties": {
+ "mtls": {
+ "description": "Mutual TLS authentication settings for the Managed Environment",
+ "$ref": "#/definitions/Mtls"
+ }
+ }
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "ManagedEnvironmentsCollection": {
+ "description": "Collection of Environments",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedEnvironment"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "LogAnalyticsConfiguration": {
+ "description": "Log Analytics configuration, must only be provided when destination is configured as 'log-analytics'",
+ "type": "object",
+ "properties": {
+ "customerId": {
+ "description": "Log analytics customer id",
+ "type": "string"
+ },
+ "sharedKey": {
+ "description": "Log analytics customer key",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ],
+ "x-ms-secret": true
+ }
+ }
+ },
+ "EnvironmentAuthToken": {
+ "description": "Environment Auth Token.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Environment auth token resource specific properties",
+ "type": "object",
+ "properties": {
+ "token": {
+ "description": "Auth token value.",
+ "type": "string",
+ "x-ms-secret": true,
+ "readOnly": true
+ },
+ "expires": {
+ "format": "date-time",
+ "description": "Token expiration date.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "WorkloadProfile": {
+ "description": "Workload profile to scope container app execution.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileName",
+ "description": "Workload profile type for the workloads to run on."
+ },
+ "workloadProfileType": {
+ "$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileType",
+ "description": "Workload profile type for the workloads to run on."
+ },
+ "minimumCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The minimum capacity."
+ },
+ "maximumCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum capacity."
+ }
+ },
+ "required": [
+ "name",
+ "workloadProfileType"
+ ]
+ },
+ "workloadProfileStates": {
+ "description": "Collection of all the workload Profile States for a Managed Environment..",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Workload Profile resource specific properties.",
+ "type": "object",
+ "properties": {
+ "minimumCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Minimum count of instances."
+ },
+ "maximumCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Maximum count of nodes."
+ },
+ "currentCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Current count of nodes."
+ }
+ }
+ }
+ }
+ },
+ "workloadProfileStatesCollection": {
+ "description": "Collection of workloadProfileStates",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/workloadProfileStates"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
new file mode 100644
index 000000000000..08e57326a95a
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
@@ -0,0 +1,313 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents": {
+ "get": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Get the Dapr Components for a managed environment.",
+ "operationId": "DaprComponents_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponentsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Dapr Components": {
+ "$ref": "./examples/DaprComponents_List.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}": {
+ "get": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Get a dapr component.",
+ "operationId": "DaprComponents_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponent"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Dapr Component with secrets": {
+ "$ref": "./examples/DaprComponents_Get_Secrets.json"
+ },
+ "Get Dapr Component with secret store component": {
+ "$ref": "./examples/DaprComponents_Get_SecretStoreComponent.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Creates or updates a Dapr Component.",
+ "description": "Creates or updates a Dapr Component in a Managed Environment.",
+ "operationId": "DaprComponents_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "daprComponentEnvelope",
+ "in": "body",
+ "description": "Configuration details of the Dapr Component.",
+ "required": true,
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponent"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprComponent"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": false,
+ "x-ms-examples": {
+ "Create or update dapr component with secrets": {
+ "$ref": "./examples/DaprComponents_CreateOrUpdate_Secrets.json"
+ },
+ "Create or update dapr component with secret store component": {
+ "$ref": "./examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "Delete a Dapr Component.",
+ "description": "Delete a Dapr Component from a Managed Environment.",
+ "operationId": "DaprComponents_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete operation completed"
+ },
+ "204": {
+ "description": "Environment does not exist"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete dapr component": {
+ "$ref": "./examples/DaprComponents_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets": {
+ "post": {
+ "tags": [
+ "DaprComponents"
+ ],
+ "summary": "List secrets for a dapr component",
+ "operationId": "DaprComponents_ListSecrets",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Managed Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "componentName",
+ "in": "path",
+ "description": "Name of the Dapr Component.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DaprSecretsCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Container Apps Secrets": {
+ "$ref": "./examples/DaprComponents_ListSecrets.json"
+ }
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
new file mode 100644
index 000000000000..11a19da00cce
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
@@ -0,0 +1,290 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages": {
+ "get": {
+ "tags": [
+ "ManagedEnvironmentsStorages"
+ ],
+ "summary": "Get all storages for a managedEnvironment.",
+ "description": "Get all storages for a managedEnvironment.",
+ "operationId": "ManagedEnvironmentsStorages_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironmentStoragesCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List environments storages by subscription": {
+ "$ref": "./examples/ManagedEnvironmentsStorages_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}": {
+ "get": {
+ "tags": [
+ "ManagedEnvironmentsStorages"
+ ],
+ "summary": "Get storage for a managedEnvironment.",
+ "description": "Get storage for a managedEnvironment.",
+ "operationId": "ManagedEnvironmentsStorages_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageName",
+ "in": "path",
+ "description": "Name of the storage.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironmentStorage"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "get a environments storage properties by subscription": {
+ "$ref": "./examples/ManagedEnvironmentsStorages_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ManagedEnvironmentsStorages"
+ ],
+ "summary": "Create or update storage for a managedEnvironment.",
+ "description": "Create or update storage for a managedEnvironment.",
+ "operationId": "ManagedEnvironmentsStorages_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageName",
+ "in": "path",
+ "description": "Name of the storage.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageEnvelope",
+ "in": "body",
+ "description": "Configuration details of storage.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironmentStorage"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedEnvironmentStorage"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or update environments storage": {
+ "$ref": "./examples/ManagedEnvironmentsStorages_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ManagedEnvironmentsStorages"
+ ],
+ "summary": "Delete storage for a managedEnvironment.",
+ "description": "Delete storage for a managedEnvironment.",
+ "operationId": "ManagedEnvironmentsStorages_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "storageName",
+ "in": "path",
+ "description": "Name of the storage.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "Storage does not exist"
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List environments storages by subscription": {
+ "$ref": "./examples/ManagedEnvironmentsStorages_Delete.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ManagedEnvironmentStoragesCollection": {
+ "description": "Collection of Storage for Environments",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of storage resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedEnvironmentStorage"
+ }
+ }
+ }
+ },
+ "ManagedEnvironmentStorage": {
+ "description": "Storage resource for managedEnvironment.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "Storage properties",
+ "type": "object",
+ "properties": {
+ "azureFile": {
+ "$ref": "./CommonDefinitions.json#/definitions/AzureFileProperties",
+ "description": "Azure file properties"
+ }
+ }
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json
new file mode 100644
index 000000000000..ffaff5b55c8e
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json
@@ -0,0 +1,446 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-04-01-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "flow": "implicit",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols": {
+ "get": {
+ "tags": [
+ "ContainerAppsSourceControls"
+ ],
+ "summary": "Get the Container App SourceControls in a given resource group.",
+ "operationId": "ContainerAppsSourceControls_ListByContainerApp",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SourceControlCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List App's Source Controls": {
+ "$ref": "./examples/SourceControls_ListByContainer.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}": {
+ "get": {
+ "tags": [
+ "ContainerAppsSourceControls"
+ ],
+ "summary": "Get a SourceControl of a Container App.",
+ "operationId": "ContainerAppsSourceControls_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "sourceControlName",
+ "in": "path",
+ "description": "Name of the Container App SourceControl.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SourceControl"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Container App's SourceControl": {
+ "$ref": "./examples/SourceControls_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ContainerAppsSourceControls"
+ ],
+ "summary": "Create or update the SourceControl for a Container App.",
+ "description": "Create or update the SourceControl for a Container App.",
+ "operationId": "ContainerAppsSourceControls_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "sourceControlName",
+ "in": "path",
+ "description": "Name of the Container App SourceControl.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "sourceControlEnvelope",
+ "in": "body",
+ "description": "Properties used to create a Container App SourceControl",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SourceControl"
+ }
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SourceControl"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/SourceControl"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or Update Container App SourceControl": {
+ "$ref": "./examples/SourceControls_CreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "ContainerAppsSourceControls"
+ ],
+ "summary": "Delete a Container App SourceControl.",
+ "description": "Delete a Container App SourceControl.",
+ "operationId": "ContainerAppsSourceControls_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "containerAppName",
+ "in": "path",
+ "description": "Name of the Container App.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "sourceControlName",
+ "in": "path",
+ "description": "Name of the Container App SourceControl.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Container App SourceControl deleted successfully."
+ },
+ "202": {
+ "description": "Delete operation is in progress."
+ },
+ "204": {
+ "description": "Container App SourceControl does not exist."
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Container App SourceControl": {
+ "$ref": "./examples/SourceControls_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ }
+ },
+ "definitions": {
+ "SourceControl": {
+ "description": "Container App SourceControl.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "SourceControl resource specific properties",
+ "type": "object",
+ "properties": {
+ "operationState": {
+ "description": "Current provisioning State of the operation",
+ "enum": [
+ "InProgress",
+ "Succeeded",
+ "Failed",
+ "Canceled"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "SourceControlOperationState",
+ "modelAsString": true
+ }
+ },
+ "repoUrl": {
+ "description": "The repo url which will be integrated to ContainerApp.",
+ "type": "string"
+ },
+ "branch": {
+ "description": "The branch which will trigger the auto deployment",
+ "type": "string"
+ },
+ "githubActionConfiguration": {
+ "$ref": "#/definitions/GithubActionConfiguration",
+ "description": "Container App Revision Template with all possible settings and the\ndefaults if user did not provide them. The defaults are populated\nas they were at the creation time"
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "GithubActionConfiguration": {
+ "description": "Configuration properties that define the mutable settings of a Container App SourceControl",
+ "type": "object",
+ "properties": {
+ "registryInfo": {
+ "$ref": "#/definitions/RegistryInfo",
+ "description": "Registry configurations."
+ },
+ "azureCredentials": {
+ "$ref": "#/definitions/AzureCredentials",
+ "description": "AzureCredentials configurations."
+ },
+ "contextPath": {
+ "description": "Context path",
+ "type": "string"
+ },
+ "githubPersonalAccessToken": {
+ "description": "One time Github PAT to configure github environment",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ],
+ "x-ms-secret": true
+ },
+ "image": {
+ "description": "Image name",
+ "type": "string"
+ },
+ "publishType": {
+ "description": "Code or Image",
+ "type": "string"
+ },
+ "os": {
+ "description": "Operation system",
+ "type": "string"
+ },
+ "runtimeStack": {
+ "description": "Runtime stack",
+ "type": "string"
+ },
+ "runtimeVersion": {
+ "description": "Runtime version",
+ "type": "string"
+ }
+ }
+ },
+ "RegistryInfo": {
+ "description": "Container App registry information.",
+ "type": "object",
+ "properties": {
+ "registryUrl": {
+ "description": "registry server Url.",
+ "type": "string"
+ },
+ "registryUserName": {
+ "description": "registry username.",
+ "type": "string"
+ },
+ "registryPassword": {
+ "description": "registry secret.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ],
+ "x-ms-secret": true
+ }
+ }
+ },
+ "AzureCredentials": {
+ "description": "Container App credentials.",
+ "type": "object",
+ "properties": {
+ "clientId": {
+ "description": "Client Id.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ],
+ "x-ms-secret": true
+ },
+ "clientSecret": {
+ "description": "Client Secret.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ],
+ "x-ms-secret": true
+ },
+ "tenantId": {
+ "description": "Tenant Id.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ],
+ "x-ms-secret": true
+ },
+ "kind": {
+ "description": "Kind of auth github does for deploying the template",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ]
+ },
+ "subscriptionId": {
+ "description": "Subscription Id.",
+ "type": "string"
+ }
+ }
+ },
+ "SourceControlCollection": {
+ "description": "SourceControl collection ARM resource.",
+ "required": [
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SourceControl"
+ }
+ },
+ "nextLink": {
+ "description": "Link to next page of resources.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
new file mode 100644
index 000000000000..aad673a71385
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "authConfigName": "current",
+ "api-version": "2023-04-01-preview",
+ "authConfigEnvelope": {
+ "properties": {
+ "platform": {
+ "enabled": true
+ },
+ "globalValidation": {
+ "unauthenticatedClientAction": "AllowAnonymous"
+ },
+ "identityProviders": {
+ "facebook": {
+ "registration": {
+ "appId": "123",
+ "appSecretSettingName": "facebook-secret"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/authconfigs/current",
+ "name": "current",
+ "type": "Microsoft.App/containerapps/authconfigs",
+ "properties": {
+ "platform": {
+ "enabled": true
+ },
+ "globalValidation": {
+ "unauthenticatedClientAction": "AllowAnonymous"
+ },
+ "identityProviders": {
+ "facebook": {
+ "registration": {
+ "appId": "123",
+ "appSecretSettingName": "facebook-secret"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json
new file mode 100644
index 000000000000..5ecaef608715
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "authConfigName": "current",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
new file mode 100644
index 000000000000..a3ad05b911f7
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "authConfigName": "current",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current",
+ "name": "current",
+ "type": "Microsoft.App/containerapps/authconfigs",
+ "properties": {
+ "platform": {
+ "enabled": true
+ },
+ "globalValidation": {
+ "unauthenticatedClientAction": "AllowAnonymous"
+ },
+ "identityProviders": {
+ "facebook": {
+ "registration": {
+ "appId": "123",
+ "appSecretSettingName": "facebook-secret"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
new file mode 100644
index 000000000000..e5fbdb92672f
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/authconfigs/current",
+ "name": "current",
+ "type": "Microsoft.App/containerapps/authconfigs",
+ "properties": {
+ "platform": {
+ "enabled": true
+ },
+ "globalValidation": {
+ "unauthenticatedClientAction": "AllowAnonymous"
+ },
+ "identityProviders": {
+ "facebook": {
+ "registration": {
+ "appId": "123",
+ "appSecretSettingName": "facebook-secret"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json
new file mode 100644
index 000000000000..c51341567783
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json
@@ -0,0 +1,145 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "location": "East US",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-D4",
+ "category": "General purpose D-series",
+ "applicability": "LocationDefault",
+ "cores": 4,
+ "memoryGiB": 16
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-D4",
+ "name": "Dedicated-D4",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-D8",
+ "category": "General purpose D-series",
+ "applicability": "Custom",
+ "cores": 8,
+ "memoryGiB": 32
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-D8",
+ "name": "Dedicated-D4",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-D16",
+ "category": "General purpose D-series",
+ "applicability": "Custom",
+ "cores": 16,
+ "memoryGiB": 64
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-D16",
+ "name": "Dedicated-D16",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-E4",
+ "category": "Memory optimized E-series",
+ "applicability": "Custom",
+ "cores": 4,
+ "memoryGiB": 32
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-E4",
+ "name": "Dedicated-E4",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-E8",
+ "category": "Memory optimized E-series",
+ "applicability": "Custom",
+ "cores": 8,
+ "memoryGiB": 64
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-E8",
+ "name": "Dedicated-E8",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-E16",
+ "category": "Memory optimized E-series",
+ "applicability": "Custom",
+ "cores": 16,
+ "memoryGiB": 128
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-E16",
+ "name": "Dedicated-E16",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-F4",
+ "category": "Compute optimized F-series",
+ "applicability": "Custom",
+ "cores": 4,
+ "memoryGiB": 8
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-F4",
+ "name": "Dedicated-F4",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-F8",
+ "category": "Compute optimized F-series",
+ "applicability": "Custom",
+ "cores": 8,
+ "memoryGiB": 16
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-F8",
+ "name": "Dedicated-F8",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Dedicated-F16",
+ "category": "Compute optimized F-series",
+ "applicability": "Custom",
+ "cores": 16,
+ "memoryGiB": 32
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Dedicated-F16",
+ "name": "Dedicated-F16",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "displayName": "Consumption",
+ "category": "Consumption",
+ "applicability": "Custom",
+ "cores": 3,
+ "memoryGiB": 3
+ },
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Consumption",
+ "name": "Consumption",
+ "type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json
new file mode 100644
index 000000000000..23c7e1fd3ec2
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "location": "East US",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "location": "East US",
+ "properties": {
+ "category": "General purpose D-series",
+ "meterType": "CPU",
+ "displayName": "General Purpose Cores per Second"
+ },
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/GeneralPurposeDseriesCPU",
+ "name": "GeneralPurposeDseriesCPU",
+ "type": "Microsoft.App/billingMeters"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "category": "General purpose D-series",
+ "meterType": "Memory",
+ "displayName": "General Purpose Memory GiB per Second"
+ },
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/GeneralPurposeDseriesMemory",
+ "name": "GeneralPurposeDseriesMemory",
+ "type": "Microsoft.App/billingMeters"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "category": "Memory optimized E-series",
+ "meterType": "CPU",
+ "displayName": "Memory Optimized Cores per Second"
+ },
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/MemoryOptimizedEseriesCPU",
+ "name": "MemoryOptimizedEseriesCPU",
+ "type": "Microsoft.App/billingMeters"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "category": "Memory optimized E-series",
+ "meterType": "Memory",
+ "displayName": "Memory Optimized Memory GiB per Second"
+ },
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/MemoryOptimizedEseriesMemory",
+ "name": "MemoryOptimizedEseriesMemory",
+ "type": "Microsoft.App/billingMeters"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "category": "Compute optimized F-series",
+ "meterType": "CPU",
+ "displayName": "Compute Optimized Cores per Second"
+ },
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/ComputeOptimizedFseriesCPU",
+ "name": "ComputeOptimizedFseriesCPU",
+ "type": "Microsoft.App/billingMeters"
+ },
+ {
+ "location": "East US",
+ "properties": {
+ "category": "Compute optimized F-series",
+ "meterType": "Memory",
+ "displayName": "Compute Optimized Memory GiB per Second"
+ },
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/GeneralComputeMemory",
+ "name": "GeneralComputeMemory",
+ "type": "Microsoft.App/billingMeters"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json
new file mode 100644
index 000000000000..64a91ebc70b8
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview",
+ "certificateEnvelope": {
+ "location": "East US",
+ "properties": {
+ "password": "private key password",
+ "value": "Y2VydA=="
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json
new file mode 100644
index 000000000000..b47618034872
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json
new file mode 100644
index 000000000000..be4923760a98
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
+ "name": "certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json
new file mode 100644
index 000000000000..0351e2c6b358
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2023-04-01-preview",
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "checkNameAvailabilityRequest": {
+ "name": "testcertificatename",
+ "type": "Microsoft.App/managedEnvironments/certificates"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": true,
+ "reason": "None",
+ "message": ""
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json
new file mode 100644
index 000000000000..f4cd954b6576
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
+ "name": "certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ },
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
+ "name": "certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json
new file mode 100644
index 000000000000..acc17f6fed19
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview",
+ "certificateEnvelope": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/Certificates",
+ "location": "East US",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
new file mode 100644
index 000000000000..57789d7907d0
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview",
+ "certificateEnvelope": {
+ "location": "East US",
+ "properties": {
+ "password": "private key password",
+ "value": "Y2VydA=="
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name",
+ "type": "Microsoft.App/ConnectedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
new file mode 100644
index 000000000000..da85eb4eab7d
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
new file mode 100644
index 000000000000..f1eac161f42c
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name",
+ "name": "certificate-firendly-name",
+ "type": "Microsoft.App/ConnectedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
new file mode 100644
index 000000000000..52f1c02b4f9f
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2023-04-01-preview",
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testcontainerenv",
+ "checkNameAvailabilityRequest": {
+ "name": "testcertificatename",
+ "type": "Microsoft.App/connectedEnvironments/certificates"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": true,
+ "reason": "None",
+ "message": ""
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
new file mode 100644
index 000000000000..6e8641beee62
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testcontainerenv",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name",
+ "name": "certificate-firendly-name",
+ "type": "Microsoft.App/ConnectedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ },
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name",
+ "name": "certificate-firendly-name",
+ "type": "Microsoft.App/ConnectedEnvironments/Certificates",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
new file mode 100644
index 000000000000..fb0abe91ef5c
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testcontainerenv",
+ "certificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview",
+ "certificateEnvelope": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testcontainerenv/certificate-firendly-name",
+ "type": "Microsoft.App/ConnectedEnvironments/Certificates",
+ "location": "East US",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "subjectName": "my-subject-name.company.country.net",
+ "subjectAlternativeNames": [
+ "CN=my-subject-name.com"
+ ],
+ "issuer": "Issuer Name",
+ "issueDate": "2021-11-06T04:00:00Z",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT",
+ "valid": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
new file mode 100644
index 000000000000..34575f3dc1bc
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
@@ -0,0 +1,87 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview",
+ "daprComponentEnvelope": {
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey",
+ "value": "keyvalue"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/jlaw-demo1/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/connectedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
new file mode 100644
index 000000000000..b7f119f9b8e7
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
new file mode 100644
index 000000000000..445936e50a73
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/jlaw-demo1/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/connectedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
new file mode 100644
index 000000000000..f2cc2029955a
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "myenvironment",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/myenvironment/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/connectedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
new file mode 100644
index 000000000000..1c847fd4ac47
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "name": "secret1",
+ "value": "value1"
+ },
+ {
+ "name": "secret2",
+ "value": "value2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
new file mode 100644
index 000000000000..3fc82614f8bb
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "env",
+ "storageName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview",
+ "storageEnvelope": {
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "accountKey": "key",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/env/storages/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/connectedEnvironments/storages",
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
new file mode 100644
index 000000000000..f882da6ea278
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "env",
+ "storageName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
new file mode 100644
index 000000000000..ce017dbf56e9
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "env",
+ "storageName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/env/storages/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/connectedEnvironments/storages",
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json
new file mode 100644
index 000000000000..dc86a07a3c96
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "managedEnv",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/managedEnv/storages/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/connectedEnvironments/storages",
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
new file mode 100644
index 000000000000..aedfe7ad9b8b
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testenv",
+ "api-version": "2023-04-01-preview",
+ "kind": "kubernetes",
+ "location": "East US",
+ "extendedLocation": {
+ "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ },
+ "environmentEnvelope": {
+ "location": "East US",
+ "properties": {
+ "staticIp": "1.2.3.4",
+ "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/",
+ "customDomainConfiguration": {
+ "dnsSuffix": "www.my-name.com",
+ "certificateValue": "Y2VydA==",
+ "certificatePassword": "private key password"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testenv",
+ "name": "testenv",
+ "type": "Microsoft.App/connectedEnvironments",
+ "location": "East US",
+ "extendedLocation": {
+ "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ },
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "testenv.k4apps.io",
+ "staticIp": "1.2.3.4",
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testenv",
+ "name": "testenv",
+ "type": "Microsoft.App/connectedEnvironments",
+ "location": "East US",
+ "extendedLocation": {
+ "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ },
+ "tags": {},
+ "properties": {
+ "provisioningState": "Waiting",
+ "deploymentErrors": null,
+ "defaultDomain": "testenv.k4apps.io",
+ "staticIp": "1.2.3.4"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json
new file mode 100644
index 000000000000..d15b6b0bf334
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "examplekenv",
+ "api-version": "2023-04-01-preview",
+ "kind": "kubernetes",
+ "location": "East US",
+ "extendedLocation": {
+ "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/localtions/eastus/operationResults/00000"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json
new file mode 100644
index 000000000000..fd3587f3b0c4
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "examplekenv",
+ "api-version": "2023-04-01-preview",
+ "kind": "kubernetes",
+ "location": "East US",
+ "extendedLocation": {
+ "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/kubeEnvironments/examplekenv",
+ "name": "examplekenv",
+ "type": "Microsoft.App/kubeEnvironments",
+ "location": "North Central US",
+ "extendedLocation": {
+ "name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ },
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "examplekenv.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
new file mode 100644
index 000000000000..0a0863ea3e36
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
@@ -0,0 +1,63 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/sample1",
+ "name": "sample1",
+ "type": "Microsoft.App/connectedEnvironments",
+ "location": "North Central US",
+ "extendedLocation": {
+ "name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ },
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "sample1.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/sample2",
+ "name": "sample2",
+ "type": "Microsoft.App/connectedEnvironments",
+ "location": "North Central US",
+ "extendedLocation": {
+ "name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
+ "type": "CustomLocation"
+ },
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "sample2.k4apps.io",
+ "staticIp": "52.142.21.61",
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name2.com",
+ "subjectName": "CN=www.my-name2.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
new file mode 100644
index 000000000000..296c4b5e6cdf
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/sample1",
+ "name": "sample1",
+ "type": "Microsoft.App/connectedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "sample1.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.App/connectedEnvironments/sample2",
+ "name": "sample2",
+ "type": "Microsoft.App/connectedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "sample2.k4apps.io",
+ "staticIp": "52.142.21.61",
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name2.com",
+ "subjectName": "CN=www.my-name2.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json
new file mode 100644
index 000000000000..abc6a15748cb
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "connectedEnvironmentName": "testenv",
+ "api-version": "2023-04-01-preview",
+ "location": "East US",
+ "environmentEnvelope": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/testenv",
+ "name": "testenv",
+ "type": "Microsoft.App/connectedEnvironments",
+ "location": "East US",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "testenv.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json
new file mode 100644
index 000000000000..c7a6ec331047
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json
@@ -0,0 +1,68 @@
+{
+ "parameters": {
+ "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6",
+ "resourceGroupName": "mikono-workerapp-test-rg",
+ "containerAppName": "mikono-capp-stage1",
+ "detectorName": "cappcontainerappnetworkIO",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappcontainerappnetworkIO",
+ "name": "cappcontainerappnetworkIO",
+ "type": "Microsoft.App/containerapps/detectors",
+ "properties": {
+ "metadata": {
+ "id": "cappcontainerappnetworkIO",
+ "name": "Container App Network Inbound and Outbound",
+ "description": "This detector shows the Container App Network Inbound and Outbound.",
+ "author": "",
+ "category": "Availability and Performance",
+ "supportTopicList": [],
+ "type": "Detector",
+ "score": 0
+ },
+ "dataset": [
+ {
+ "table": {
+ "tableName": "",
+ "columns": [
+ {
+ "columnName": "TimeStamp",
+ "dataType": "DateTime"
+ },
+ {
+ "columnName": "Metric",
+ "dataType": "String"
+ },
+ {
+ "columnName": "Average",
+ "dataType": "Double"
+ }
+ ],
+ "rows": [
+ [
+ "2022-03-15T21:35:00",
+ "RxBytes",
+ 0
+ ]
+ ]
+ },
+ "renderingProperties": {
+ "type": 8,
+ "title": "Container Apps Network Inbound ",
+ "description": "",
+ "isVisible": true
+ }
+ }
+ ],
+ "status": {
+ "statusId": 3
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json
new file mode 100644
index 000000000000..ad64da3e78f4
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6",
+ "resourceGroupName": "mikono-workerapp-test-rg",
+ "containerAppName": "mikono-capp-stage1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/containerApps/mikono-capp-stage1/detectors/cappContainerAppAvailabilityMetrics",
+ "name": "cappContainerAppAvailabilityMetrics",
+ "type": "Microsoft.App/containerapps/detectors",
+ "properties": {
+ "metadata": {
+ "id": "cappContainerAppAvailabilityMetrics",
+ "name": "Availability Metrics for Container Apps",
+ "author": "",
+ "category": "Availability and Performance",
+ "supportTopicList": [],
+ "type": "Analysis",
+ "score": 0
+ },
+ "dataset": [],
+ "status": {
+ "statusId": 4
+ }
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json
new file mode 100644
index 000000000000..d4e6d770acc3
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2023-04-01-preview",
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "checkNameAvailabilityRequest": {
+ "name": "testcappname",
+ "type": "Microsoft.App/containerApps"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": true,
+ "reason": "None",
+ "message": ""
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
new file mode 100644
index 000000000000..47de8a0d5c16
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
@@ -0,0 +1,387 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "api-version": "2023-04-01-preview",
+ "containerAppEnvelope": {
+ "location": "East US",
+ "properties": {
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "configuration": {
+ "ingress": {
+ "external": true,
+ "targetPort": 3000,
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my-other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 100,
+ "revisionName": "testcontainerApp0-ab1234",
+ "label": "production"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ],
+ "stickySessions": {
+ "affinity": "sticky"
+ },
+ "clientCertificateMode": "accept",
+ "corsPolicy": {
+ "allowedOrigins": [
+ "https://a.test.com",
+ "https://b.test.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "POST"
+ ],
+ "allowedHeaders": [
+ "HEADER1",
+ "HEADER2"
+ ],
+ "exposeHeaders": [
+ "HEADER3",
+ "HEADER4"
+ ],
+ "maxAge": 1234,
+ "allowCredentials": true
+ }
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10,
+ "service": {
+ "type": "redis"
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v1",
+ "name": "testcontainerApp0",
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "custom": {
+ "type": "http",
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ },
+ "serviceBinds": [
+ {
+ "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService",
+ "name": "redisService"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerApp0-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my-other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ],
+ "stickySessions": {
+ "affinity": "sticky"
+ }
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ },
+ "201": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InProgress",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ]
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json
new file mode 100644
index 000000000000..006901ddad42
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testWorkerApp0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
new file mode 100644
index 000000000000..f425302af374
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
@@ -0,0 +1,131 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerApp0-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my--other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ],
+ "stickySessions": {
+ "affinity": "sticky"
+ }
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10,
+ "service": {
+ "type": "redis"
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ },
+ "serviceBinds": [
+ {
+ "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service",
+ "name": "service"
+ }
+ ]
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ },
+ "404": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json
new file mode 100644
index 000000000000..e5c18f6ae106
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps/accesstoken",
+ "location": "East US",
+ "properties": {
+ "token": "testToken",
+ "expires": "2022-07-14T19:22:50.3080223Z"
+ }
+ }
+ },
+ "404": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json
new file mode 100644
index 000000000000..5f10dec24c86
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json
@@ -0,0 +1,125 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerApp0-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my--other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ],
+ "stickySessions": {
+ "affinity": "sticky"
+ }
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json
new file mode 100644
index 000000000000..bc20efb9741c
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json
@@ -0,0 +1,133 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerApp0-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my--other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ],
+ "stickySessions": {
+ "affinity": "sticky"
+ }
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10,
+ "service": {
+ "type": "redis"
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ },
+ "serviceBinds": [
+ {
+ "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service",
+ "name": "service"
+ }
+ ]
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
new file mode 100644
index 000000000000..5b83bb9bcf9c
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "customHostname": "my.name.corp",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "hostName": "my.name.corp",
+ "isHostnameAlreadyVerified": true,
+ "customDomainVerificationTest": "Passed",
+ "customDomainVerificationFailureInfo": {},
+ "hasConflictOnManagedEnvironment": false,
+ "conflictingContainerAppResourceId": "",
+ "cNameRecords": [
+ "cNameRecord1",
+ "cNameRecord2"
+ ],
+ "txtRecords": [
+ "txtRecord1",
+ "txtRecord2"
+ ],
+ "aRecords": [
+ "aRecord1",
+ "aRecord2"
+ ],
+ "alternateCNameRecords": [
+ "cNameRecord1",
+ "cNameRecord2"
+ ],
+ "alternateTxtRecords": [
+ "txtRecord1",
+ "txtRecord2"
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json
new file mode 100644
index 000000000000..60ba3aed0f3c
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "name": "secret1"
+ },
+ {
+ "name": "secret2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
new file mode 100644
index 000000000000..6ab2bc97634f
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
@@ -0,0 +1,204 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerAppManagedBy",
+ "api-version": "2023-04-01-preview",
+ "containerAppEnvelope": {
+ "location": "East US",
+ "managedBy": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp",
+ "properties": {
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "ingress": {
+ "external": true,
+ "targetPort": 3000,
+ "exposedPort": 4000,
+ "transport": "tcp",
+ "traffic": [
+ {
+ "weight": 100,
+ "revisionName": "testcontainerAppManagedBy-ab1234"
+ }
+ ]
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppManagedBy:v1",
+ "name": "testcontainerAppManagedBy",
+ "probes": [
+ {
+ "type": "Liveness",
+ "tcpSocket": {
+ "port": 8080
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "tcpscalingrule",
+ "tcp": {
+ "metadata": {
+ "concurrentConnections": "50"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerAppManagedBy",
+ "name": "testcontainerAppManagedBy",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "managedBy": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "latestRevisionFqdn": "testcontainerAppManagedBy-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerAppManagedBy-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerAppManagedBy.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "exposedPort": 4000,
+ "transport": "tcp",
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerAppManagedBy-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerAppManagedBy-ab4321"
+ }
+ ]
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppManagedBy:v4",
+ "name": "testcontainerAppManagedBy",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "tcpSocket": {
+ "port": 8080
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "tcpscalingrule",
+ "tcp": {
+ "metadata": {
+ "concurrentConnections": "50"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "201": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerAppManagedBy",
+ "name": "testcontainerAppManagedBy",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "managedBy": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp",
+ "properties": {
+ "provisioningState": "InProgress",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "latestRevisionFqdn": "testcontainerAppManagedBy-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerAppManagedBy.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "exposedPort": 4000,
+ "transport": "tcp",
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerAppManagedBy-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerAppManagedBy-ab4321"
+ }
+ ]
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppManagedBy:v4",
+ "name": "testcontainerAppManagedBy",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "tcpSocket": {
+ "port": 8080
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "tcpscalingrule",
+ "tcp": {
+ "metadata": {
+ "concurrentConnections": "50"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json
new file mode 100644
index 000000000000..3f33e6a1b3e7
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json
@@ -0,0 +1,243 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "api-version": "2023-04-01-preview",
+ "containerAppEnvelope": {
+ "location": "East US",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "configuration": {
+ "ingress": {
+ "external": true,
+ "targetPort": 3000,
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my-other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 100,
+ "revisionName": "testcontainerApp0-ab1234",
+ "label": "production"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ],
+ "stickySessions": {
+ "affinity": "sticky"
+ }
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10,
+ "service": {
+ "type": "redis"
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v1",
+ "name": "testcontainerApp0",
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "custom": {
+ "type": "http",
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ },
+ "serviceBinds": [
+ {
+ "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service",
+ "name": "service"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerApp0-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my--other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ]
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json
new file mode 100644
index 000000000000..31a2bf5629c8
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json
@@ -0,0 +1,123 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testWorkerApp0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerApp0-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my--other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ]
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json
new file mode 100644
index 000000000000..31a2bf5629c8
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json
@@ -0,0 +1,123 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testWorkerApp0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
+ "name": "testcontainerApp0",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "workloadProfileName": "My-GP-01",
+ "latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerApp0-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "transport": "auto",
+ "customDomains": [
+ {
+ "name": "www.my-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
+ },
+ {
+ "name": "www.my--other-name.com",
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
+ }
+ ],
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerApp0-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerApp0-ab4321",
+ "label": "staging"
+ }
+ ],
+ "ipSecurityRestrictions": [
+ {
+ "name": "Allow work IP A subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/32",
+ "action": "Allow"
+ },
+ {
+ "name": "Allow work IP B subnet",
+ "description": "Allowing all IP's within the subnet below to access containerapp",
+ "ipAddressRange": "192.168.1.1/8",
+ "action": "Allow"
+ }
+ ]
+ },
+ "dapr": {
+ "enabled": true,
+ "appPort": 3000,
+ "appProtocol": "http",
+ "httpReadBufferSize": 30,
+ "httpMaxRequestSize": 10,
+ "logLevel": "debug",
+ "enableApiLogging": true
+ },
+ "maxInactiveRevisions": 10
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerApp0:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
new file mode 100644
index 000000000000..ab7834e3fc3b
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
@@ -0,0 +1,201 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerAppTcp",
+ "api-version": "2023-04-01-preview",
+ "containerAppEnvelope": {
+ "location": "East US",
+ "properties": {
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "ingress": {
+ "external": true,
+ "targetPort": 3000,
+ "exposedPort": 4000,
+ "transport": "tcp",
+ "traffic": [
+ {
+ "weight": 100,
+ "revisionName": "testcontainerAppTcp-ab1234"
+ }
+ ]
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppTcp:v1",
+ "name": "testcontainerAppTcp",
+ "probes": [
+ {
+ "type": "Liveness",
+ "tcpSocket": {
+ "port": 8080
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "tcpscalingrule",
+ "tcp": {
+ "metadata": {
+ "concurrentConnections": "50"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerAppTcp",
+ "name": "testcontainerAppTcp",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "latestReadyRevisionName": "testcontainerAppTcp-pjxhsye",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerAppTcp.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "exposedPort": 4000,
+ "transport": "tcp",
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerAppTcp-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerAppTcp-ab4321"
+ }
+ ]
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppTcp:v4",
+ "name": "testcontainerAppTcp",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "tcpSocket": {
+ "port": 8080
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "tcpscalingrule",
+ "tcp": {
+ "metadata": {
+ "concurrentConnections": "50"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "201": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerAppTcp",
+ "name": "testcontainerAppTcp",
+ "type": "Microsoft.App/containerApps",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InProgress",
+ "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "configuration": {
+ "ingress": {
+ "fqdn": "testcontainerAppTcp.demokube-t24clv0g.eastus.containerApps.k4apps.io",
+ "external": true,
+ "targetPort": 3000,
+ "exposedPort": 4000,
+ "transport": "tcp",
+ "traffic": [
+ {
+ "weight": 80,
+ "revisionName": "testcontainerAppTcp-ab1234"
+ },
+ {
+ "weight": 20,
+ "revisionName": "testcontainerAppTcp-ab4321"
+ }
+ ]
+ }
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppTcp:v4",
+ "name": "testcontainerAppTcp",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "tcpSocket": {
+ "port": 8080
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "tcpscalingrule",
+ "tcp": {
+ "metadata": {
+ "concurrentConnections": "50"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
new file mode 100644
index 000000000000..e455f6531726
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
@@ -0,0 +1,78 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview",
+ "daprComponentEnvelope": {
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secretStoreComponent": "my-secret-store",
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/managedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secretStoreComponent": "my-secret-store",
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
new file mode 100644
index 000000000000..67b911bf3e8c
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
@@ -0,0 +1,87 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview",
+ "daprComponentEnvelope": {
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey",
+ "value": "keyvalue"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/managedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json
new file mode 100644
index 000000000000..515704ed8704
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
new file mode 100644
index 000000000000..ebe7c5475ff8
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/managedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secretStoreComponent": "my-secret-store",
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json
new file mode 100644
index 000000000000..47d53e5c33e9
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/managedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json
new file mode 100644
index 000000000000..d6654f38fdcb
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json
@@ -0,0 +1,122 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "myenvironment",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/reddog",
+ "name": "reddog",
+ "type": "Microsoft.App/managedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secrets": [
+ {
+ "name": "masterkey"
+ }
+ ],
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ },
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/vaultdog",
+ "name": "vaultdog",
+ "type": "Microsoft.App/managedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secretStoreComponent": "my-secret-store",
+ "metadata": [
+ {
+ "name": "url",
+ "value": ""
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ },
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/vaultdog",
+ "name": "vaultdog",
+ "type": "Microsoft.App/managedEnvironments/daprcomponents",
+ "properties": {
+ "componentType": "state.azure.cosmosdb",
+ "version": "v1",
+ "ignoreErrors": false,
+ "initTimeout": "50s",
+ "secretStoreComponent": "my-secret-store",
+ "metadata": [
+ {
+ "name": "url",
+ "secretRef": "cosmosdb/url"
+ },
+ {
+ "name": "database",
+ "value": "itemsDB"
+ },
+ {
+ "name": "collection",
+ "value": "items"
+ },
+ {
+ "name": "masterkey",
+ "secretRef": "cosmosdb/masterkey"
+ }
+ ],
+ "scopes": [
+ "container-app-1",
+ "container-app-2"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json
new file mode 100644
index 000000000000..03dad7b7c786
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "myenvironment",
+ "componentName": "reddog",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "name": "secret1"
+ },
+ {
+ "name": "secret2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json
new file mode 100644
index 000000000000..4a791ce0cf8e
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json
@@ -0,0 +1,207 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "api-version": "2023-04-01-preview",
+ "JobEnvelope": {
+ "location": "East US",
+ "properties": {
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v1",
+ "name": "testcontainerAppsJob0",
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 5,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InProgress",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ },
+ "201": {
+ "headers": {
+ "Location": "location"
+ },
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InProgress",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json
new file mode 100644
index 000000000000..46aa4a9a8f82
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json
@@ -0,0 +1,199 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "api-version": "2023-04-01-preview",
+ "JobEnvelope": {
+ "location": "East US",
+ "properties": {
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "eventTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4,
+ "scale": {
+ "pollingInterval": 40,
+ "minExecutions": 1,
+ "maxExecutions": 5,
+ "rules": [
+ {
+ "name": "servicebuscalingrule",
+ "type": "azure-servicebus",
+ "metadata": {
+ "topicName": "my-topic"
+ }
+ }
+ ]
+ }
+ },
+ "triggerType": "Event"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v1",
+ "name": "testcontainerAppsJob0"
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InProgress",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "eventTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4,
+ "scale": {
+ "pollingInterval": 20,
+ "minExecutions": 1,
+ "maxExecutions": 5,
+ "rules": [
+ {
+ "name": "githubscalingrule",
+ "type": "github-runner",
+ "metadata": {
+ "githubAPIURL": "https://api.github.com"
+ }
+ }
+ ]
+ }
+ },
+ "triggerType": "Event"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ },
+ "201": {
+ "headers": {
+ "Location": "location"
+ },
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InProgress",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "eventTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4,
+ "scale": {
+ "minExecutions": 1,
+ "maxExecutions": 5,
+ "pollingInterval": 20,
+ "rules": [
+ {
+ "name": "servicebuscalingrule",
+ "type": "azure-servicebus",
+ "metadata": {
+ "queueName": "my-queue",
+ "messageCount": "50"
+ }
+ }
+ ]
+ }
+ },
+ "triggerType": "Event"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ },
+ "eventStreamEndpoint": "testEndpoint"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json
new file mode 100644
index 000000000000..fb0703520f72
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testWorkerContainerAppsJob0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/jobs/testWorkerContainerAppsJob0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json
new file mode 100644
index 000000000000..996574bb0da3
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "jobExecutionName": "jobExecution1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "name": "jobExecution1",
+ "status": "Running",
+ "startTime": "2023-02-13T20:37:30+00:00",
+ "endTime": "2023-02-13T20:47:30+00:00",
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json
new file mode 100644
index 000000000000..a1d9f125a973
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "name": "testcontainerAppJob-27944454",
+ "status": "Running",
+ "startTime": "2023-02-13T20:37:30+00:00",
+ "endTime": "2023-02-13T20:47:30+00:00",
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json
new file mode 100644
index 000000000000..deb3e5258bb0
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json
new file mode 100644
index 000000000000..f801db1f68e7
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "name": "secret1"
+ },
+ {
+ "name": "secret2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json
new file mode 100644
index 000000000000..ae8b9d3fed36
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json
@@ -0,0 +1,114 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "api-version": "2023-04-01-preview",
+ "JobEnvelope": {
+ "properties": {
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v1",
+ "name": "testcontainerAppsJob0",
+ "probes": [
+ {
+ "type": "Liveness",
+ "httpGet": {
+ "path": "/health",
+ "port": 8080,
+ "httpHeaders": [
+ {
+ "name": "Custom-Header",
+ "value": "Awesome"
+ }
+ ]
+ },
+ "initialDelaySeconds": 3,
+ "periodSeconds": 3
+ }
+ ]
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappsjobOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ }
+ },
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json
new file mode 100644
index 000000000000..9b733831a8e0
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ },
+ "command": [
+ "/bin/sh"
+ ],
+ "args": [
+ "-c",
+ "while true; do echo hello; sleep 10;done"
+ ]
+ }
+ ]
+ },
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "name": "testcontainerAppsJob0-pjxhsye",
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/{containerAppsJobName}/executions/{jobExecutionName}"
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "location"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json
new file mode 100644
index 000000000000..1c5d6d96f5ab
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "jobExecutionName": "jobExecution1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "Location": "location"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json
new file mode 100644
index 000000000000..0762042597b2
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "jobName": "testcontainerAppsJob0",
+ "jobExecutionName": {
+ "value": [
+ {
+ "name": "jobExecution-27944453"
+ },
+ {
+ "name": "jobExecution-27944452"
+ },
+ {
+ "name": "jobExecution-27944451"
+ }
+ ]
+ },
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "name": "jobExecution-27944453",
+ "status": "Stopped",
+ "startTime": "2023-02-13T20:37:30+00:00",
+ "endTime": "2023-02-13T20:47:30+00:00"
+ },
+ {
+ "name": "jobExecution-27944452",
+ "status": "Stopped",
+ "startTime": "2023-02-13T20:37:30+00:00",
+ "endTime": "2023-02-13T20:47:30+00:00"
+ },
+ {
+ "name": "jobExecution-27944453",
+ "status": "Failed",
+ "startTime": "2023-02-13T20:37:30+00:00",
+ "endTime": "2023-02-13T20:47:30+00:00"
+ }
+ ],
+ "nextLink": null
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "location"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json
new file mode 100644
index 000000000000..ae6a5a6dccb8
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json
@@ -0,0 +1,100 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob1",
+ "name": "testcontainerAppsJob1",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "scheduleTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "cronExpression": "* * * * 5",
+ "parallelism": 4
+ },
+ "triggerType": "Scheduled"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob1:v4",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testinitcontainerAppsJob1:v4",
+ "name": "testinitcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json
new file mode 100644
index 000000000000..bc9eebd85b25
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json
@@ -0,0 +1,99 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0",
+ "name": "testcontainerAppsJob0",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "manualTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "parallelism": 4
+ },
+ "triggerType": "Manual"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob0:v4",
+ "name": "testinitcontainerAppsJob0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob1",
+ "name": "testcontainerAppsJob1",
+ "type": "Microsoft.App/jobs",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "configuration": {
+ "replicaTimeout": 10,
+ "replicaRetryLimit": 10,
+ "scheduleTriggerConfig": {
+ "replicaCompletionCount": 1,
+ "cronExpression": "* * * * 5",
+ "parallelism": 5
+ },
+ "triggerType": "Scheduled"
+ },
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerAppsJob1:v4",
+ "name": "testcontainerAppsJob1",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "initContainers": [
+ {
+ "image": "repo/testcontainerAppsJob1:v4",
+ "name": "testinitcontainerAppsJob1",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
new file mode 100644
index 000000000000..5440371438e3
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "managedCertificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview",
+ "managedCertificateEnvelope": {
+ "location": "East US",
+ "properties": {
+ "subjectName": "my-subject-name.company.country.net",
+ "domainControlValidation": "CNAME"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/managedCertificates/certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/managedCertificates",
+ "location": "East US",
+ "properties": {
+ "subjectName": "CN=my-subject-name.company.country.net",
+ "provisioningState": "Succeeded",
+ "domainControlValidation": "CNAME"
+ }
+ }
+ },
+ "201": {
+ "headers": {
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/locations/eastus/managedCertificateOperationStatuses/dc27c9cd-370f-4623-95d4-827b6dc4120a?api-version=2022-06-01-preview&azureAsyncOperation=true"
+ },
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/managedCertificates/certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/managedCertificates",
+ "location": "East US",
+ "properties": {
+ "subjectName": "CN=my-subject-name.company.country.net",
+ "provisioningState": "Pending",
+ "domainControlValidation": "CNAME"
+ }
+ }
+ },
+ "400": {
+ "code": "ManagedCertNoUpdate",
+ "message": "Properties of managed certificates cannot be updated. Please delete the current resource and retry or use a different resource id."
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json
new file mode 100644
index 000000000000..1ff0d6db04ae
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "managedCertificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json
new file mode 100644
index 000000000000..b89e42a5c62d
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "managedCertificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/managedCertificates/certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/managedCertificates",
+ "location": "East US",
+ "properties": {
+ "subjectName": "CN=my-subject-name.company.country.net",
+ "provisioningState": "Succeeded",
+ "domainControlValidation": "CNAME"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
new file mode 100644
index 000000000000..8eba8fe21c5d
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/managedCertificates/certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/managedCertificates",
+ "location": "East US",
+ "properties": {
+ "subjectName": "CN=my-subject-name.company.country.net",
+ "provisioningState": "Succeeded",
+ "domainControlValidation": "CNAME"
+ }
+ },
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/managedCertificates/certificate-firendly-name-root",
+ "type": "Microsoft.App/ManagedEnvironments/managedCertificates",
+ "location": "East US",
+ "properties": {
+ "subjectName": "CN=company.country.net",
+ "provisioningState": "Succeeded",
+ "domainControlValidation": "HTTP"
+ }
+ },
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/managedCertificates/certificate-firendly-name-txt",
+ "type": "Microsoft.App/ManagedEnvironments/managedCertificates",
+ "location": "East US",
+ "properties": {
+ "subjectName": "CN=txt.company.country.net",
+ "provisioningState": "Succeeded",
+ "domainControlValidation": "TXT"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json
new file mode 100644
index 000000000000..d51501dc4645
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "managedCertificateName": "certificate-firendly-name",
+ "api-version": "2023-04-01-preview",
+ "managedCertificateEnvelope": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/managedCertificates/certificate-firendly-name",
+ "type": "Microsoft.App/ManagedEnvironments/managedCertificates",
+ "location": "East US",
+ "properties": {
+ "subjectName": "CN=my-subject-name.company.country.net",
+ "provisioningState": "Succeeded",
+ "domainControlValidation": "CNAME"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
new file mode 100644
index 000000000000..ba03799d1da3
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
@@ -0,0 +1,68 @@
+{
+ "parameters": {
+ "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6",
+ "resourceGroupName": "mikono-workerapp-test-rg",
+ "environmentName": "mikonokubeenv",
+ "detectorName": "ManagedEnvAvailabilityMetrics",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics",
+ "name": "ManagedEnvAvailabilityMetrics",
+ "type": "Microsoft.App/managedEnvironments/detectors",
+ "properties": {
+ "metadata": {
+ "id": "ManagedEnvAvailabilityMetrics",
+ "name": "Managed Env Netowrk Inbound and Outbound",
+ "description": "This detector shows the Managed Environment Network Inbound and Outbound.",
+ "author": "",
+ "category": "Availability and Performance",
+ "supportTopicList": [],
+ "type": "Detector",
+ "score": 0
+ },
+ "dataset": [
+ {
+ "table": {
+ "tableName": "",
+ "columns": [
+ {
+ "columnName": "TimeStamp",
+ "dataType": "DateTime"
+ },
+ {
+ "columnName": "Metric",
+ "dataType": "String"
+ },
+ {
+ "columnName": "Average",
+ "dataType": "Double"
+ }
+ ],
+ "rows": [
+ [
+ "2022-03-15T21:35:00",
+ "RxBytes",
+ 0
+ ]
+ ]
+ },
+ "renderingProperties": {
+ "type": 8,
+ "title": "Managed Environment Network Inbound ",
+ "description": "",
+ "isVisible": true
+ }
+ }
+ ],
+ "status": {
+ "statusId": 3
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
new file mode 100644
index 000000000000..8d68188ae16e
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6",
+ "resourceGroupName": "mikono-workerapp-test-rg",
+ "environmentName": "mikonokubeenv",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/f07f3711-b45e-40fe-a941-4e6d93f851e6/resourceGroups/mikono-workerapp-test-rg/providers/Microsoft.App/managedEnvironments/mikonokubeenv/detectors/ManagedEnvAvailabilityMetrics",
+ "name": "ManagedEnvAvailabilityMetrics",
+ "type": "Microsoft.App/managedEnvironments/detectors",
+ "properties": {
+ "metadata": {
+ "id": "ManagedEnvAvailabilityMetrics",
+ "name": "Availability Metrics for Managed Environments",
+ "author": "",
+ "category": "Availability and Performance",
+ "supportTopicList": [],
+ "type": "Analysis",
+ "score": 0
+ },
+ "dataset": [],
+ "status": {
+ "statusId": 4
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
new file mode 100644
index 000000000000..d75b641bb0a7
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "managedEnv",
+ "storageName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview",
+ "storageEnvelope": {
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "accountKey": "key",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/managedEnvironments/storages",
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
new file mode 100644
index 000000000000..396ab3c01275
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "managedEnv",
+ "storageName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json
new file mode 100644
index 000000000000..a6522e8f5fc9
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "managedEnv",
+ "storageName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/managedEnvironments/storages",
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json
new file mode 100644
index 000000000000..f3a2549f8054
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "managedEnv",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/managedEnvironments/storages",
+ "properties": {
+ "azureFile": {
+ "accountName": "account1",
+ "shareName": "share1",
+ "accessMode": "ReadOnly"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
new file mode 100644
index 000000000000..fba64cf69b24
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
@@ -0,0 +1,182 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "api-version": "2023-04-01-preview",
+ "environmentEnvelope": {
+ "location": "East US",
+ "properties": {
+ "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/",
+ "appLogsConfiguration": {
+ "logAnalyticsConfiguration": {
+ "customerId": "string",
+ "sharedKey": "string"
+ }
+ },
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "dnsSuffix": "www.my-name.com",
+ "certificateValue": "Y2VydA==",
+ "certificatePassword": "1234"
+ },
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "peerAuthentication": {
+ "mtls": {
+ "enabled": true
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv",
+ "name": "testcontainerenv",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "testcontainerenv.k4apps.io",
+ "staticIp": "1.2.3.4",
+ "appLogsConfiguration": {
+ "logAnalyticsConfiguration": {
+ "customerId": "string"
+ }
+ },
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "capp-svc-testcontainerenv-eastus",
+ "peerAuthentication": {
+ "mtls": {
+ "enabled": true
+ }
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv",
+ "name": "testcontainerenv",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InitializationInProgress",
+ "deploymentErrors": null,
+ "defaultDomain": "testcontainerenv.k4apps.io",
+ "staticIp": "1.2.3.4",
+ "appLogsConfiguration": {
+ "logAnalyticsConfiguration": {
+ "customerId": "string"
+ }
+ },
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "capp-svc-testcontainerenv-eastus",
+ "peerAuthentication": {
+ "mtls": {
+ "enabled": true
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
new file mode 100644
index 000000000000..550c10c505fa
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
@@ -0,0 +1,168 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "api-version": "2023-04-01-preview",
+ "environmentEnvelope": {
+ "location": "East US",
+ "properties": {
+ "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/",
+ "appLogsConfiguration": {
+ "logAnalyticsConfiguration": {
+ "customerId": "string",
+ "sharedKey": "string"
+ }
+ },
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "dnsSuffix": "www.my-name.com",
+ "certificateValue": "Y2VydA==",
+ "certificatePassword": "1234"
+ },
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "myInfrastructureRgName"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv",
+ "name": "testcontainerenv",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "testcontainerenv.k4apps.io",
+ "staticIp": "1.2.3.4",
+ "appLogsConfiguration": {
+ "logAnalyticsConfiguration": {
+ "customerId": "string"
+ }
+ },
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "myInfrastructureRgName"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv",
+ "name": "testcontainerenv",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "East US",
+ "properties": {
+ "provisioningState": "InitializationInProgress",
+ "deploymentErrors": null,
+ "defaultDomain": "testcontainerenv.k4apps.io",
+ "staticIp": "1.2.3.4",
+ "appLogsConfiguration": {
+ "logAnalyticsConfiguration": {
+ "customerId": "string"
+ }
+ },
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "myInfrastructureRgName"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json
new file mode 100644
index 000000000000..67b2277e0edf
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "examplekenv",
+ "api-version": "2023-04-01-preview",
+ "location": "East US"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/localtions/eastus/operationResults/00000"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
new file mode 100644
index 000000000000..ce7f8c50eb93
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "jlaw-demo1.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "kedaConfiguration": {
+ "version": "2.8.1"
+ },
+ "daprConfiguration": {
+ "version": "1.9"
+ },
+ "infrastructureResourceGroup": "capp-svc-jlaw-demo1-northcentralus",
+ "peerAuthentication": {
+ "mtls": {
+ "enabled": true
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json
new file mode 100644
index 000000000000..cc11191be4eb
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "rg",
+ "environmentName": "testenv",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/testenv",
+ "name": "testenv",
+ "type": "Microsoft.App/environments/accesstoken",
+ "location": "East US",
+ "properties": {
+ "token": "testToken",
+ "expires": "2022-07-14T19:22:50.3080223Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
new file mode 100644
index 000000000000..b053fcc92c60
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
@@ -0,0 +1,93 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "jlaw-demo1.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "appLogsConfiguration": null,
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "capp-svc-jlaw-demo1-northcentralus"
+ }
+ },
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/demo1",
+ "name": "demo1",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "demo1.k4apps.io",
+ "staticIp": "52.142.21.61",
+ "appLogsConfiguration": null,
+ "zoneRedundant": true,
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name2.com",
+ "subjectName": "CN=www.my-name2.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "infrastructureResourceGroup": "capp-svc-demo1-northcentralus"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json
new file mode 100644
index 000000000000..cdbd28ed28bb
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json
@@ -0,0 +1,92 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "jlaw-demo1.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "appLogsConfiguration": null,
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "capp-svc-jlaw-demo1-northcentralus"
+ }
+ },
+ {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.App/managedEnvironments/demo1",
+ "name": "demo1",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "demo1.k4apps.io",
+ "staticIp": "52.142.21.61",
+ "appLogsConfiguration": null,
+ "zoneRedundant": true,
+ "vnetConfiguration": {
+ "infrastructureSubnetId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/RGName/providers/Microsoft.Network/virtualNetworks/VNetName/subnets/subnetName1"
+ },
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name2.com",
+ "subjectName": "CN=www.my-name2.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "infrastructureResourceGroup": "capp-svc-demo1-northcentralus"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
new file mode 100644
index 000000000000..afc7fef396f7
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
+ "resourceGroupName": "examplerg",
+ "environmentName": "jlaw-demo1",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/workloadProfileStates/GP1",
+ "name": "GP1",
+ "type": "/providers/Microsoft.App/workloadProfileStates",
+ "properties": {
+ "minimumCount": 3,
+ "maximumCount": 10,
+ "currentCount": 3
+ }
+ },
+ {
+ "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/workloadProfileStates/MO3",
+ "name": "MO3",
+ "type": "/providers/Microsoft.App/workloadProfileStates",
+ "properties": {
+ "minimumCount": 0,
+ "maximumCount": 2,
+ "currentCount": 0
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json
new file mode 100644
index 000000000000..d268ac4c7a0a
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "examplerg",
+ "environmentName": "testcontainerenv",
+ "api-version": "2023-04-01-preview",
+ "environmentEnvelope": {
+ "location": "East US",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1",
+ "name": "jlaw-demo1",
+ "type": "Microsoft.App/managedEnvironments",
+ "location": "North Central US",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "deploymentErrors": null,
+ "defaultDomain": "jlaw-demo1.k4apps.io",
+ "staticIp": "20.42.33.145",
+ "zoneRedundant": true,
+ "customDomainConfiguration": {
+ "customDomainVerificationId": "custom domain verification id",
+ "dnsSuffix": "www.my-name.com",
+ "subjectName": "CN=www.my-name.com",
+ "expirationDate": "2022-11-06T04:00:00Z",
+ "thumbprint": "CERTIFICATE_THUMBPRINT"
+ },
+ "eventStreamEndpoint": "testEndpoint",
+ "workloadProfiles": [
+ {
+ "name": "My-GP-01",
+ "workloadProfileType": "GeneralPurpose",
+ "minimumCount": 3,
+ "maximumCount": 12
+ },
+ {
+ "name": "My-MO-01",
+ "workloadProfileType": "MemoryOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-CO-01",
+ "workloadProfileType": "ComputeOptimized",
+ "minimumCount": 3,
+ "maximumCount": 6
+ },
+ {
+ "name": "My-consumption-01",
+ "workloadProfileType": "Consumption"
+ }
+ ],
+ "infrastructureResourceGroup": "capp-svc-jlaw-demo1-northcentralus"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json
new file mode 100644
index 000000000000..71c7433e6b09
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.App/containerApps/Read",
+ "display": {
+ "provider": "Microsoft Apps",
+ "resource": "Container App",
+ "operation": "Get Container App",
+ "description": "Get the properties of a Container App"
+ },
+ "origin": "user,system"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json
new file mode 100644
index 000000000000..3d27a409e4c1
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "myapp",
+ "revisionName": "myapp--0wlqy09",
+ "replicaName": "myapp--0wlqy09-5d9774cff-5wnd8",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8",
+ "name": "myapp--0wlqy09-5d9774cff-5wnd8",
+ "type": "Microsoft.Web/containerapps/revisions/replicas",
+ "properties": {
+ "createdTime": "2022-01-25T19:42:45Z",
+ "runningState": "Running",
+ "runningStateDetails": "testDetail",
+ "containers": [
+ {
+ "name": "hello92",
+ "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54",
+ "ready": true,
+ "started": true,
+ "restartCount": 0,
+ "runningState": "Running",
+ "runningStateDetails": "testDetail",
+ "logStreamEndpoint": "testLogStreamEndpoint",
+ "execEndpoint": "testExecEndpoint"
+ }
+ ],
+ "initContainers": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json
new file mode 100644
index 000000000000..262f453932c2
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "myapp",
+ "revisionName": "myapp--0wlqy09",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8",
+ "name": "myapp--0wlqy09-5d9774cff-5wnd8",
+ "type": "Microsoft.Web/containerapps/revisions/replicas",
+ "properties": {
+ "createdTime": "2022-01-25T19:42:45Z",
+ "runningState": "Running",
+ "runningStateDetails": "testDetail",
+ "containers": [
+ {
+ "name": "hello92",
+ "containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54",
+ "ready": true,
+ "started": true,
+ "restartCount": 0,
+ "runningState": "Running",
+ "runningStateDetails": "testDetail",
+ "logStreamEndpoint": "testLogStreamEndpoint",
+ "execEndpoint": "testExecEndpoint"
+ }
+ ],
+ "initContainers": []
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json
new file mode 100644
index 000000000000..a4c750149615
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "revisionName": "testcontainerApp0-pjxhsye",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json
new file mode 100644
index 000000000000..a4c750149615
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "revisionName": "testcontainerApp0-pjxhsye",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
new file mode 100644
index 000000000000..dac7f425ad6f
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "revisionName": "testcontainerApp0-pjxhsye",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppcontainerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye",
+ "name": "testcontainerApp0-pjxhsye",
+ "type": "Microsoft.App/containerApps/revisions",
+ "properties": {
+ "createdTime": "2021-05-24T21:24:22+00:00",
+ "lastActiveTime": "2021-05-24T21:24:22+00:00",
+ "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io",
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v2",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "trafficWeight": 80,
+ "active": true,
+ "replicas": 1,
+ "runningState": "Running"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
new file mode 100644
index 000000000000..be4f720c3397
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testcontainerApp0",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye",
+ "name": "testcontainerApp0-pjxhsye",
+ "type": "Microsoft.App/containerApps/revisions",
+ "properties": {
+ "createdTime": "2021-05-24T21:24:22+00:00",
+ "lastActiveTime": "2021-05-24T21:24:22+00:00",
+ "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io",
+ "template": {
+ "containers": [
+ {
+ "image": "repo/testcontainerApp0:v2",
+ "name": "testcontainerApp0",
+ "resources": {
+ "cpu": 0.2,
+ "memory": "100Mi"
+ }
+ }
+ ],
+ "scale": {
+ "minReplicas": 1,
+ "maxReplicas": 5,
+ "rules": [
+ {
+ "name": "httpscalingrule",
+ "http": {
+ "metadata": {
+ "concurrentRequests": "50"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "trafficWeight": 80,
+ "active": true,
+ "replicas": 1
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json
new file mode 100644
index 000000000000..966e453f4d9b
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "containerAppName": "testStaticSite0",
+ "revisionName": "testcontainerApp0-pjxhsye",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json
new file mode 100644
index 000000000000..26c825652a4d
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "sourceControlName": "current",
+ "api-version": "2023-04-01-preview",
+ "sourceControlEnvelope": {
+ "properties": {
+ "repoUrl": "https://github.com/xwang971/ghatest",
+ "branch": "master",
+ "githubActionConfiguration": {
+ "registryInfo": {
+ "registryUrl": "test-registry.azurecr.io",
+ "registryUserName": "test-registry",
+ "registryPassword": ""
+ },
+ "azureCredentials": {
+ "clientId": "",
+ "clientSecret": "",
+ "tenantId": "",
+ "kind": "feaderated"
+ },
+ "contextPath": "./",
+ "image": "image/tag",
+ "githubPersonalAccessToken": "test"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current",
+ "name": "current",
+ "type": "Microsoft.App/containerapps/sourcecontrols",
+ "properties": {
+ "operationState": "InProgress",
+ "repoUrl": "https://github.com/xwang971/ghatest",
+ "branch": "master",
+ "githubActionConfiguration": {
+ "registryInfo": {
+ "registryUrl": "test-registry.azurecr.io",
+ "registryUserName": "testreg"
+ },
+ "contextPath": "./",
+ "image": "image/tag"
+ }
+ }
+ }
+ },
+ "201": {
+ "headers": {
+ "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01"
+ },
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current",
+ "name": "current",
+ "type": "Microsoft.App/containerapps/sourcecontrols",
+ "properties": {
+ "operationState": "InProgress",
+ "repoUrl": "https://github.com/xwang971/ghatest",
+ "branch": "master",
+ "githubActionConfiguration": {
+ "registryInfo": {
+ "registryUrl": "test-registry.azurecr.io",
+ "registryUserName": "test-registry"
+ },
+ "contextPath": "./",
+ "image": "image/tag"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json
new file mode 100644
index 000000000000..a52809ddf743
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "sourceControlName": "current",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/14a787ee-c65f-462d-8a8b-897f69a2ab4f?api-version=2021-03-01"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json
new file mode 100644
index 000000000000..a2c51f935069
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "sourceControlName": "current",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current",
+ "name": "current",
+ "type": "Microsoft.App/containerapps/sourcecontrols",
+ "properties": {
+ "repoUrl": "https://github.com/xwang971/ghatest",
+ "branch": "master",
+ "githubActionConfiguration": {
+ "registryInfo": {
+ "registryUrl": "xwang971reg.azurecr.io",
+ "registryUserName": "xwang971reg"
+ },
+ "contextPath": "./",
+ "image": "image/tag"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json
new file mode 100644
index 000000000000..f23dab8e9972
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
+ "resourceGroupName": "workerapps-rg-xj",
+ "containerAppName": "testcanadacentral",
+ "api-version": "2023-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/testcanadacentral/sourcecontrols/current",
+ "name": "current",
+ "type": "Microsoft.App/containerapps/sourcecontrols",
+ "properties": {
+ "repoUrl": "https://github.com/xwang971/ghatest",
+ "branch": "master",
+ "githubActionConfiguration": {
+ "registryInfo": {
+ "registryUrl": "xwang971reg.azurecr.io",
+ "registryUserName": "xwang971reg"
+ },
+ "contextPath": "./",
+ "image": "image/tag"
+ }
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
From badd4923fe8ba8cb701ad27701da9339f9edb6e8 Mon Sep 17 00:00:00 2001
From: Paul Dorsch <107068277+pauld-msft@users.noreply.github.com>
Date: Wed, 31 May 2023 10:51:03 -0400
Subject: [PATCH 02/15] Updates readme
---
specification/app/resource-manager/readme.md | 29 ++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md
index 797889fd9ce8..c2dbb6d3017e 100644
--- a/specification/app/resource-manager/readme.md
+++ b/specification/app/resource-manager/readme.md
@@ -26,15 +26,39 @@ These are the global settings for the app.
``` yaml
openapi-type: arm
-tag: package-preview-2023-04
+tag: package-preview-2023-05
```
+### Tag: package-preview-2023-05
+
+These settings apply only when `--tag=package-preview-2023-05` is specified on the command line.
+
+```yaml $(tag) == 'package-preview-2023-05'
+input-file:
+ - Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
+ - Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
+ - Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
+ - Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
+ - Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
+ - Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
+ - Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json
+ - Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json
+ - Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
+ - Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json
+ - Microsoft.App/preview/2023-05-02-preview/Diagnostics.json
+ - Microsoft.App/preview/2023-05-02-preview/Global.json
+ - Microsoft.App/preview/2023-05-02-preview/Jobs.json
+ - Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json
+ - Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
+ - Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
+ - Microsoft.App/preview/2023-05-02-preview/SourceControls.json
+```
### Tag: package-preview-2023-04
These settings apply only when `--tag=package-preview-2023-04` is specified on the command line.
-```yaml $(tag) == 'package-preview-2023-04'
+``` yaml $(tag) == 'package-preview-2023-04'
input-file:
- Microsoft.App/preview/2023-04-01-preview/AuthConfigs.json
- Microsoft.App/preview/2023-04-01-preview/AvailableWorkloadProfiles.json
@@ -54,6 +78,7 @@ input-file:
- Microsoft.App/preview/2023-04-01-preview/ManagedEnvironmentsStorages.json
- Microsoft.App/preview/2023-04-01-preview/SourceControls.json
```
+
### Tag: package-preview-2022-11
These settings apply only when `--tag=package-preview-2022-11` is specified on the command line.
From c0656d33b59cef85131bf2035dd0d31ae9089186 Mon Sep 17 00:00:00 2001
From: Paul Dorsch <107068277+pauld-msft@users.noreply.github.com>
Date: Wed, 31 May 2023 10:51:09 -0400
Subject: [PATCH 03/15] Updates API version in new specs and examples
---
.../Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json | 2 +-
.../preview/2023-05-02-preview/AvailableWorkloadProfiles.json | 2 +-
.../preview/2023-05-02-preview/BillingMeters.json | 2 +-
.../preview/2023-05-02-preview/CommonDefinitions.json | 2 +-
.../preview/2023-05-02-preview/ConnectedEnvironments.json | 2 +-
.../2023-05-02-preview/ConnectedEnvironmentsCertificates.json | 2 +-
.../ConnectedEnvironmentsDaprComponents.json | 2 +-
.../2023-05-02-preview/ConnectedEnvironmentsStorages.json | 2 +-
.../preview/2023-05-02-preview/ContainerApps.json | 2 +-
.../preview/2023-05-02-preview/ContainerAppsRevisions.json | 2 +-
.../Microsoft.App/preview/2023-05-02-preview/Diagnostics.json | 2 +-
.../Microsoft.App/preview/2023-05-02-preview/Global.json | 2 +-
.../Microsoft.App/preview/2023-05-02-preview/Jobs.json | 2 +-
.../preview/2023-05-02-preview/ManagedEnvironments.json | 2 +-
.../2023-05-02-preview/ManagedEnvironmentsDaprComponents.json | 2 +-
.../2023-05-02-preview/ManagedEnvironmentsStorages.json | 2 +-
.../preview/2023-05-02-preview/SourceControls.json | 2 +-
.../examples/AuthConfigs_CreateOrUpdate.json | 2 +-
.../2023-05-02-preview/examples/AuthConfigs_Delete.json | 2 +-
.../preview/2023-05-02-preview/examples/AuthConfigs_Get.json | 2 +-
.../examples/AuthConfigs_ListByContainer.json | 2 +-
.../examples/AvailableWorkloadProfiles_Get.json | 2 +-
.../2023-05-02-preview/examples/BillingMeters_Get.json | 2 +-
.../examples/Certificate_CreateOrUpdate.json | 2 +-
.../2023-05-02-preview/examples/Certificate_Delete.json | 2 +-
.../preview/2023-05-02-preview/examples/Certificate_Get.json | 2 +-
.../examples/Certificates_CheckNameAvailability.json | 2 +-
.../examples/Certificates_ListByManagedEnvironment.json | 2 +-
.../2023-05-02-preview/examples/Certificates_Patch.json | 2 +-
.../ConnectedEnvironmentsCertificate_CreateOrUpdate.json | 2 +-
.../examples/ConnectedEnvironmentsCertificate_Delete.json | 2 +-
.../examples/ConnectedEnvironmentsCertificate_Get.json | 2 +-
...nnectedEnvironmentsCertificates_CheckNameAvailability.json | 2 +-
...edEnvironmentsCertificates_ListByConnectedEnvironment.json | 2 +-
.../examples/ConnectedEnvironmentsCertificates_Patch.json | 2 +-
.../ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json | 2 +-
.../examples/ConnectedEnvironmentsDaprComponents_Delete.json | 2 +-
.../examples/ConnectedEnvironmentsDaprComponents_Get.json | 2 +-
.../examples/ConnectedEnvironmentsDaprComponents_List.json | 2 +-
.../ConnectedEnvironmentsDaprComponents_ListSecrets.json | 2 +-
.../ConnectedEnvironmentsStorages_CreateOrUpdate.json | 2 +-
.../examples/ConnectedEnvironmentsStorages_Delete.json | 2 +-
.../examples/ConnectedEnvironmentsStorages_Get.json | 2 +-
.../examples/ConnectedEnvironmentsStorages_List.json | 2 +-
.../examples/ConnectedEnvironments_CreateOrUpdate.json | 2 +-
.../examples/ConnectedEnvironments_Delete.json | 2 +-
.../examples/ConnectedEnvironments_Get.json | 2 +-
.../examples/ConnectedEnvironments_ListByResourceGroup.json | 2 +-
.../examples/ConnectedEnvironments_ListBySubscription.json | 2 +-
.../examples/ConnectedEnvironments_Patch.json | 2 +-
.../examples/ContainerAppsDiagnostics_Get.json | 2 +-
.../examples/ContainerAppsDiagnostics_List.json | 2 +-
.../examples/ContainerApps_CheckNameAvailability.json | 2 +-
.../examples/ContainerApps_CreateOrUpdate.json | 2 +-
.../2023-05-02-preview/examples/ContainerApps_Delete.json | 4 ++--
.../2023-05-02-preview/examples/ContainerApps_Get.json | 2 +-
.../examples/ContainerApps_GetAuthToken.json | 2 +-
.../examples/ContainerApps_ListByResourceGroup.json | 2 +-
.../examples/ContainerApps_ListBySubscription.json | 2 +-
.../examples/ContainerApps_ListCustomHostNameAnalysis.json | 2 +-
.../examples/ContainerApps_ListSecrets.json | 2 +-
.../examples/ContainerApps_ManagedBy_CreateOrUpdate.json | 2 +-
.../2023-05-02-preview/examples/ContainerApps_Patch.json | 4 ++--
.../2023-05-02-preview/examples/ContainerApps_Start.json | 4 ++--
.../2023-05-02-preview/examples/ContainerApps_Stop.json | 4 ++--
.../examples/ContainerApps_TcpApp_CreateOrUpdate.json | 2 +-
.../DaprComponents_CreateOrUpdate_SecretStoreComponent.json | 2 +-
.../examples/DaprComponents_CreateOrUpdate_Secrets.json | 2 +-
.../2023-05-02-preview/examples/DaprComponents_Delete.json | 2 +-
.../examples/DaprComponents_Get_SecretStoreComponent.json | 2 +-
.../examples/DaprComponents_Get_Secrets.json | 2 +-
.../2023-05-02-preview/examples/DaprComponents_List.json | 2 +-
.../examples/DaprComponents_ListSecrets.json | 2 +-
.../2023-05-02-preview/examples/Job_CreateorUpdate.json | 2 +-
.../examples/Job_CreateorUpdate_EventTrigger.json | 2 +-
.../preview/2023-05-02-preview/examples/Job_Delete.json | 4 ++--
.../2023-05-02-preview/examples/Job_Execution_Get.json | 2 +-
.../2023-05-02-preview/examples/Job_Executions_Get.json | 2 +-
.../preview/2023-05-02-preview/examples/Job_Get.json | 2 +-
.../preview/2023-05-02-preview/examples/Job_ListSecrets.json | 2 +-
.../preview/2023-05-02-preview/examples/Job_Patch.json | 4 ++--
.../preview/2023-05-02-preview/examples/Job_Start.json | 2 +-
.../2023-05-02-preview/examples/Job_Stop_Execution.json | 2 +-
.../2023-05-02-preview/examples/Job_Stop_Multiple.json | 2 +-
.../2023-05-02-preview/examples/Jobs_ListByResourceGroup.json | 2 +-
.../2023-05-02-preview/examples/Jobs_ListBySubscription.json | 2 +-
.../examples/ManagedCertificate_CreateOrUpdate.json | 2 +-
.../examples/ManagedCertificate_Delete.json | 2 +-
.../2023-05-02-preview/examples/ManagedCertificate_Get.json | 2 +-
.../ManagedCertificates_ListByManagedEnvironment.json | 2 +-
.../examples/ManagedCertificates_Patch.json | 2 +-
.../examples/ManagedEnvironmentDiagnostics_Get.json | 2 +-
.../examples/ManagedEnvironmentDiagnostics_List.json | 2 +-
.../examples/ManagedEnvironmentsStorages_CreateOrUpdate.json | 2 +-
.../examples/ManagedEnvironmentsStorages_Delete.json | 2 +-
.../examples/ManagedEnvironmentsStorages_Get.json | 2 +-
.../examples/ManagedEnvironmentsStorages_List.json | 2 +-
.../examples/ManagedEnvironments_CreateOrUpdate.json | 2 +-
...Environments_CustomInfrastructureResourceGroup_Create.json | 2 +-
.../examples/ManagedEnvironments_Delete.json | 2 +-
.../2023-05-02-preview/examples/ManagedEnvironments_Get.json | 2 +-
.../examples/ManagedEnvironments_GetAuthToken.json | 2 +-
.../examples/ManagedEnvironments_ListByResourceGroup.json | 2 +-
.../examples/ManagedEnvironments_ListBySubscription.json | 2 +-
.../ManagedEnvironments_ListWorkloadProfileStates.json | 2 +-
.../examples/ManagedEnvironments_Patch.json | 4 ++--
.../preview/2023-05-02-preview/examples/Operations_List.json | 2 +-
.../preview/2023-05-02-preview/examples/Replicas_Get.json | 2 +-
.../preview/2023-05-02-preview/examples/Replicas_List.json | 2 +-
.../2023-05-02-preview/examples/Revisions_Activate.json | 2 +-
.../2023-05-02-preview/examples/Revisions_Deactivate.json | 2 +-
.../preview/2023-05-02-preview/examples/Revisions_Get.json | 2 +-
.../preview/2023-05-02-preview/examples/Revisions_List.json | 2 +-
.../2023-05-02-preview/examples/Revisions_Restart.json | 2 +-
.../examples/SourceControls_CreateOrUpdate.json | 2 +-
.../2023-05-02-preview/examples/SourceControls_Delete.json | 2 +-
.../2023-05-02-preview/examples/SourceControls_Get.json | 2 +-
.../examples/SourceControls_ListByContainer.json | 2 +-
118 files changed, 125 insertions(+), 125 deletions(-)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
index 9100b4f4598e..c42714b274dd 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
index 391cf3904c6e..74d513fc7454 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
index 89d29c5ce5a1..a71eb3118d06 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
index 4d38ac3bd869..19214aad5669 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
index 17769c489333..58480cf7036b 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
index 00eaeeff6901..7e3eefd47dfd 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json
index 250021c0d6e7..da139b6bd140 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsDaprComponents.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json
index dbdc6b302ead..474d338ad414 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsStorages.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
index 35c9116c92a8..e0a83fc01aca 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json
index 08cdb87451f6..e91517b3c8d8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerAppsRevisions.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json
index 87429565f2e6..527bfba1d4cf 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Diagnostics.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json
index 6db6eaacd5bf..c2a65c260f7d 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Global.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
index 585c2dae46c3..5e68b18817cc 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json
index 43431fb883ad..9feebaa9e899 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironments.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
index 08e57326a95a..151ca5456993 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
index 11a19da00cce..e67334148aeb 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json
index ffaff5b55c8e..4e4391a81b8e 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/SourceControls.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "2023-04-01-preview",
+ "version": "2023-05-02-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
index aad673a71385..d47e2cab3eca 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
"authConfigName": "current",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"authConfigEnvelope": {
"properties": {
"platform": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json
index 5ecaef608715..9fa3eb0c19e2 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
"authConfigName": "current",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
index a3ad05b911f7..b63b31587bab 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
"authConfigName": "current",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
index e5fbdb92672f..689a1cc9d151 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
@@ -3,7 +3,7 @@
"subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json
index c51341567783..2dd6843dd7c8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AvailableWorkloadProfiles_Get.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "East US",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json
index 23c7e1fd3ec2..dd3a75a1a969 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/BillingMeters_Get.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "East US",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json
index 64a91ebc70b8..d122e24395bd 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"certificateEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json
index b47618034872..29d92b80d688 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json
index be4923760a98..20eaf6fe731e 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificate_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json
index 0351e2c6b358..3374ac2ce604 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_CheckNameAvailability.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json
index f4cd954b6576..459860e94571 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_ListByManagedEnvironment.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json
index acc17f6fed19..7d446baa7fda 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Certificates_Patch.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"certificateEnvelope": {
"tags": {
"tag1": "value1",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
index 57789d7907d0..3769aee94e62 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"certificateEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
index da85eb4eab7d..8f43b1e9b483 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
index f1eac161f42c..e5de8cd34878 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
index 52f1c02b4f9f..136028492c28 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testcontainerenv",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
index 6e8641beee62..3d0607ec7e9f 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testcontainerenv",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
index fb0abe91ef5c..8bdc275ff992 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testcontainerenv",
"certificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"certificateEnvelope": {
"tags": {
"tag1": "value1",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
index 34575f3dc1bc..79a8264a5488 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"daprComponentEnvelope": {
"properties": {
"componentType": "state.azure.cosmosdb",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
index b7f119f9b8e7..3b022fa55d3c 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
index 445936e50a73..9790ccca0056 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
index f2cc2029955a..e84e27dabb41 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
@@ -3,7 +3,7 @@
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "myenvironment",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
index 1c847fd4ac47..827b91238ac8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
index 3fc82614f8bb..f9c9c266123c 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "env",
"storageName": "jlaw-demo1",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"storageEnvelope": {
"properties": {
"azureFile": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
index f882da6ea278..95e48437cbe3 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "env",
"storageName": "jlaw-demo1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
index ce017dbf56e9..53728488f1ca 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "env",
"storageName": "jlaw-demo1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json
index dc86a07a3c96..3ce6912b38e9 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironmentsStorages_List.json
@@ -3,7 +3,7 @@
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "managedEnv",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
index aedfe7ad9b8b..6a7d8808f220 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"kind": "kubernetes",
"location": "East US",
"extendedLocation": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json
index d15b6b0bf334..d635b230cfc9 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Delete.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "examplekenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"kind": "kubernetes",
"location": "East US",
"extendedLocation": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json
index fd3587f3b0c4..32653a99135c 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Get.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "examplekenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"kind": "kubernetes",
"location": "East US",
"extendedLocation": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
index 0a0863ea3e36..858f66ea7723 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
index 296c4b5e6cdf..7133b7d0ef76 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
@@ -1,7 +1,7 @@
{
"parameters": {
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json
index abc6a15748cb..16e663ad621b 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ConnectedEnvironments_Patch.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"connectedEnvironmentName": "testenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"location": "East US",
"environmentEnvelope": {
"tags": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json
index c7a6ec331047..724b4ca40b72 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "mikono-workerapp-test-rg",
"containerAppName": "mikono-capp-stage1",
"detectorName": "cappcontainerappnetworkIO",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json
index ad64da3e78f4..eefc0fe10faf 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerAppsDiagnostics_List.json
@@ -3,7 +3,7 @@
"subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6",
"resourceGroupName": "mikono-workerapp-test-rg",
"containerAppName": "mikono-capp-stage1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json
index d4e6d770acc3..a049badd0b28 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CheckNameAvailability.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
index 47de8a0d5c16..0e88ace4af7e 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"containerAppEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json
index 006901ddad42..7edde7029cbd 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Delete.json
@@ -3,13 +3,13 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testWorkerApp0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
- "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-05-02-preview"
}
},
"204": {}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
index f425302af374..f4965945712b 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Get.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json
index e5c18f6ae106..80fa796895c3 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_GetAuthToken.json
@@ -3,7 +3,7 @@
"subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json
index 5f10dec24c86..c5f3a31e974d 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListByResourceGroup.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json
index bc20efb9741c..d10d3280d812 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListBySubscription.json
@@ -1,7 +1,7 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
index 5b83bb9bcf9c..60e0f48bc7c6 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
@@ -4,7 +4,7 @@
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
"customHostname": "my.name.corp",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json
index 60ba3aed0f3c..29f19073e8f2 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ListSecrets.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
index 6ab2bc97634f..cd2c1719b273 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testcontainerAppManagedBy",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"containerAppEnvelope": {
"location": "East US",
"managedBy": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json
index 3f33e6a1b3e7..30d66fa07bb8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Patch.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"containerAppEnvelope": {
"location": "East US",
"tags": {
@@ -236,7 +236,7 @@
},
"202": {
"headers": {
- "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-05-02-preview"
}
}
}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json
index 31a2bf5629c8..31cd37818252 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Start.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testWorkerApp0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
@@ -116,7 +116,7 @@
},
"202": {
"headers": {
- "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-05-02-preview"
}
}
}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json
index 31a2bf5629c8..31cd37818252 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_Stop.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testWorkerApp0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
@@ -116,7 +116,7 @@
},
"202": {
"headers": {
- "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-05-02-preview"
}
}
}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
index ab7834e3fc3b..8b6761f89a5c 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testcontainerAppTcp",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"containerAppEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
index e455f6531726..b05f4ce13da1 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"daprComponentEnvelope": {
"properties": {
"componentType": "state.azure.cosmosdb",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
index 67b911bf3e8c..ce8ecbe03fd1 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"daprComponentEnvelope": {
"properties": {
"componentType": "state.azure.cosmosdb",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json
index 515704ed8704..f4b0313dacf8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
index ebe7c5475ff8..e7ed86be12ef 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json
index 47d53e5c33e9..bdbbd575f0aa 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_Get_Secrets.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json
index d6654f38fdcb..137352999bb9 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_List.json
@@ -3,7 +3,7 @@
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json
index 03dad7b7c786..277d34b11d2f 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/DaprComponents_ListSecrets.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
"componentName": "reddog",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json
index 4a791ce0cf8e..10ecb7823680 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"JobEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json
index 46aa4a9a8f82..ccbdbb3e48aa 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_CreateorUpdate_EventTrigger.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"JobEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json
index fb0703520f72..ce43ec61ba5d 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Delete.json
@@ -3,13 +3,13 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testWorkerContainerAppsJob0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
- "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/jobs/testWorkerContainerAppsJob0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/jobs/testWorkerContainerAppsJob0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-05-02-preview"
}
},
"204": {}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json
index 996574bb0da3..0e5215002832 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Execution_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
"jobExecutionName": "jobExecution1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json
index a1d9f125a973..c6b437ff8d1b 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Executions_Get.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json
index deb3e5258bb0..67eaa1f70154 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Get.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json
index f801db1f68e7..b1751c67ee82 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_ListSecrets.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json
index ae8b9d3fed36..44fd13141889 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Patch.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"JobEnvelope": {
"properties": {
"configuration": {
@@ -63,7 +63,7 @@
"responses": {
"202": {
"headers": {
- "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappsjobOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/containerappsjobOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-05-02-preview"
}
},
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json
index 9b733831a8e0..196a992b6833 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Start.json
@@ -32,7 +32,7 @@
}
]
},
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json
index 1c5d6d96f5ab..6189330aafec 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Execution.json
@@ -4,7 +4,7 @@
"resourceGroupName": "rg",
"jobName": "testcontainerAppsJob0",
"jobExecutionName": "jobExecution1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json
index 0762042597b2..8ee01754a161 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Job_Stop_Multiple.json
@@ -16,7 +16,7 @@
}
]
},
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json
index ae6a5a6dccb8..a6b3cdc8be20 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListByResourceGroup.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json
index bc9eebd85b25..83a7fcf7939e 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Jobs_ListBySubscription.json
@@ -1,7 +1,7 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
index 5440371438e3..57d31c84d814 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"managedCertificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"managedCertificateEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json
index 1ff0d6db04ae..0894da3f780f 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"managedCertificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json
index b89e42a5c62d..cd5a09dcb2b4 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificate_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"managedCertificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
index 8eba8fe21c5d..890d4aaa92a2 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json
index d51501dc4645..bb5a69f5b495 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedCertificates_Patch.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
"managedCertificateName": "certificate-firendly-name",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"managedCertificateEnvelope": {
"tags": {
"tag1": "value1",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
index ba03799d1da3..9aaac91cbdf1 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "mikono-workerapp-test-rg",
"environmentName": "mikonokubeenv",
"detectorName": "ManagedEnvAvailabilityMetrics",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
index 8d68188ae16e..6f659c2c6112 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
@@ -3,7 +3,7 @@
"subscriptionId": "f07f3711-b45e-40fe-a941-4e6d93f851e6",
"resourceGroupName": "mikono-workerapp-test-rg",
"environmentName": "mikonokubeenv",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
index d75b641bb0a7..af882af7795e 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "managedEnv",
"storageName": "jlaw-demo1",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"storageEnvelope": {
"properties": {
"azureFile": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
index 396ab3c01275..d797fdfde120 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "managedEnv",
"storageName": "jlaw-demo1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json
index a6522e8f5fc9..ec48d73847aa 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "examplerg",
"environmentName": "managedEnv",
"storageName": "jlaw-demo1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json
index f3a2549f8054..52e598a6d9c0 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentsStorages_List.json
@@ -3,7 +3,7 @@
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"environmentName": "managedEnv",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
index fba64cf69b24..1f46f87248ea 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"environmentEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
index 550c10c505fa..10fc099e8e1f 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"environmentEnvelope": {
"location": "East US",
"properties": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json
index 67b2277e0edf..b9f61ab6cc30 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Delete.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "examplekenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"location": "East US"
},
"responses": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
index ce7f8c50eb93..f338a9baaac0 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Get.json
@@ -3,7 +3,7 @@
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"environmentName": "jlaw-demo1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json
index cc11191be4eb..45e9039098da 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_GetAuthToken.json
@@ -3,7 +3,7 @@
"subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
"resourceGroupName": "rg",
"environmentName": "testenv",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
index b053fcc92c60..5114beebbf20 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json
index cdbd28ed28bb..2194dedf7dda 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListBySubscription.json
@@ -1,7 +1,7 @@
{
"parameters": {
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
index afc7fef396f7..24e1d6c110d4 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
@@ -3,7 +3,7 @@
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"environmentName": "jlaw-demo1",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json
index d268ac4c7a0a..350fb83aa34d 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironments_Patch.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"environmentName": "testcontainerenv",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"environmentEnvelope": {
"location": "East US",
"tags": {
@@ -64,7 +64,7 @@
},
"202": {
"headers": {
- "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"
+ "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/locations/eastus/managedEnvironmentOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-05-02-preview"
}
}
}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json
index 71c7433e6b09..b71e6f50ffa9 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Operations_List.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json
index 3d27a409e4c1..816dd287d4d6 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_Get.json
@@ -5,7 +5,7 @@
"containerAppName": "myapp",
"revisionName": "myapp--0wlqy09",
"replicaName": "myapp--0wlqy09-5d9774cff-5wnd8",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json
index 262f453932c2..dd36216532e8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Replicas_List.json
@@ -4,7 +4,7 @@
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "myapp",
"revisionName": "myapp--0wlqy09",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json
index a4c750149615..0317211ea1e8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Activate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
"revisionName": "testcontainerApp0-pjxhsye",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json
index a4c750149615..0317211ea1e8 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Deactivate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
"revisionName": "testcontainerApp0-pjxhsye",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
index dac7f425ad6f..bafac22d65e1 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
"revisionName": "testcontainerApp0-pjxhsye",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
index be4f720c3397..76057cdba039 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_List.json
@@ -3,7 +3,7 @@
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"containerAppName": "testcontainerApp0",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json
index 966e453f4d9b..90a1ebb0f0f9 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Revisions_Restart.json
@@ -4,7 +4,7 @@
"resourceGroupName": "rg",
"containerAppName": "testStaticSite0",
"revisionName": "testcontainerApp0-pjxhsye",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json
index 26c825652a4d..b92b94c53061 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_CreateOrUpdate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
"sourceControlName": "current",
- "api-version": "2023-04-01-preview",
+ "api-version": "2023-05-02-preview",
"sourceControlEnvelope": {
"properties": {
"repoUrl": "https://github.com/xwang971/ghatest",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json
index a52809ddf743..0621424440ae 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Delete.json
@@ -4,7 +4,7 @@
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
"sourceControlName": "current",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json
index a2c51f935069..c56592f02eac 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_Get.json
@@ -4,7 +4,7 @@
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
"sourceControlName": "current",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json
index f23dab8e9972..2a2214ae447e 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/SourceControls_ListByContainer.json
@@ -3,7 +3,7 @@
"subscriptionId": "651f8027-33e8-4ec4-97b4-f6e9f3dc8744",
"resourceGroupName": "workerapps-rg-xj",
"containerAppName": "testcanadacentral",
- "api-version": "2023-04-01-preview"
+ "api-version": "2023-05-02-preview"
},
"responses": {
"200": {
From fe5fc861db4e1d066191ba7f12335d882fb8c9ed Mon Sep 17 00:00:00 2001
From: anandanthony
Date: Mon, 12 Jun 2023 23:36:30 -0500
Subject: [PATCH 04/15] fix description for endTime in JobExecution (#24359)
* fix description for endTime in JobExecution
* fix for breaking change error
---
.../Microsoft.App/preview/2023-05-02-preview/Jobs.json | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
index 5e68b18817cc..13b125607eb1 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
@@ -814,8 +814,7 @@
},
"x-ms-client-flatten": true
}
- },
- "required": []
+ }
},
"JobPatchProperties": {
"type": "object",
@@ -1056,7 +1055,7 @@
"type": "string"
},
"endTime": {
- "description": "Job execution start time.",
+ "description": "Job execution end time.",
"format": "date-time",
"type": "string"
},
From 95521c58275f906de54442593a2bb83b2bf8c3d6 Mon Sep 17 00:00:00 2001
From: Paul Dorsch <107068277+pauld-msft@users.noreply.github.com>
Date: Tue, 13 Jun 2023 22:52:46 -0400
Subject: [PATCH 05/15] Introduce Microsoft.App/builders tracked resource and
Microsoft.App/builds proxy resource (#24240)
* cherry picked commit to introduce builders and builds, and updated api version
* added linting suppressions to readme
* pre feedback: v3 -> v5, common build/er params, rename identity to identityresourceid, inprogress -> creating
* fix typo
* fix model validation
* added updating provisioning status, and fixed a missed provisioning status ref
* Create identity to registry mapping in builder object (#24275)
* create identity to registry mapping in builder object
* update mapping to be a dictionary of container registries, to enforce single container registry
* run prettier
* run prettier on examples fil
* pr feedback: v5 -> v3 and added x ms param location
* fix plural naming to singular
---
.../preview/2023-05-02-preview/Builders.json | 501 ++++++++++++++++++
.../preview/2023-05-02-preview/Builds.json | 486 +++++++++++++++++
.../examples/Builders_CreateOrUpdate.json | 132 +++++
.../examples/Builders_Delete.json | 19 +
.../examples/Builders_Get.json | 58 ++
.../Builders_ListByResourceGroup.json | 106 ++++
.../examples/Builders_ListBySubscription.json | 105 ++++
.../examples/Builders_Update.json | 68 +++
.../examples/Builds_CreateOrUpdate.json | 210 ++++++++
.../Builds_CreateOrUpdate_NoConfig.json | 57 ++
.../examples/Builds_Delete.json | 20 +
.../examples/Builds_Get.json | 83 +++
.../Builds_ListByBuilderResource.json | 155 ++++++
specification/app/resource-manager/readme.md | 18 +
14 files changed, 2018 insertions(+)
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json
new file mode 100644
index 000000000000..3cedd65bbffc
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json
@@ -0,0 +1,501 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "ContainerApps API Client",
+ "version": "2023-05-02-preview"
+ },
+ "schemes": [
+ "https"
+ ],
+ "host": "management.azure.com",
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow.",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/builders": {
+ "get": {
+ "tags": [
+ "Builders"
+ ],
+ "operationId": "Builders_ListBySubscription",
+ "description": "List BuilderResource resources by subscription ID",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuilderCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Builders_ListBySubscription_0": {
+ "$ref": "./examples/Builders_ListBySubscription.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders": {
+ "get": {
+ "tags": [
+ "Builders"
+ ],
+ "operationId": "Builders_ListByResourceGroup",
+ "description": "List BuilderResource resources by resource group",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuilderCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Builders_ListByResourceGroup_0": {
+ "$ref": "./examples/Builders_ListByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}": {
+ "get": {
+ "tags": [
+ "Builders"
+ ],
+ "operationId": "Builders_Get",
+ "description": "Get a BuilderResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/BuilderNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuilderResource"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Builders_Get_0": {
+ "$ref": "./examples/Builders_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Builders"
+ ],
+ "operationId": "Builders_CreateOrUpdate",
+ "description": "Create or update a BuilderResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/BuilderNameParameter"
+ },
+ {
+ "name": "builderEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "Resource create parameters.",
+ "schema": {
+ "$ref": "#/definitions/BuilderResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM create or update operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuilderResource"
+ }
+ },
+ "201": {
+ "description": "ARM create or update operation has been started.",
+ "schema": {
+ "$ref": "#/definitions/BuilderResource"
+ },
+ "headers": {
+ "Azure-AsyncOperation": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Builders_CreateOrUpdate_0": {
+ "$ref": "./examples/Builders_CreateOrUpdate.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Builders"
+ ],
+ "operationId": "Builders_Update",
+ "description": "Update a BuilderResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/BuilderNameParameter"
+ },
+ {
+ "name": "builderEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "The resource properties to be updated.",
+ "schema": {
+ "$ref": "#/definitions/BuilderResourceUpdate"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuilderResource"
+ }
+ },
+ "202": {
+ "description": "Resource update request accepted.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Builders_Update_0": {
+ "$ref": "./examples/Builders_Update.json"
+ }
+ },
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "Builders"
+ ],
+ "operationId": "Builders_Delete",
+ "description": "Delete a BuilderResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/BuilderNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Resource deleted successfully."
+ },
+ "202": {
+ "description": "Resource deletion accepted.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Resource deleted successfully."
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Builders_Delete_0": {
+ "$ref": "./examples/Builders_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "x-ms-long-running-operation": true
+ }
+ }
+ },
+ "definitions": {
+ "BuilderProperties": {
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "$ref": "#/definitions/ProvisioningState",
+ "description": "Provisioning state of a builder resource.",
+ "readOnly": true
+ },
+ "environmentId": {
+ "type": "string",
+ "description": "Resource ID of the container apps environment that the builder is associated with."
+ },
+ "buildComputeId": {
+ "type": "string",
+ "description": "Resource ID of the compute that the builds will be performed on.",
+ "readOnly": true
+ },
+ "patchComputeId": {
+ "type": "string",
+ "description": "Resource ID of the compute that the patching will be performed on.",
+ "readOnly": true
+ },
+ "containerRegistries": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContainerRegistry"
+ },
+ "x-ms-identifiers": [
+ "containerRegistryServer"
+ ],
+ "description": "List of mappings of container registries and the managed identity used to connect to it."
+ }
+ },
+ "description": "The builder properties.",
+ "required": [
+ "environmentId"
+ ]
+ },
+ "BuilderResource": {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/BuilderProperties",
+ "description": "The resource-specific properties for this resource.",
+ "x-ms-client-flatten": true,
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ]
+ },
+ "identity": {
+ "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
+ "description": "The managed service identities assigned to this resource."
+ }
+ },
+ "description": "Information about the SourceToCloud builder resource.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "BuilderCollection": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BuilderResource"
+ },
+ "description": "The BuilderResource items on this page"
+ },
+ "nextLink": {
+ "type": "string",
+ "format": "uri",
+ "description": "The link to the next page of items"
+ }
+ },
+ "description": "The response of a BuilderResource list operation.",
+ "required": [
+ "value"
+ ]
+ },
+ "BuilderResourceUpdate": {
+ "type": "object",
+ "properties": {
+ "identity": {
+ "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
+ "description": "The managed service identities assigned to this resource."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags."
+ },
+ "properties": {
+ "$ref": "#/definitions/BuilderResourceUpdateProperties",
+ "x-ms-client-flatten": true
+ }
+ },
+ "description": "The type used for update operations of the BuilderResource."
+ },
+ "BuilderResourceUpdateProperties": {
+ "type": "object",
+ "properties": {
+ "environmentId": {
+ "type": "string",
+ "description": "Resource ID of the container apps environment that the builder is associated with."
+ }
+ },
+ "description": "The updatable properties of the BuilderResource."
+ },
+ "ContainerRegistry": {
+ "type": "object",
+ "properties": {
+ "containerRegistryServer": {
+ "type": "string",
+ "description": "Login server of the container registry."
+ },
+ "identityResourceId": {
+ "type": "string",
+ "description": "Resource ID of the managed identity."
+ }
+ },
+ "description": "Model representing a mapping from a container registry to the identity used to connect to it.",
+ "required": [
+ "containerRegistryServer",
+ "identityResourceId"
+ ]
+ },
+ "ProvisioningState": {
+ "type": "string",
+ "description": "Resource instance provisioning state.",
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "Creating",
+ "Updating",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ },
+ "readOnly": true
+ }
+ },
+ "parameters": {
+ "BuilderNameParameter": {
+ "name": "builderName",
+ "in": "path",
+ "required": true,
+ "description": "The name of the builder.",
+ "minLength": 2,
+ "maxLength": 32,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json
new file mode 100644
index 000000000000..b2a03304c7c2
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json
@@ -0,0 +1,486 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "ContainerApps API Client",
+ "version": "2023-05-02-preview"
+ },
+ "schemes": [
+ "https"
+ ],
+ "host": "management.azure.com",
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow.",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds": {
+ "get": {
+ "tags": [
+ "Builds"
+ ],
+ "operationId": "Builds_ListByBuilderResource",
+ "description": "List BuildResource resources by BuilderResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "./Builders.json#/parameters/BuilderNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuildCollection"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Builds_ListByBuilderResource_0": {
+ "$ref": "./examples/Builds_ListByBuilderResource.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}": {
+ "get": {
+ "tags": [
+ "Builds"
+ ],
+ "operationId": "Builds_Get",
+ "description": "Get a BuildResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "./Builders.json#/parameters/BuilderNameParameter"
+ },
+ {
+ "$ref": "#/parameters/BuildNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuildResource"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Builds_Get_0": {
+ "$ref": "./examples/Builds_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Builds"
+ ],
+ "operationId": "Builds_CreateOrUpdate",
+ "description": "Create a BuildResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "./Builders.json#/parameters/BuilderNameParameter"
+ },
+ {
+ "$ref": "#/parameters/BuildNameParameter"
+ },
+ {
+ "name": "buildEnvelope",
+ "in": "body",
+ "required": true,
+ "description": "Resource create or update parameters.",
+ "schema": {
+ "$ref": "#/definitions/BuildResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "ARM create or update operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/BuildResource"
+ }
+ },
+ "201": {
+ "description": "ARM create or update operation has been started.",
+ "schema": {
+ "$ref": "#/definitions/BuildResource"
+ },
+ "headers": {
+ "Azure-AsyncOperation": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Builds_CreateOrUpdate_WithConfig": {
+ "$ref": "./examples/Builds_CreateOrUpdate.json"
+ },
+ "Builds_CreateOrUpdate_NoConfig": {
+ "$ref": "./examples/Builds_CreateOrUpdate_NoConfig.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Builds"
+ ],
+ "operationId": "Builds_Delete",
+ "description": "Delete a BuildResource",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "./Builders.json#/parameters/BuilderNameParameter"
+ },
+ {
+ "$ref": "#/parameters/BuildNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Resource deleted successfully."
+ },
+ "202": {
+ "description": "Resource deletion accepted.",
+ "headers": {
+ "Location": {
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Resource deleted successfully."
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Builds_Delete_0": {
+ "$ref": "./examples/Builds_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "x-ms-long-running-operation": true
+ }
+ }
+ },
+ "definitions": {
+ "BuildConfiguration": {
+ "type": "object",
+ "properties": {
+ "baseOs": {
+ "type": "string",
+ "description": "Base OS used to build and run the app."
+ },
+ "platform": {
+ "type": "string",
+ "description": "Platform to be used to build and run the app."
+ },
+ "platformVersion": {
+ "type": "string",
+ "description": "Platform version to be used to build and run the app."
+ },
+ "environmentVariables": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnvironmentVariable"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ],
+ "description": "List of environment variables to be passed to the build and application runtime."
+ },
+ "preBuildSteps": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PreBuildStep"
+ },
+ "x-ms-identifiers": [],
+ "description": "List of steps to perform before the build."
+ }
+ },
+ "description": "Configuration of the build."
+ },
+ "BuildProperties": {
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "$ref": "#/definitions/ProvisioningState",
+ "description": "Build provisioning state.",
+ "readOnly": true
+ },
+ "buildStatus": {
+ "$ref": "#/definitions/BuildStatus",
+ "description": "Status of the build once it has been provisioned.",
+ "readOnly": true
+ },
+ "destinationContainerRegistry": {
+ "$ref": "#/definitions/ContainerRegistryWithCustomImage",
+ "description": "Container registry that the final image will be uploaded to."
+ },
+ "configuration": {
+ "$ref": "#/definitions/BuildConfiguration",
+ "description": "Configuration of the build."
+ },
+ "uploadEndpoint": {
+ "type": "string",
+ "description": "Endpoint to which the source code should be uploaded.",
+ "readOnly": true
+ }
+ },
+ "description": "The build properties."
+ },
+ "BuildResource": {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/BuildProperties",
+ "description": "The resource-specific properties for this resource.",
+ "x-ms-client-flatten": true,
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ]
+ }
+ },
+ "description": "Information pertaining to an individual build.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
+ }
+ ]
+ },
+ "BuildCollection": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BuildResource"
+ },
+ "description": "The BuildResource items on this page"
+ },
+ "nextLink": {
+ "type": "string",
+ "format": "uri",
+ "description": "The link to the next page of items"
+ }
+ },
+ "description": "The response of a BuildResource list operation.",
+ "required": [
+ "value"
+ ]
+ },
+ "BuildStatus": {
+ "type": "string",
+ "description": "Status of the build once it has been provisioned.",
+ "enum": [
+ "NotStarted",
+ "InProgress",
+ "Succeeded",
+ "Canceled",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "BuildStatus",
+ "modelAsString": true
+ }
+ },
+ "ContainerRegistryWithCustomImage": {
+ "type": "object",
+ "properties": {
+ "server": {
+ "type": "string",
+ "description": "Login server of the container registry that the final image should be uploaded to. Builder resource needs to have this container registry defined along with an identity to use to access it."
+ },
+ "image": {
+ "type": "string",
+ "description": "Full name that the final image should be uploaded as, including both image name and tag."
+ }
+ },
+ "description": "Container registry that the final image will be uploaded to.",
+ "required": [
+ "server"
+ ]
+ },
+ "EnvironmentVariable": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Environment variable name."
+ },
+ "value": {
+ "type": "string",
+ "description": "Environment variable value."
+ }
+ },
+ "description": "Model representing an environment variable.",
+ "required": [
+ "name",
+ "value"
+ ]
+ },
+ "HttpGet": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "description": "URL to make HTTP GET request against."
+ },
+ "fileName": {
+ "type": "string",
+ "description": "Name of the file that the request should be saved to."
+ },
+ "headers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of headers to send with the request."
+ }
+ },
+ "description": "Model representing a http get request.",
+ "required": [
+ "url"
+ ]
+ },
+ "PreBuildStep": {
+ "type": "object",
+ "properties": {
+ "description": {
+ "type": "string",
+ "description": "Description of the pre-build step."
+ },
+ "scripts": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of custom commands to run."
+ },
+ "httpGet": {
+ "$ref": "#/definitions/HttpGet",
+ "description": "Http get request to send before the build.",
+ "x-ms-identifiers": []
+ }
+ },
+ "description": "Model representing a pre-build step."
+ },
+ "ProvisioningState": {
+ "type": "string",
+ "description": "Resource instance provisioning state.",
+ "enum": [
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "Creating",
+ "Updating",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ },
+ "readOnly": true
+ }
+ },
+ "parameters": {
+ "BuildNameParameter": {
+ "name": "buildName",
+ "in": "path",
+ "required": true,
+ "description": "The name of a build.",
+ "minLength": 2,
+ "maxLength": 64,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json
new file mode 100644
index 000000000000..ffe6262d417b
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json
@@ -0,0 +1,132 @@
+{
+ "operationId": "Builders_CreateOrUpdate",
+ "title": "Builders_CreateOrUpdate_0",
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder",
+ "api-version": "2023-05-02-preview",
+ "builderEnvelope": {
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}
+ }
+ },
+ "properties": {
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "tags": {
+ "company": "Microsoft"
+ },
+ "location": "eastus"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
+ "name": "testBuilder",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "company": "Microsoft"
+ }
+ }
+ },
+ "201": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
+ },
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
+ "name": "testBuilder",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Creating",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "company": "Microsoft"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json
new file mode 100644
index 000000000000..2d037d75af43
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json
@@ -0,0 +1,19 @@
+{
+ "operationId": "Builders_Delete",
+ "title": "Builders_Delete_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json
new file mode 100644
index 000000000000..345984537260
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json
@@ -0,0 +1,58 @@
+{
+ "operationId": "Builders_Get",
+ "title": "Builders_Get_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
+ "name": "testBuilder",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "key": "value"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json
new file mode 100644
index 000000000000..5604ec09b848
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json
@@ -0,0 +1,106 @@
+{
+ "operationId": "Builders_ListByResourceGroup",
+ "title": "Builders_ListByResourceGroup_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder1",
+ "name": "testBuilder1",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "key": "value"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder2",
+ "name": "testBuilder2",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "key": "value"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json
new file mode 100644
index 000000000000..b09dd74b2890
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json
@@ -0,0 +1,105 @@
+{
+ "operationId": "Builders_ListBySubscription",
+ "title": "Builders_ListBySubscription_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.App/builders/testBuilder1",
+ "name": "testBuilder1",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "key": "value"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg2/providers/Microsoft.App/builders/testBuilder2",
+ "name": "testBuilder2",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "key": "value"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json
new file mode 100644
index 000000000000..ad441a417b37
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json
@@ -0,0 +1,68 @@
+{
+ "operationId": "Builders_Update",
+ "title": "Builders_Update_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder",
+ "builderEnvelope": {
+ "tags": {
+ "mytag1": "myvalue1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
+ "name": "testBuilder",
+ "type": "Microsoft.App/builders",
+ "location": "eastus",
+ "identity": {
+ "type": "SystemAssigned,UserAssigned",
+ "principalId": "00000000-0000-0000-0000-000000000000",
+ "tenantId": "00000000-0000-0000-0000-000000000000",
+ "userAssignedIdentities": {
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
+ "clientId": "00000000-0000-0000-0000-000000000000",
+ "principalId": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
+ "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
+ "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
+ "containerRegistries": [
+ {
+ "containerRegistryServer": "test.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ },
+ {
+ "containerRegistryServer": "test2.azurecr.io",
+ "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
+ }
+ ]
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ },
+ "tags": {
+ "mytag1": "myvalue1"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json
new file mode 100644
index 000000000000..8b631e638af9
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json
@@ -0,0 +1,210 @@
+{
+ "operationId": "Builds_CreateOrUpdate",
+ "title": "Builds_CreateOrUpdate_WithConfig",
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder",
+ "buildName": "testBuild-123456789az",
+ "api-version": "2023-05-02-preview",
+ "buildEnvelope": {
+ "properties": {
+ "destinationContainerRegistry": {
+ "server": "test.azurecr.io",
+ "image": "test.azurecr.io/repo:tag"
+ },
+ "configuration": {
+ "baseOs": "DebianBullseye",
+ "platform": "dotnetcore",
+ "platformVersion": "7.0",
+ "environmentVariables": [
+ {
+ "name": "foo1",
+ "value": "bar1"
+ },
+ {
+ "name": "foo2",
+ "value": "bar2"
+ }
+ ],
+ "preBuildSteps": [
+ {
+ "description": "First pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'world'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo",
+ "bar"
+ ]
+ }
+ },
+ {
+ "description": "Second pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'again'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild-123456789az",
+ "name": "testBuild-123456789az",
+ "type": "Microsoft.App/builders/builds",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "buildStatus": "InProgress",
+ "destinationContainerRegistry": {
+ "server": "test.azurecr.io",
+ "image": "test.azurecr.io/repo:tag"
+ },
+ "configuration": {
+ "baseOs": "DebianBullseye",
+ "platform": "dotnetcore",
+ "platformVersion": "7.0",
+ "environmentVariables": [
+ {
+ "name": "foo1",
+ "value": "bar1"
+ },
+ {
+ "name": "foo2",
+ "value": "bar2"
+ }
+ ],
+ "preBuildSteps": [
+ {
+ "description": "First pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'world'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo",
+ "bar"
+ ]
+ }
+ },
+ {
+ "description": "Second pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'again'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo"
+ ]
+ }
+ }
+ ]
+ },
+ "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ }
+ }
+ },
+ "201": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
+ },
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
+ "name": "testBuild",
+ "type": "Microsoft.App/build",
+ "properties": {
+ "provisioningState": "Creating",
+ "buildStatus": "NotStarted",
+ "destinationContainerRegistry": {
+ "server": "test.azurecr.io",
+ "image": "test.azurecr.io/repo:tag"
+ },
+ "configuration": {
+ "baseOs": "DebianBullseye",
+ "platform": "dotnetcore",
+ "platformVersion": "7.0",
+ "environmentVariables": [
+ {
+ "name": "foo1",
+ "value": "bar1"
+ },
+ {
+ "name": "foo2",
+ "value": "bar2"
+ }
+ ],
+ "preBuildSteps": [
+ {
+ "description": "First pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'world'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo",
+ "bar"
+ ]
+ }
+ },
+ {
+ "description": "Second pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'again'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo"
+ ]
+ }
+ }
+ ]
+ },
+ "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
new file mode 100644
index 000000000000..4a9d08b11268
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
@@ -0,0 +1,57 @@
+{
+ "operationId": "Builds_CreateOrUpdate",
+ "title": "Builds_CreateOrUpdate_NoConfig",
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder",
+ "buildName": "testBuild",
+ "api-version": "2023-05-02-preview",
+ "buildEnvelope": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
+ "name": "testBuild",
+ "type": "Microsoft.App/builders/builds",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "buildStatus": "InProgress",
+ "uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ }
+ }
+ },
+ "201": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
+ },
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
+ "name": "testBuild",
+ "type": "Microsoft.App/build",
+ "properties": {
+ "provisioningState": "Creating",
+ "buildStatus": "InProgress",
+ "uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json
new file mode 100644
index 000000000000..12fa3dfd99a2
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json
@@ -0,0 +1,20 @@
+{
+ "operationId": "Builds_Delete",
+ "title": "Builds_Delete_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder",
+ "buildName": "testBuild"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json
new file mode 100644
index 000000000000..b141c3463d47
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json
@@ -0,0 +1,83 @@
+{
+ "operationId": "Builds_Get",
+ "title": "Builds_Get_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder",
+ "buildName": "testBuild"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
+ "name": "testBuild",
+ "type": "Microsoft.App/builders/builds",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "buildStatus": "InProgress",
+ "destinationContainerRegistry": {
+ "server": "test.azurecr.io",
+ "image": "test.azurecr.io/repo:tag"
+ },
+ "configuration": {
+ "baseOs": "DebianBullseye",
+ "platform": "dotnetcore",
+ "platformVersion": "7.0",
+ "environmentVariables": [
+ {
+ "name": "foo1",
+ "value": "bar1"
+ },
+ {
+ "name": "foo2",
+ "value": "bar2"
+ }
+ ],
+ "preBuildSteps": [
+ {
+ "description": "First pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'world'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo",
+ "bar"
+ ]
+ }
+ },
+ {
+ "description": "Second pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'again'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo"
+ ]
+ }
+ }
+ ]
+ },
+ "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json
new file mode 100644
index 000000000000..86d1f2ae402d
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json
@@ -0,0 +1,155 @@
+{
+ "operationId": "Builds_ListByBuilderResource",
+ "title": "Builds_ListByBuilderResource_0",
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "rg",
+ "builderName": "testBuilder"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild1",
+ "name": "testBuild1",
+ "type": "Microsoft.App/builders/builds",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "buildStatus": "InProgress",
+ "destinationContainerRegistry": {
+ "server": "test.azurecr.io",
+ "image": "test.azurecr.io/repo:tag"
+ },
+ "configuration": {
+ "baseOs": "DebianBullseye",
+ "platform": "dotnetcore",
+ "platformVersion": "7.0",
+ "environmentVariables": [
+ {
+ "name": "foo1",
+ "value": "bar1"
+ },
+ {
+ "name": "foo2",
+ "value": "bar2"
+ }
+ ],
+ "preBuildSteps": [
+ {
+ "description": "First pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'world'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo",
+ "bar"
+ ]
+ }
+ },
+ {
+ "description": "Second pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'again'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo"
+ ]
+ }
+ }
+ ]
+ },
+ "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild2",
+ "name": "testBuild2",
+ "type": "Microsoft.App/builders/builds",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "buildStatus": "InProgress",
+ "destinationContainerRegistry": {
+ "server": "test.azurecr.io",
+ "image": "test.azurecr.io/repo:tag"
+ },
+ "configuration": {
+ "baseOs": "DebianBullseye",
+ "platform": "dotnetcore",
+ "platformVersion": "7.0",
+ "environmentVariables": [
+ {
+ "name": "foo1",
+ "value": "bar1"
+ },
+ {
+ "name": "foo2",
+ "value": "bar2"
+ }
+ ],
+ "preBuildSteps": [
+ {
+ "description": "First pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'world'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo",
+ "bar"
+ ]
+ }
+ },
+ {
+ "description": "Second pre build step.",
+ "scripts": [
+ "echo 'hello'",
+ "echo 'again'"
+ ],
+ "httpGet": {
+ "url": "https://microsoft.com",
+ "fileName": "output.txt",
+ "headers": [
+ "foo"
+ ]
+ }
+ }
+ ]
+ },
+ "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
+ },
+ "systemData": {
+ "createdBy": "sample@microsoft.com",
+ "createdByType": "User",
+ "createdAt": "2022-10-11T11:05:51.4940669Z",
+ "lastModifiedBy": "sample@microsoft.com",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md
index c2dbb6d3017e..9c52069b49e8 100644
--- a/specification/app/resource-manager/readme.md
+++ b/specification/app/resource-manager/readme.md
@@ -39,6 +39,8 @@ input-file:
- Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
- Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
- Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
+ - Microsoft.App/preview/2023-05-02-preview/Builders.json
+ - Microsoft.App/preview/2023-05-02-preview/Builds.json
- Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
- Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
- Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
@@ -53,6 +55,22 @@ input-file:
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
- Microsoft.App/preview/2023-05-02-preview/SourceControls.json
+directive:
+ - suppress: OperationIdNounVerb
+ from: Builds.json
+ reason: |
+ The linting thinks that 'Builder' in 'Builds_ListByBuilderResource' is a noun, while it
+ is really the parent.
+ - suppress: LroErrorContent
+ from: Builds.json
+ reason: |
+ We are not using the common error response for these new resources to promote consistency
+ with the rest of the Microsoft.App RP, as it also doesn't use the common-types error.
+ - suppress: LroErrorContent
+ from: Builders.json
+ reason: |
+ We are not using the common error response for these new resources to promote consistency
+ with the rest of the Microsoft.App RP, as it also doesn't use the common-types error.
```
### Tag: package-preview-2023-04
From 721daae91b771bad10920d61ebcf6fc675fa55e7 Mon Sep 17 00:00:00 2001
From: Seris370 <38371667+Seris370@users.noreply.github.com>
Date: Thu, 15 Jun 2023 10:58:31 +0800
Subject: [PATCH 06/15] Add GetVerificationId API (#24286)
* add api
* fix typo
* fix spacing
* fix spacing
* change version
---------
Co-authored-by: Chenghui Yu
---
.../2023-05-02-preview/Subscriptions.json | 80 +++++++++++++++++++
.../Subscriptions_GetVerificationId.json | 12 +++
specification/app/resource-manager/readme.md | 1 +
3 files changed, 93 insertions(+)
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetVerificationId.json
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
new file mode 100644
index 000000000000..63a14405ea4f
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
@@ -0,0 +1,80 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-05-02-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/getVerificationId": {
+ "post": {
+ "tags": [
+ "Subscriptions"
+ ],
+ "description": "Get the verification id of a subscription used for verifying custom domains",
+ "operationId": "GetVerificationId",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The verification id has been returned successfully.",
+ "schema": {
+ "$ref": "#/definitions/VerificationId"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all operations": {
+ "$ref": "./examples/Subscriptions_GetVerificationId.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "VerificationId": {
+ "description": "Verification Id of a subscription",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetVerificationId.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetVerificationId.json
new file mode 100644
index 000000000000..b7c00ff0d5a3
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetVerificationId.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "d27c3573-f76e-4b26-b871-0ccd2203d08c",
+ "api-version": "2023-05-02-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": "5B406D5E790BBD224468CE0AA814C396203C7CE755F135A80E35D41865E51967"
+ }
+ }
+}
diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md
index 9c52069b49e8..3f8eb8701a50 100644
--- a/specification/app/resource-manager/readme.md
+++ b/specification/app/resource-manager/readme.md
@@ -55,6 +55,7 @@ input-file:
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
- Microsoft.App/preview/2023-05-02-preview/SourceControls.json
+ - Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
directive:
- suppress: OperationIdNounVerb
from: Builds.json
From 6bb1e35a8d15b3d6b4c5b550999a7812ab0ec3c4 Mon Sep 17 00:00:00 2001
From: zhenqxuMSFT
Date: Thu, 15 Jun 2023 15:13:46 +0800
Subject: [PATCH 07/15] Support multiple port for container app (#24332)
(#24459)
* Support multiple port for container app
* lint
* comment
---
.../2023-05-02-preview/ContainerApps.json | 34 +++++++++++++++++++
.../ContainerApps_CreateOrUpdate.json | 13 ++++++-
2 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
index e0a83fc01aca..d4c0aff57af9 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/ContainerApps.json
@@ -961,6 +961,16 @@
"corsPolicy": {
"description": "CORS policy for container app",
"$ref": "#/definitions/CorsPolicy"
+ },
+ "additionalPortMappings": {
+ "description": "Settings to expose additional ports on container app",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IngressPortMapping"
+ },
+ "x-ms-identifiers": [
+ "targetPort"
+ ]
}
}
},
@@ -1166,6 +1176,30 @@
}
}
},
+ "IngressPortMapping": {
+ "description": "Port mappings of container app ingress",
+ "type": "object",
+ "required": [
+ "external",
+ "targetPort"
+ ],
+ "properties": {
+ "external": {
+ "description": "Specifies whether the app port is accessible outside of the environment",
+ "type": "boolean"
+ },
+ "targetPort": {
+ "format": "int32",
+ "description": "Specifies the port user's container listens on",
+ "type": "integer"
+ },
+ "exposedPort": {
+ "format": "int32",
+ "description": "Specifies the exposed port for the target port. If not specified, it defaults to target port",
+ "type": "integer"
+ }
+ }
+ },
"CustomHostnameAnalysisResult": {
"description": "Custom domain analysis.",
"type": "object",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
index 0e88ace4af7e..a90356136e44 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ContainerApps_CreateOrUpdate.json
@@ -69,7 +69,18 @@
],
"maxAge": 1234,
"allowCredentials": true
- }
+ },
+ "additionalPortMappings": [
+ {
+ "external": true,
+ "targetPort": 1234
+ },
+ {
+ "external": false,
+ "targetPort": 2345,
+ "exposedPort": 3456
+ }
+ ]
},
"dapr": {
"enabled": true,
From 2ea74a940bf3b4270c0fc0ada0422d4207eef27a Mon Sep 17 00:00:00 2001
From: njucz <740360112@qq.com>
Date: Tue, 20 Jun 2023 11:04:18 +0800
Subject: [PATCH 08/15] Add blob storage token store support (#24455)
* add blob storage token store support
* update
---
.../2023-05-02-preview/AuthConfigs.json | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
index c42714b274dd..ca0e61af00b9 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
@@ -399,6 +399,10 @@
"$ref": "#/definitions/LoginRoutes",
"description": "The routes that specify the endpoints used for login and logout requests."
},
+ "tokenStore": {
+ "$ref": "#/definitions/TokenStore",
+ "description": "The configuration settings of the token store."
+ },
"preserveUrlFragmentsForLogins": {
"description": "true
if the fragments from the request are preserved after the login request is made; otherwise, false
.",
"type": "boolean"
@@ -430,6 +434,38 @@
}
}
},
+ "TokenStore": {
+ "description": "The configuration settings of the token store.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "true
to durably store platform-specific security tokens that are obtained during login flows; otherwise, false
.\n The default is false
.",
+ "type": "boolean"
+ },
+ "tokenRefreshExtensionHours": {
+ "format": "double",
+ "description": "The number of hours after session token expiration that a session token can be used to\ncall the token refresh API. The default is 72 hours.",
+ "type": "number"
+ },
+ "azureBlobStorage": {
+ "$ref": "#/definitions/BlobStorageTokenStore",
+ "description": "The configuration settings of the storage of the tokens if blob storage is used."
+ }
+ }
+ },
+ "BlobStorageTokenStore": {
+ "description": "The configuration settings of the storage of the tokens if blob storage is used.",
+ "type": "object",
+ "required": [
+ "sasUrlSettingName"
+ ],
+ "properties": {
+ "sasUrlSettingName": {
+ "description": "The name of the app secrets containing the SAS URL of the blob storage containing the tokens.",
+ "type": "string"
+ }
+ }
+ },
"CookieExpiration": {
"description": "The configuration settings of the session cookie's expiration.",
"type": "object",
From 94d05090afceed28146b374db185bd826feb2075 Mon Sep 17 00:00:00 2001
From: anandanthony
Date: Wed, 28 Jun 2023 01:30:22 -0500
Subject: [PATCH 09/15] update trigger type enum - schedule for jobs (#24399)
* update trigger type enum - schedule for jobs
* update trigger type enum - schedule for jobs
* add previous changes merged to main
---
.../Microsoft.App/preview/2022-11-01-preview/Jobs.json | 5 ++---
.../Microsoft.App/preview/2023-04-01-preview/Jobs.json | 5 ++---
.../Microsoft.App/preview/2023-05-02-preview/Jobs.json | 2 +-
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json
index e7073ba997c6..4ff16aba1ff7 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json
@@ -787,8 +787,7 @@
},
"x-ms-client-flatten": true
}
- },
- "required": []
+ }
},
"JobPatchProperties": {
"type": "object",
@@ -971,7 +970,7 @@
"type": "string"
},
"endTime": {
- "description": "Job execution start time.",
+ "description": "Job execution end time.",
"format": "date-time",
"type": "string"
},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json
index 585c2dae46c3..8736900cd2d3 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json
@@ -814,8 +814,7 @@
},
"x-ms-client-flatten": true
}
- },
- "required": []
+ }
},
"JobPatchProperties": {
"type": "object",
@@ -1056,7 +1055,7 @@
"type": "string"
},
"endTime": {
- "description": "Job execution start time.",
+ "description": "Job execution end time.",
"format": "date-time",
"type": "string"
},
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
index 13b125607eb1..b1857282f369 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
@@ -666,7 +666,7 @@
"triggerType": {
"description": "Trigger type of the job",
"enum": [
- "Scheduled",
+ "Schedule",
"Event",
"Manual"
],
From b2a86110a7fb57fb44e2aacea231bf43b328b623 Mon Sep 17 00:00:00 2001
From: Xingjian Wang <79332479+xwang971@users.noreply.github.com>
Date: Mon, 24 Jul 2023 11:18:29 -0700
Subject: [PATCH 10/15] add encryption settings (#24822)
---
.../2023-05-02-preview/AuthConfigs.json | 18 ++++++++++++++++++
.../examples/AuthConfigs_CreateOrUpdate.json | 8 ++++++++
.../examples/AuthConfigs_Get.json | 4 ++++
.../examples/AuthConfigs_ListByContainer.json | 4 ++++
4 files changed, 34 insertions(+)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
index ca0e61af00b9..23f3b635b441 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
@@ -285,6 +285,10 @@
"httpSettings": {
"$ref": "#/definitions/HttpSettings",
"description": "The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp Service Authentication/Authorization."
+ },
+ "encryptionSettings": {
+ "$ref": "#/definitions/EncryptionSettings",
+ "description": "The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service Authentication/Authorization."
}
},
"x-ms-client-flatten": true
@@ -354,6 +358,20 @@
}
}
},
+ "EncryptionSettings": {
+ "description": "The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service Authentication/Authorization.",
+ "type": "object",
+ "properties": {
+ "containerAppAuthEncryptionSecretName": {
+ "description": "The secret name which is referenced for EncryptionKey.",
+ "type": "string"
+ },
+ "containerAppAuthSigningSecretName": {
+ "description": "The secret name which is referenced for SigningKey.",
+ "type": "string"
+ }
+ }
+ },
"HttpSettingsRoutes": {
"description": "The configuration settings of the paths HTTP requests.",
"type": "object",
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
index d47e2cab3eca..65901b2ae5d5 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_CreateOrUpdate.json
@@ -20,6 +20,10 @@
"appSecretSettingName": "facebook-secret"
}
}
+ },
+ "encryptionSettings": {
+ "containerAppAuthEncryptionSecretName": "testEncryptionSecretName",
+ "containerAppAuthSigningSecretName": "testSigningSecretName"
}
}
}
@@ -45,6 +49,10 @@
"appSecretSettingName": "facebook-secret"
}
}
+ },
+ "encryptionSettings": {
+ "containerAppAuthEncryptionSecretName": "testEncryptionSecretName",
+ "containerAppAuthSigningSecretName": "testSigningSecretName"
}
}
}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
index b63b31587bab..15db087dcc5d 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_Get.json
@@ -27,6 +27,10 @@
"appSecretSettingName": "facebook-secret"
}
}
+ },
+ "encryptionSettings": {
+ "containerAppAuthEncryptionSecretName": "testEncryptionSecretName",
+ "containerAppAuthSigningSecretName": "testSigningSecretName"
}
}
}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
index 689a1cc9d151..07ce8a8b6336 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/AuthConfigs_ListByContainer.json
@@ -28,6 +28,10 @@
"appSecretSettingName": "facebook-secret"
}
}
+ },
+ "encryptionSettings": {
+ "containerAppAuthEncryptionSecretName": "testEncryptionSecretName",
+ "containerAppAuthSigningSecretName": "testSigningSecretName"
}
}
}
From c13469209cd6f8d1fa1a56d62c37cd2230aa361b Mon Sep 17 00:00:00 2001
From: Seris370 <38371667+Seris370@users.noreply.github.com>
Date: Thu, 27 Jul 2023 12:08:21 +0800
Subject: [PATCH 11/15] rename verification id to custom domain verification id
(#24874)
Co-authored-by: Chenghui Yu
---
.../preview/2023-05-02-preview/Subscriptions.json | 14 +++++++-------
...bscriptions_GetCustomDomainVerificationId.json} | 0
2 files changed, 7 insertions(+), 7 deletions(-)
rename specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/{Subscriptions_GetVerificationId.json => Subscriptions_GetCustomDomainVerificationId.json} (100%)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
index 63a14405ea4f..1ef1f357a879 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
@@ -15,13 +15,13 @@
"application/json"
],
"paths": {
- "/subscriptions/{subscriptionId}/providers/Microsoft.App/getVerificationId": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/getCustomDomainVerificationId": {
"post": {
"tags": [
"Subscriptions"
],
"description": "Get the verification id of a subscription used for verifying custom domains",
- "operationId": "GetVerificationId",
+ "operationId": "GetCustomDomainVerificationId",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
@@ -32,9 +32,9 @@
],
"responses": {
"200": {
- "description": "OK. The verification id has been returned successfully.",
+ "description": "OK. The custom domain verification id has been returned successfully.",
"schema": {
- "$ref": "#/definitions/VerificationId"
+ "$ref": "#/definitions/CustomDomainVerificationId"
}
},
"default": {
@@ -46,15 +46,15 @@
},
"x-ms-examples": {
"List all operations": {
- "$ref": "./examples/Subscriptions_GetVerificationId.json"
+ "$ref": "./examples/Subscriptions_GetCustomDomainVerificationId.json"
}
}
}
}
},
"definitions": {
- "VerificationId": {
- "description": "Verification Id of a subscription",
+ "CustomDomainVerificationId": {
+ "description": "Custom domain verification Id of a subscription",
"type": "string",
"readOnly": true
}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetVerificationId.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetCustomDomainVerificationId.json
similarity index 100%
rename from specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetVerificationId.json
rename to specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Subscriptions_GetCustomDomainVerificationId.json
From 69ab6dfc9399de0ac05278a45dd39113682bd543 Mon Sep 17 00:00:00 2001
From: Paul Dorsch <107068277+pauld-msft@users.noreply.github.com>
Date: Thu, 27 Jul 2023 00:14:17 -0400
Subject: [PATCH 12/15] Removed SourceToCloud feature from 2023-05-02-preview
(#24860)
---
.../preview/2023-05-02-preview/Builders.json | 501 ------------------
.../preview/2023-05-02-preview/Builds.json | 486 -----------------
.../examples/Builders_CreateOrUpdate.json | 132 -----
.../examples/Builders_Delete.json | 19 -
.../examples/Builders_Get.json | 58 --
.../Builders_ListByResourceGroup.json | 106 ----
.../examples/Builders_ListBySubscription.json | 105 ----
.../examples/Builders_Update.json | 68 ---
.../examples/Builds_CreateOrUpdate.json | 210 --------
.../Builds_CreateOrUpdate_NoConfig.json | 57 --
.../examples/Builds_Delete.json | 20 -
.../examples/Builds_Get.json | 83 ---
.../Builds_ListByBuilderResource.json | 155 ------
specification/app/resource-manager/readme.md | 18 -
14 files changed, 2018 deletions(-)
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json
delete mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json
deleted file mode 100644
index 3cedd65bbffc..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builders.json
+++ /dev/null
@@ -1,501 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "ContainerApps API Client",
- "version": "2023-05-02-preview"
- },
- "schemes": [
- "https"
- ],
- "host": "management.azure.com",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "security": [
- {
- "azure_auth": [
- "user_impersonation"
- ]
- }
- ],
- "securityDefinitions": {
- "azure_auth": {
- "type": "oauth2",
- "description": "Azure Active Directory OAuth2 Flow.",
- "flow": "implicit",
- "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
- "scopes": {
- "user_impersonation": "impersonate your user account"
- }
- }
- },
- "paths": {
- "/subscriptions/{subscriptionId}/providers/Microsoft.App/builders": {
- "get": {
- "tags": [
- "Builders"
- ],
- "operationId": "Builders_ListBySubscription",
- "description": "List BuilderResource resources by subscription ID",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "ARM operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuilderCollection"
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- },
- "x-ms-examples": {
- "Builders_ListBySubscription_0": {
- "$ref": "./examples/Builders_ListBySubscription.json"
- }
- }
- }
- },
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders": {
- "get": {
- "tags": [
- "Builders"
- ],
- "operationId": "Builders_ListByResourceGroup",
- "description": "List BuilderResource resources by resource group",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "ARM operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuilderCollection"
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- },
- "x-ms-examples": {
- "Builders_ListByResourceGroup_0": {
- "$ref": "./examples/Builders_ListByResourceGroup.json"
- }
- }
- }
- },
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}": {
- "get": {
- "tags": [
- "Builders"
- ],
- "operationId": "Builders_Get",
- "description": "Get a BuilderResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "#/parameters/BuilderNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "ARM operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuilderResource"
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-examples": {
- "Builders_Get_0": {
- "$ref": "./examples/Builders_Get.json"
- }
- }
- },
- "put": {
- "tags": [
- "Builders"
- ],
- "operationId": "Builders_CreateOrUpdate",
- "description": "Create or update a BuilderResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "#/parameters/BuilderNameParameter"
- },
- {
- "name": "builderEnvelope",
- "in": "body",
- "required": true,
- "description": "Resource create parameters.",
- "schema": {
- "$ref": "#/definitions/BuilderResource"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ARM create or update operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuilderResource"
- }
- },
- "201": {
- "description": "ARM create or update operation has been started.",
- "schema": {
- "$ref": "#/definitions/BuilderResource"
- },
- "headers": {
- "Azure-AsyncOperation": {
- "type": "string"
- }
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-long-running-operation-options": {
- "final-state-via": "azure-async-operation"
- },
- "x-ms-long-running-operation": true,
- "x-ms-examples": {
- "Builders_CreateOrUpdate_0": {
- "$ref": "./examples/Builders_CreateOrUpdate.json"
- }
- }
- },
- "patch": {
- "tags": [
- "Builders"
- ],
- "operationId": "Builders_Update",
- "description": "Update a BuilderResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "#/parameters/BuilderNameParameter"
- },
- {
- "name": "builderEnvelope",
- "in": "body",
- "required": true,
- "description": "The resource properties to be updated.",
- "schema": {
- "$ref": "#/definitions/BuilderResourceUpdate"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ARM operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuilderResource"
- }
- },
- "202": {
- "description": "Resource update request accepted.",
- "headers": {
- "Location": {
- "type": "string"
- }
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-examples": {
- "Builders_Update_0": {
- "$ref": "./examples/Builders_Update.json"
- }
- },
- "x-ms-long-running-operation-options": {
- "final-state-via": "location"
- },
- "x-ms-long-running-operation": true
- },
- "delete": {
- "tags": [
- "Builders"
- ],
- "operationId": "Builders_Delete",
- "description": "Delete a BuilderResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "#/parameters/BuilderNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "Resource deleted successfully."
- },
- "202": {
- "description": "Resource deletion accepted.",
- "headers": {
- "Location": {
- "type": "string"
- }
- }
- },
- "204": {
- "description": "Resource deleted successfully."
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-examples": {
- "Builders_Delete_0": {
- "$ref": "./examples/Builders_Delete.json"
- }
- },
- "x-ms-long-running-operation-options": {
- "final-state-via": "location"
- },
- "x-ms-long-running-operation": true
- }
- }
- },
- "definitions": {
- "BuilderProperties": {
- "type": "object",
- "properties": {
- "provisioningState": {
- "$ref": "#/definitions/ProvisioningState",
- "description": "Provisioning state of a builder resource.",
- "readOnly": true
- },
- "environmentId": {
- "type": "string",
- "description": "Resource ID of the container apps environment that the builder is associated with."
- },
- "buildComputeId": {
- "type": "string",
- "description": "Resource ID of the compute that the builds will be performed on.",
- "readOnly": true
- },
- "patchComputeId": {
- "type": "string",
- "description": "Resource ID of the compute that the patching will be performed on.",
- "readOnly": true
- },
- "containerRegistries": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ContainerRegistry"
- },
- "x-ms-identifiers": [
- "containerRegistryServer"
- ],
- "description": "List of mappings of container registries and the managed identity used to connect to it."
- }
- },
- "description": "The builder properties.",
- "required": [
- "environmentId"
- ]
- },
- "BuilderResource": {
- "type": "object",
- "properties": {
- "properties": {
- "$ref": "#/definitions/BuilderProperties",
- "description": "The resource-specific properties for this resource.",
- "x-ms-client-flatten": true,
- "x-ms-mutability": [
- "read",
- "create"
- ]
- },
- "identity": {
- "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
- "description": "The managed service identities assigned to this resource."
- }
- },
- "description": "Information about the SourceToCloud builder resource.",
- "allOf": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
- }
- ]
- },
- "BuilderCollection": {
- "type": "object",
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/BuilderResource"
- },
- "description": "The BuilderResource items on this page"
- },
- "nextLink": {
- "type": "string",
- "format": "uri",
- "description": "The link to the next page of items"
- }
- },
- "description": "The response of a BuilderResource list operation.",
- "required": [
- "value"
- ]
- },
- "BuilderResourceUpdate": {
- "type": "object",
- "properties": {
- "identity": {
- "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
- "description": "The managed service identities assigned to this resource."
- },
- "tags": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Resource tags."
- },
- "properties": {
- "$ref": "#/definitions/BuilderResourceUpdateProperties",
- "x-ms-client-flatten": true
- }
- },
- "description": "The type used for update operations of the BuilderResource."
- },
- "BuilderResourceUpdateProperties": {
- "type": "object",
- "properties": {
- "environmentId": {
- "type": "string",
- "description": "Resource ID of the container apps environment that the builder is associated with."
- }
- },
- "description": "The updatable properties of the BuilderResource."
- },
- "ContainerRegistry": {
- "type": "object",
- "properties": {
- "containerRegistryServer": {
- "type": "string",
- "description": "Login server of the container registry."
- },
- "identityResourceId": {
- "type": "string",
- "description": "Resource ID of the managed identity."
- }
- },
- "description": "Model representing a mapping from a container registry to the identity used to connect to it.",
- "required": [
- "containerRegistryServer",
- "identityResourceId"
- ]
- },
- "ProvisioningState": {
- "type": "string",
- "description": "Resource instance provisioning state.",
- "enum": [
- "Succeeded",
- "Failed",
- "Canceled",
- "Creating",
- "Updating",
- "Deleting"
- ],
- "x-ms-enum": {
- "name": "ProvisioningState",
- "modelAsString": true
- },
- "readOnly": true
- }
- },
- "parameters": {
- "BuilderNameParameter": {
- "name": "builderName",
- "in": "path",
- "required": true,
- "description": "The name of the builder.",
- "minLength": 2,
- "maxLength": 32,
- "type": "string",
- "pattern": "^[-\\w\\._\\(\\)]+$",
- "x-ms-parameter-location": "method"
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json
deleted file mode 100644
index b2a03304c7c2..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Builds.json
+++ /dev/null
@@ -1,486 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "ContainerApps API Client",
- "version": "2023-05-02-preview"
- },
- "schemes": [
- "https"
- ],
- "host": "management.azure.com",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "security": [
- {
- "azure_auth": [
- "user_impersonation"
- ]
- }
- ],
- "securityDefinitions": {
- "azure_auth": {
- "type": "oauth2",
- "description": "Azure Active Directory OAuth2 Flow.",
- "flow": "implicit",
- "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
- "scopes": {
- "user_impersonation": "impersonate your user account"
- }
- }
- },
- "paths": {
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds": {
- "get": {
- "tags": [
- "Builds"
- ],
- "operationId": "Builds_ListByBuilderResource",
- "description": "List BuildResource resources by BuilderResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "./Builders.json#/parameters/BuilderNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "ARM operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuildCollection"
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- },
- "x-ms-examples": {
- "Builds_ListByBuilderResource_0": {
- "$ref": "./examples/Builds_ListByBuilderResource.json"
- }
- }
- }
- },
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}": {
- "get": {
- "tags": [
- "Builds"
- ],
- "operationId": "Builds_Get",
- "description": "Get a BuildResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "./Builders.json#/parameters/BuilderNameParameter"
- },
- {
- "$ref": "#/parameters/BuildNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "ARM operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuildResource"
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-examples": {
- "Builds_Get_0": {
- "$ref": "./examples/Builds_Get.json"
- }
- }
- },
- "put": {
- "tags": [
- "Builds"
- ],
- "operationId": "Builds_CreateOrUpdate",
- "description": "Create a BuildResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "./Builders.json#/parameters/BuilderNameParameter"
- },
- {
- "$ref": "#/parameters/BuildNameParameter"
- },
- {
- "name": "buildEnvelope",
- "in": "body",
- "required": true,
- "description": "Resource create or update parameters.",
- "schema": {
- "$ref": "#/definitions/BuildResource"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ARM create or update operation completed successfully.",
- "schema": {
- "$ref": "#/definitions/BuildResource"
- }
- },
- "201": {
- "description": "ARM create or update operation has been started.",
- "schema": {
- "$ref": "#/definitions/BuildResource"
- },
- "headers": {
- "Azure-AsyncOperation": {
- "type": "string"
- }
- }
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-long-running-operation-options": {
- "final-state-via": "azure-async-operation"
- },
- "x-ms-long-running-operation": true,
- "x-ms-examples": {
- "Builds_CreateOrUpdate_WithConfig": {
- "$ref": "./examples/Builds_CreateOrUpdate.json"
- },
- "Builds_CreateOrUpdate_NoConfig": {
- "$ref": "./examples/Builds_CreateOrUpdate_NoConfig.json"
- }
- }
- },
- "delete": {
- "tags": [
- "Builds"
- ],
- "operationId": "Builds_Delete",
- "description": "Delete a BuildResource",
- "parameters": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
- },
- {
- "$ref": "./Builders.json#/parameters/BuilderNameParameter"
- },
- {
- "$ref": "#/parameters/BuildNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "Resource deleted successfully."
- },
- "202": {
- "description": "Resource deletion accepted.",
- "headers": {
- "Location": {
- "type": "string"
- }
- }
- },
- "204": {
- "description": "Resource deleted successfully."
- },
- "default": {
- "description": "Common error response.",
- "schema": {
- "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
- }
- }
- },
- "x-ms-examples": {
- "Builds_Delete_0": {
- "$ref": "./examples/Builds_Delete.json"
- }
- },
- "x-ms-long-running-operation-options": {
- "final-state-via": "location"
- },
- "x-ms-long-running-operation": true
- }
- }
- },
- "definitions": {
- "BuildConfiguration": {
- "type": "object",
- "properties": {
- "baseOs": {
- "type": "string",
- "description": "Base OS used to build and run the app."
- },
- "platform": {
- "type": "string",
- "description": "Platform to be used to build and run the app."
- },
- "platformVersion": {
- "type": "string",
- "description": "Platform version to be used to build and run the app."
- },
- "environmentVariables": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/EnvironmentVariable"
- },
- "x-ms-identifiers": [
- "name"
- ],
- "description": "List of environment variables to be passed to the build and application runtime."
- },
- "preBuildSteps": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PreBuildStep"
- },
- "x-ms-identifiers": [],
- "description": "List of steps to perform before the build."
- }
- },
- "description": "Configuration of the build."
- },
- "BuildProperties": {
- "type": "object",
- "properties": {
- "provisioningState": {
- "$ref": "#/definitions/ProvisioningState",
- "description": "Build provisioning state.",
- "readOnly": true
- },
- "buildStatus": {
- "$ref": "#/definitions/BuildStatus",
- "description": "Status of the build once it has been provisioned.",
- "readOnly": true
- },
- "destinationContainerRegistry": {
- "$ref": "#/definitions/ContainerRegistryWithCustomImage",
- "description": "Container registry that the final image will be uploaded to."
- },
- "configuration": {
- "$ref": "#/definitions/BuildConfiguration",
- "description": "Configuration of the build."
- },
- "uploadEndpoint": {
- "type": "string",
- "description": "Endpoint to which the source code should be uploaded.",
- "readOnly": true
- }
- },
- "description": "The build properties."
- },
- "BuildResource": {
- "type": "object",
- "properties": {
- "properties": {
- "$ref": "#/definitions/BuildProperties",
- "description": "The resource-specific properties for this resource.",
- "x-ms-client-flatten": true,
- "x-ms-mutability": [
- "read",
- "create"
- ]
- }
- },
- "description": "Information pertaining to an individual build.",
- "allOf": [
- {
- "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
- }
- ]
- },
- "BuildCollection": {
- "type": "object",
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/BuildResource"
- },
- "description": "The BuildResource items on this page"
- },
- "nextLink": {
- "type": "string",
- "format": "uri",
- "description": "The link to the next page of items"
- }
- },
- "description": "The response of a BuildResource list operation.",
- "required": [
- "value"
- ]
- },
- "BuildStatus": {
- "type": "string",
- "description": "Status of the build once it has been provisioned.",
- "enum": [
- "NotStarted",
- "InProgress",
- "Succeeded",
- "Canceled",
- "Failed"
- ],
- "x-ms-enum": {
- "name": "BuildStatus",
- "modelAsString": true
- }
- },
- "ContainerRegistryWithCustomImage": {
- "type": "object",
- "properties": {
- "server": {
- "type": "string",
- "description": "Login server of the container registry that the final image should be uploaded to. Builder resource needs to have this container registry defined along with an identity to use to access it."
- },
- "image": {
- "type": "string",
- "description": "Full name that the final image should be uploaded as, including both image name and tag."
- }
- },
- "description": "Container registry that the final image will be uploaded to.",
- "required": [
- "server"
- ]
- },
- "EnvironmentVariable": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "Environment variable name."
- },
- "value": {
- "type": "string",
- "description": "Environment variable value."
- }
- },
- "description": "Model representing an environment variable.",
- "required": [
- "name",
- "value"
- ]
- },
- "HttpGet": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "description": "URL to make HTTP GET request against."
- },
- "fileName": {
- "type": "string",
- "description": "Name of the file that the request should be saved to."
- },
- "headers": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of headers to send with the request."
- }
- },
- "description": "Model representing a http get request.",
- "required": [
- "url"
- ]
- },
- "PreBuildStep": {
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "description": "Description of the pre-build step."
- },
- "scripts": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of custom commands to run."
- },
- "httpGet": {
- "$ref": "#/definitions/HttpGet",
- "description": "Http get request to send before the build.",
- "x-ms-identifiers": []
- }
- },
- "description": "Model representing a pre-build step."
- },
- "ProvisioningState": {
- "type": "string",
- "description": "Resource instance provisioning state.",
- "enum": [
- "Succeeded",
- "Failed",
- "Canceled",
- "Creating",
- "Updating",
- "Deleting"
- ],
- "x-ms-enum": {
- "name": "ProvisioningState",
- "modelAsString": true
- },
- "readOnly": true
- }
- },
- "parameters": {
- "BuildNameParameter": {
- "name": "buildName",
- "in": "path",
- "required": true,
- "description": "The name of a build.",
- "minLength": 2,
- "maxLength": 64,
- "type": "string",
- "pattern": "^[-\\w\\._\\(\\)]+$",
- "x-ms-parameter-location": "method"
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json
deleted file mode 100644
index ffe6262d417b..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_CreateOrUpdate.json
+++ /dev/null
@@ -1,132 +0,0 @@
-{
- "operationId": "Builders_CreateOrUpdate",
- "title": "Builders_CreateOrUpdate_0",
- "parameters": {
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder",
- "api-version": "2023-05-02-preview",
- "builderEnvelope": {
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}
- }
- },
- "properties": {
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "tags": {
- "company": "Microsoft"
- },
- "location": "eastus"
- }
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
- "name": "testBuilder",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Succeeded",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "company": "Microsoft"
- }
- }
- },
- "201": {
- "headers": {
- "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
- },
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
- "name": "testBuilder",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Creating",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "company": "Microsoft"
- }
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json
deleted file mode 100644
index 2d037d75af43..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Delete.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "operationId": "Builders_Delete",
- "title": "Builders_Delete_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder"
- },
- "responses": {
- "200": {},
- "202": {
- "headers": {
- "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
- }
- },
- "204": {}
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json
deleted file mode 100644
index 345984537260..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Get.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "operationId": "Builders_Get",
- "title": "Builders_Get_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder"
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
- "name": "testBuilder",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Succeeded",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "key": "value"
- }
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json
deleted file mode 100644
index 5604ec09b848..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListByResourceGroup.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "operationId": "Builders_ListByResourceGroup",
- "title": "Builders_ListByResourceGroup_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg"
- },
- "responses": {
- "200": {
- "headers": {},
- "body": {
- "value": [
- {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder1",
- "name": "testBuilder1",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Succeeded",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "key": "value"
- }
- },
- {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder2",
- "name": "testBuilder2",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Succeeded",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "key": "value"
- }
- }
- ]
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json
deleted file mode 100644
index b09dd74b2890..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_ListBySubscription.json
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "operationId": "Builders_ListBySubscription",
- "title": "Builders_ListBySubscription_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000"
- },
- "responses": {
- "200": {
- "headers": {},
- "body": {
- "value": [
- {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.App/builders/testBuilder1",
- "name": "testBuilder1",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Succeeded",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "key": "value"
- }
- },
- {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg2/providers/Microsoft.App/builders/testBuilder2",
- "name": "testBuilder2",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Succeeded",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "key": "value"
- }
- }
- ]
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json
deleted file mode 100644
index ad441a417b37..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builders_Update.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "operationId": "Builders_Update",
- "title": "Builders_Update_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder",
- "builderEnvelope": {
- "tags": {
- "mytag1": "myvalue1"
- }
- }
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder",
- "name": "testBuilder",
- "type": "Microsoft.App/builders",
- "location": "eastus",
- "identity": {
- "type": "SystemAssigned,UserAssigned",
- "principalId": "00000000-0000-0000-0000-000000000000",
- "tenantId": "00000000-0000-0000-0000-000000000000",
- "userAssignedIdentities": {
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {
- "clientId": "00000000-0000-0000-0000-000000000000",
- "principalId": "00000000-0000-0000-0000-000000000000"
- }
- }
- },
- "properties": {
- "provisioningState": "Succeeded",
- "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv",
- "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234",
- "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234",
- "containerRegistries": [
- {
- "containerRegistryServer": "test.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- },
- {
- "containerRegistryServer": "test2.azurecr.io",
- "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
- }
- ]
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- },
- "tags": {
- "mytag1": "myvalue1"
- }
- }
- },
- "202": {
- "headers": {
- "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json
deleted file mode 100644
index 8b631e638af9..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate.json
+++ /dev/null
@@ -1,210 +0,0 @@
-{
- "operationId": "Builds_CreateOrUpdate",
- "title": "Builds_CreateOrUpdate_WithConfig",
- "parameters": {
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder",
- "buildName": "testBuild-123456789az",
- "api-version": "2023-05-02-preview",
- "buildEnvelope": {
- "properties": {
- "destinationContainerRegistry": {
- "server": "test.azurecr.io",
- "image": "test.azurecr.io/repo:tag"
- },
- "configuration": {
- "baseOs": "DebianBullseye",
- "platform": "dotnetcore",
- "platformVersion": "7.0",
- "environmentVariables": [
- {
- "name": "foo1",
- "value": "bar1"
- },
- {
- "name": "foo2",
- "value": "bar2"
- }
- ],
- "preBuildSteps": [
- {
- "description": "First pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'world'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo",
- "bar"
- ]
- }
- },
- {
- "description": "Second pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'again'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo"
- ]
- }
- }
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild-123456789az",
- "name": "testBuild-123456789az",
- "type": "Microsoft.App/builders/builds",
- "properties": {
- "provisioningState": "Succeeded",
- "buildStatus": "InProgress",
- "destinationContainerRegistry": {
- "server": "test.azurecr.io",
- "image": "test.azurecr.io/repo:tag"
- },
- "configuration": {
- "baseOs": "DebianBullseye",
- "platform": "dotnetcore",
- "platformVersion": "7.0",
- "environmentVariables": [
- {
- "name": "foo1",
- "value": "bar1"
- },
- {
- "name": "foo2",
- "value": "bar2"
- }
- ],
- "preBuildSteps": [
- {
- "description": "First pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'world'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo",
- "bar"
- ]
- }
- },
- {
- "description": "Second pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'again'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo"
- ]
- }
- }
- ]
- },
- "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- }
- }
- },
- "201": {
- "headers": {
- "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
- },
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
- "name": "testBuild",
- "type": "Microsoft.App/build",
- "properties": {
- "provisioningState": "Creating",
- "buildStatus": "NotStarted",
- "destinationContainerRegistry": {
- "server": "test.azurecr.io",
- "image": "test.azurecr.io/repo:tag"
- },
- "configuration": {
- "baseOs": "DebianBullseye",
- "platform": "dotnetcore",
- "platformVersion": "7.0",
- "environmentVariables": [
- {
- "name": "foo1",
- "value": "bar1"
- },
- {
- "name": "foo2",
- "value": "bar2"
- }
- ],
- "preBuildSteps": [
- {
- "description": "First pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'world'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo",
- "bar"
- ]
- }
- },
- {
- "description": "Second pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'again'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo"
- ]
- }
- }
- ]
- },
- "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- }
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
deleted file mode 100644
index 4a9d08b11268..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_CreateOrUpdate_NoConfig.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "operationId": "Builds_CreateOrUpdate",
- "title": "Builds_CreateOrUpdate_NoConfig",
- "parameters": {
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder",
- "buildName": "testBuild",
- "api-version": "2023-05-02-preview",
- "buildEnvelope": {}
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
- "name": "testBuild",
- "type": "Microsoft.App/builders/builds",
- "properties": {
- "provisioningState": "Succeeded",
- "buildStatus": "InProgress",
- "uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- }
- }
- },
- "201": {
- "headers": {
- "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
- },
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
- "name": "testBuild",
- "type": "Microsoft.App/build",
- "properties": {
- "provisioningState": "Creating",
- "buildStatus": "InProgress",
- "uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- }
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json
deleted file mode 100644
index 12fa3dfd99a2..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Delete.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "operationId": "Builds_Delete",
- "title": "Builds_Delete_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder",
- "buildName": "testBuild"
- },
- "responses": {
- "200": {},
- "202": {
- "headers": {
- "Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
- }
- },
- "204": {}
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json
deleted file mode 100644
index b141c3463d47..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_Get.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "operationId": "Builds_Get",
- "title": "Builds_Get_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder",
- "buildName": "testBuild"
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild",
- "name": "testBuild",
- "type": "Microsoft.App/builders/builds",
- "properties": {
- "provisioningState": "Succeeded",
- "buildStatus": "InProgress",
- "destinationContainerRegistry": {
- "server": "test.azurecr.io",
- "image": "test.azurecr.io/repo:tag"
- },
- "configuration": {
- "baseOs": "DebianBullseye",
- "platform": "dotnetcore",
- "platformVersion": "7.0",
- "environmentVariables": [
- {
- "name": "foo1",
- "value": "bar1"
- },
- {
- "name": "foo2",
- "value": "bar2"
- }
- ],
- "preBuildSteps": [
- {
- "description": "First pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'world'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo",
- "bar"
- ]
- }
- },
- {
- "description": "Second pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'again'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo"
- ]
- }
- }
- ]
- },
- "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- }
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json
deleted file mode 100644
index 86d1f2ae402d..000000000000
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Builds_ListByBuilderResource.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "operationId": "Builds_ListByBuilderResource",
- "title": "Builds_ListByBuilderResource_0",
- "parameters": {
- "api-version": "2023-05-02-preview",
- "subscriptionId": "00000000-0000-0000-0000-000000000000",
- "resourceGroupName": "rg",
- "builderName": "testBuilder"
- },
- "responses": {
- "200": {
- "headers": {},
- "body": {
- "value": [
- {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild1",
- "name": "testBuild1",
- "type": "Microsoft.App/builders/builds",
- "properties": {
- "provisioningState": "Succeeded",
- "buildStatus": "InProgress",
- "destinationContainerRegistry": {
- "server": "test.azurecr.io",
- "image": "test.azurecr.io/repo:tag"
- },
- "configuration": {
- "baseOs": "DebianBullseye",
- "platform": "dotnetcore",
- "platformVersion": "7.0",
- "environmentVariables": [
- {
- "name": "foo1",
- "value": "bar1"
- },
- {
- "name": "foo2",
- "value": "bar2"
- }
- ],
- "preBuildSteps": [
- {
- "description": "First pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'world'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo",
- "bar"
- ]
- }
- },
- {
- "description": "Second pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'again'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo"
- ]
- }
- }
- ]
- },
- "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- }
- },
- {
- "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder/builds/testBuild2",
- "name": "testBuild2",
- "type": "Microsoft.App/builders/builds",
- "properties": {
- "provisioningState": "Succeeded",
- "buildStatus": "InProgress",
- "destinationContainerRegistry": {
- "server": "test.azurecr.io",
- "image": "test.azurecr.io/repo:tag"
- },
- "configuration": {
- "baseOs": "DebianBullseye",
- "platform": "dotnetcore",
- "platformVersion": "7.0",
- "environmentVariables": [
- {
- "name": "foo1",
- "value": "bar1"
- },
- {
- "name": "foo2",
- "value": "bar2"
- }
- ],
- "preBuildSteps": [
- {
- "description": "First pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'world'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo",
- "bar"
- ]
- }
- },
- {
- "description": "Second pre build step.",
- "scripts": [
- "echo 'hello'",
- "echo 'again'"
- ],
- "httpGet": {
- "url": "https://microsoft.com",
- "fileName": "output.txt",
- "headers": [
- "foo"
- ]
- }
- }
- ]
- },
- "uploadEndpoint": "foo.azurecontainerapps.dev/upload"
- },
- "systemData": {
- "createdBy": "sample@microsoft.com",
- "createdByType": "User",
- "createdAt": "2022-10-11T11:05:51.4940669Z",
- "lastModifiedBy": "sample@microsoft.com",
- "lastModifiedByType": "User",
- "lastModifiedAt": "2022-10-11T11:05:51.4940669Z"
- }
- }
- ]
- }
- }
- }
-}
diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md
index 3f8eb8701a50..1cabacdf8058 100644
--- a/specification/app/resource-manager/readme.md
+++ b/specification/app/resource-manager/readme.md
@@ -39,8 +39,6 @@ input-file:
- Microsoft.App/preview/2023-05-02-preview/AuthConfigs.json
- Microsoft.App/preview/2023-05-02-preview/AvailableWorkloadProfiles.json
- Microsoft.App/preview/2023-05-02-preview/BillingMeters.json
- - Microsoft.App/preview/2023-05-02-preview/Builders.json
- - Microsoft.App/preview/2023-05-02-preview/Builds.json
- Microsoft.App/preview/2023-05-02-preview/CommonDefinitions.json
- Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironments.json
- Microsoft.App/preview/2023-05-02-preview/ConnectedEnvironmentsCertificates.json
@@ -56,22 +54,6 @@ input-file:
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
- Microsoft.App/preview/2023-05-02-preview/SourceControls.json
- Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
-directive:
- - suppress: OperationIdNounVerb
- from: Builds.json
- reason: |
- The linting thinks that 'Builder' in 'Builds_ListByBuilderResource' is a noun, while it
- is really the parent.
- - suppress: LroErrorContent
- from: Builds.json
- reason: |
- We are not using the common error response for these new resources to promote consistency
- with the rest of the Microsoft.App RP, as it also doesn't use the common-types error.
- - suppress: LroErrorContent
- from: Builders.json
- reason: |
- We are not using the common error response for these new resources to promote consistency
- with the rest of the Microsoft.App RP, as it also doesn't use the common-types error.
```
### Tag: package-preview-2023-04
From 5cb80c7d6f6d762dd115a73e4bf4b8cbfa2a1cbd Mon Sep 17 00:00:00 2001
From: anandanthony
Date: Fri, 28 Jul 2023 11:39:33 -0500
Subject: [PATCH 13/15] Anfranci/fixstartexectemplateabv0423 (#24863)
* fix start job exec template required property
* fix start job exec template required property
* fix start job exec template required property
* fix start job exec template required property
---
.../Microsoft.App/preview/2022-11-01-preview/Jobs.json | 6 +++---
.../Microsoft.App/preview/2023-04-01-preview/Jobs.json | 6 +++---
.../Microsoft.App/preview/2023-05-02-preview/Jobs.json | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json
index 4ff16aba1ff7..2842db8f0521 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/Jobs.json
@@ -352,8 +352,8 @@
{
"name": "template",
"in": "body",
- "description": "Properties used to start a job instance.",
- "required": true,
+ "description": "Properties used to start a job execution.",
+ "required": false,
"schema": {
"$ref": "#/definitions/JobExecutionTemplate"
}
@@ -654,7 +654,7 @@
"triggerType": {
"description": "Trigger type of the job",
"enum": [
- "Scheduled",
+ "Schedule",
"Event",
"Manual"
],
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json
index 8736900cd2d3..6432dc1fd423 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/Jobs.json
@@ -333,8 +333,8 @@
{
"name": "template",
"in": "body",
- "description": "Properties used to start a job instance.",
- "required": true,
+ "description": "Properties used to start a job execution.",
+ "required": false,
"schema": {
"$ref": "#/definitions/JobExecutionTemplate"
}
@@ -666,7 +666,7 @@
"triggerType": {
"description": "Trigger type of the job",
"enum": [
- "Scheduled",
+ "Schedule",
"Event",
"Manual"
],
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
index b1857282f369..150d1ffddbf5 100644
--- a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Jobs.json
@@ -333,8 +333,8 @@
{
"name": "template",
"in": "body",
- "description": "Properties used to start a job instance.",
- "required": true,
+ "description": "Properties used to start a job execution.",
+ "required": false,
"schema": {
"$ref": "#/definitions/JobExecutionTemplate"
}
From 87db3d1ce61beceb5b1cf1675863105ded820c98 Mon Sep 17 00:00:00 2001
From: Zunli Hu
Date: Sat, 29 Jul 2023 00:51:45 +0800
Subject: [PATCH 14/15] Add list usages api for Microsoft.App (#24833)
* add api
* update
* update
* update
* update
---
.../preview/2023-05-02-preview/Usages.json | 188 ++++++++++++++++++
.../ManagedEnvironmentUsages_List.json | 25 +++
.../examples/Usages_List.json | 33 +++
specification/app/resource-manager/readme.md | 1 +
4 files changed, 247 insertions(+)
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Usages.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentUsages_List.json
create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Usages_List.json
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Usages.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Usages.json
new file mode 100644
index 000000000000..da58c29da79c
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/Usages.json
@@ -0,0 +1,188 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2023-05-02-preview",
+ "title": "ContainerApps API Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/usages": {
+ "get": {
+ "tags": [
+ "Usages"
+ ],
+ "operationId": "Usages_List",
+ "description": "Gets, for the specified location, the current resource usage information as well as the limits under the subscription.",
+ "parameters": [
+ {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The location for which resource usage is queried.",
+ "pattern": "^[-\\w\\._]+$"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ListUsagesResult"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List usages": {
+ "$ref": "./examples/Usages_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/usages": {
+ "get": {
+ "tags": [
+ "Usages"
+ ],
+ "operationId": "ManagedEnvironmentUsages_List",
+ "description": "Gets the current usage information as well as the limits for environment.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "environmentName",
+ "in": "path",
+ "description": "Name of the Environment.",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._]+$"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ListUsagesResult"
+ }
+ },
+ "default": {
+ "description": "Common error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List managed environment usages": {
+ "$ref": "./examples/ManagedEnvironmentUsages_List.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "UsageName": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string",
+ "description": "The name of the resource."
+ },
+ "localizedValue": {
+ "type": "string",
+ "description": "The localized name of the resource."
+ }
+ },
+ "description": "The Usage Names."
+ },
+ "Usage": {
+ "type": "object",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "description": "An enum describing the unit of usage measurement.",
+ "enum": [
+ "Count"
+ ],
+ "x-ms-enum": {
+ "name": "UsageUnit",
+ "modelAsString": false
+ }
+ },
+ "currentValue": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The current usage of the resource."
+ },
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The maximum permitted usage of the resource."
+ },
+ "name": {
+ "$ref": "#/definitions/UsageName",
+ "description": "The name of the type of usage."
+ }
+ },
+ "required": [
+ "unit",
+ "currentValue",
+ "limit",
+ "name"
+ ],
+ "description": "Describes Compute Resource Usage."
+ },
+ "ListUsagesResult": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Usage"
+ },
+ "x-ms-identifiers": [
+ "name"
+ ],
+ "description": "The list of compute resource usages."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentUsages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentUsages_List.json
new file mode 100644
index 000000000000..c414f14a5573
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/ManagedEnvironmentUsages_List.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "subid",
+ "resourceGroupName": "examplerg",
+ "environmentName": "jlaw-demo1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "currentValue": 5,
+ "limit": 10,
+ "name": {
+ "localizedValue": "Managed Environment Consumption Cores",
+ "value": "ManagedEnvironmentConsumptionCores"
+ },
+ "unit": "Count"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Usages_List.json b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Usages_List.json
new file mode 100644
index 000000000000..0547a190eced
--- /dev/null
+++ b/specification/app/resource-manager/Microsoft.App/preview/2023-05-02-preview/examples/Usages_List.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "location": "westus",
+ "api-version": "2023-05-02-preview",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "currentValue": 5,
+ "limit": 10,
+ "name": {
+ "localizedValue": "ManagedEnvironmentCount",
+ "value": "ManagedEnvironmentCount"
+ },
+ "unit": "Count"
+ },
+ {
+ "currentValue": 3,
+ "limit": 20,
+ "name": {
+ "localizedValue": "ManagedEnvironmentCores",
+ "value": "ManagedEnvironmentCores"
+ },
+ "unit": "Count"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md
index 1cabacdf8058..1c8eee13567c 100644
--- a/specification/app/resource-manager/readme.md
+++ b/specification/app/resource-manager/readme.md
@@ -54,6 +54,7 @@ input-file:
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
- Microsoft.App/preview/2023-05-02-preview/SourceControls.json
- Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
+ - Microsoft.App/preview/2023-05-02-preview/Usages.json
```
### Tag: package-preview-2023-04
From 08704195f80f5f60bdb3cfa9d03b52688ab67a73 Mon Sep 17 00:00:00 2001
From: Juliehzl
Date: Fri, 11 Aug 2023 13:27:10 +0800
Subject: [PATCH 15/15] empty line
---
specification/app/resource-manager/readme.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/specification/app/resource-manager/readme.md b/specification/app/resource-manager/readme.md
index fc182583a4b2..f066ec6edb63 100644
--- a/specification/app/resource-manager/readme.md
+++ b/specification/app/resource-manager/readme.md
@@ -55,6 +55,7 @@ input-file:
- Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
- Microsoft.App/preview/2023-05-02-preview/Usages.json
```
+
### Tag: package-2023-05
These settings apply only when `--tag=package-2023-05` is specified on the command line.