From b5b83cc1a60f1a577b37a40d7a5d96f9534f2a02 Mon Sep 17 00:00:00 2001 From: Ayush Date: Tue, 7 Dec 2021 19:50:32 -0500 Subject: [PATCH 1/7] fix changes --- .../managedapplications.json | 13 ++++ .../2019-07-01/managedapplications.json | 13 ++++ .../2021-07-01/managedapplications.json | 68 ++++++++++++++++++- 3 files changed, 92 insertions(+), 2 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 285104f4ea18..85cac05caeeb 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -290,6 +290,12 @@ "$ref": "#/definitions/Application" } }, + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1931,6 +1937,13 @@ "type": "string" }, "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." } }, "description": "Managed application locking policy." diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index df4427a208ec..5de70c66677b 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -284,6 +284,12 @@ "$ref": "#/definitions/Application" } }, + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1918,6 +1924,13 @@ "type": "string" }, "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." } }, "description": "Managed application locking policy." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 7347bef5d809..b134bf5e33c9 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -254,6 +254,12 @@ "$ref": "#/definitions/Application" } }, + "202": { + "description": "Accepted - Returns information about the managed application, including provisioning status.", + "schema": { + "$ref": "#/definitions/Application" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -986,7 +992,7 @@ "pattern": "^[-\\w\\._,\\(\\)]+$" }, "identity": { - "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity", + "$ref": "#/definitions/Identity", "description": "The identity of the resource." } }, @@ -1019,7 +1025,7 @@ "pattern": "^[-\\w\\._,\\(\\)]+$" }, "identity": { - "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity", + "$ref": "#/definitions/Identity", "description": "The identity of the resource." } }, @@ -1367,6 +1373,57 @@ ], "description": "SKU for the resource." }, + "Identity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal ID of resource identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant ID of resource." + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/userAssignedResourceIdentity" + }, + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "userAssignedResourceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of user assigned identity." + } + }, + "description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" + }, "Resource": { "type": "object", "properties": { @@ -1596,6 +1653,13 @@ "type": "string" }, "description": "The deny assignment excluded actions." + }, + "allowedDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The deny assignment excluded actions." } }, "description": "Managed application locking policy." From 0a3d9aa52ff01a6854b8aede374e465852797756 Mon Sep 17 00:00:00 2001 From: Ayush Date: Mon, 13 Dec 2021 14:57:13 -0500 Subject: [PATCH 2/7] added 202 example --- .../examples/createOrUpdateApplication.json | 20 +++++++++++++++++++ .../examples/createOrUpdateApplication.json | 20 +++++++++++++++++++ .../examples/createOrUpdateApplication.json | 20 +++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json index 26d0ac01f2a8..9818db0eef92 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json @@ -52,6 +52,26 @@ "provisioningState": "Created" } } + }, + "202": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } } } } diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json index 57f181b155ef..af74b4b42989 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json @@ -57,6 +57,26 @@ "provisioningState": "Created" } } + }, + "202": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json index 80bb1d0bd58d..bcbe752728e8 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json @@ -52,6 +52,26 @@ "provisioningState": "Created" } } + }, + "202": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } } } } From be2e0625e22e7746486ddc53edbb49303abc4f1b Mon Sep 17 00:00:00 2001 From: Ayush Date: Mon, 13 Dec 2021 15:37:37 -0500 Subject: [PATCH 3/7] Fix update --- .../examples/createOrUpdateApplication.json | 20 ------------------- .../examples/createOrUpdateApplication.json | 20 ------------------- .../examples/createOrUpdateApplication.json | 20 ------------------- .../examples/updateApplication.json | 20 +++++++++++++++++++ 4 files changed, 20 insertions(+), 60 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json index 9818db0eef92..26d0ac01f2a8 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/createOrUpdateApplication.json @@ -52,26 +52,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": {}, - "body": { - "name": "myManagedApplication", - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", - "type": "Microsoft.Solutions/applications", - "managedBy": null, - "plan": null, - "identity": null, - "kind": "ServiceCatalog", - "sku": null, - "properties": { - "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", - "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", - "outputs": null, - "parameters": null, - "provisioningState": "Created" - } - } } } } diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json index af74b4b42989..57f181b155ef 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/createOrUpdateApplication.json @@ -57,26 +57,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": {}, - "body": { - "name": "myManagedApplication", - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", - "type": "Microsoft.Solutions/applications", - "managedBy": null, - "plan": null, - "identity": null, - "kind": "ServiceCatalog", - "sku": null, - "properties": { - "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", - "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", - "outputs": null, - "parameters": null, - "provisioningState": "Created" - } - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json index bcbe752728e8..80bb1d0bd58d 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/createOrUpdateApplication.json @@ -52,26 +52,6 @@ "provisioningState": "Created" } } - }, - "202": { - "headers": {}, - "body": { - "name": "myManagedApplication", - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", - "type": "Microsoft.Solutions/applications", - "managedBy": null, - "plan": null, - "identity": null, - "kind": "ServiceCatalog", - "sku": null, - "properties": { - "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", - "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", - "outputs": null, - "parameters": null, - "provisioningState": "Created" - } - } } } } diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json index 63c25deb6d3d..8ff690b9f7b0 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json @@ -32,6 +32,26 @@ "provisioningState": "Created" } } + }, + "202": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } } } } From 6806bb74d5a254e913e3683814c8fe6838d318e5 Mon Sep 17 00:00:00 2001 From: Ayush Date: Mon, 13 Dec 2021 18:48:51 -0500 Subject: [PATCH 4/7] fixed issue --- .../stable/2021-07-01/managedapplications.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index b134bf5e33c9..19531d8a278f 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -255,10 +255,7 @@ } }, "202": { - "description": "Accepted - Returns information about the managed application, including provisioning status.", - "schema": { - "$ref": "#/definitions/Application" - } + "description": "Accepted - Returns this status until the asynchronous operation has completed." }, "default": { "description": "Error response describing why the operation failed.", @@ -1659,7 +1656,7 @@ "items": { "type": "string" }, - "description": "The deny assignment excluded actions." + "description": "The deny assignment excluded data actions." } }, "description": "Managed application locking policy." From 72c8474b77baaa74e343001b0fa244faeac97832 Mon Sep 17 00:00:00 2001 From: Ayush Date: Mon, 13 Dec 2021 18:49:02 -0500 Subject: [PATCH 5/7] fixed --- .../managedapplications.json | 7 ++----- .../2019-07-01/managedapplications.json | 7 ++----- .../examples/updateApplication.json | 19 ++----------------- 3 files changed, 6 insertions(+), 27 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 85cac05caeeb..231f22f239b8 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -291,10 +291,7 @@ } }, "202": { - "description": "Accepted - Returns information about the managed application, including provisioning status.", - "schema": { - "$ref": "#/definitions/Application" - } + "description": "Accepted - Returns this status until the asynchronous operation has completed." }, "default": { "description": "Error response describing why the operation failed.", @@ -1943,7 +1940,7 @@ "items": { "type": "string" }, - "description": "The deny assignment excluded actions." + "description": "The deny assignment excluded data actions." } }, "description": "Managed application locking policy." diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index 5de70c66677b..cb7d9dc0418c 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -285,10 +285,7 @@ } }, "202": { - "description": "Accepted - Returns information about the managed application, including provisioning status.", - "schema": { - "$ref": "#/definitions/Application" - } + "description": "Accepted - Returns this status until the asynchronous operation has completed." }, "default": { "description": "Error response describing why the operation failed.", @@ -1930,7 +1927,7 @@ "items": { "type": "string" }, - "description": "The deny assignment excluded actions." + "description": "The deny assignment excluded data actions." } }, "description": "Managed application locking policy." diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json index 8ff690b9f7b0..b9722b2d6d2e 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/updateApplication.json @@ -34,23 +34,8 @@ } }, "202": { - "headers": {}, - "body": { - "name": "myManagedApplication", - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", - "type": "Microsoft.Solutions/applications", - "managedBy": null, - "plan": null, - "identity": null, - "kind": "ServiceCatalog", - "sku": null, - "properties": { - "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", - "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", - "outputs": null, - "parameters": null, - "provisioningState": "Created" - } + "headers": { + "location": "https://url.to.query" } } } From 54e6b82bfbab01b5c7e082159608d06600da2dc5 Mon Sep 17 00:00:00 2001 From: Ayush Date: Mon, 13 Dec 2021 19:22:42 -0500 Subject: [PATCH 6/7] added type --- .../stable/2021-07-01/managedapplications.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json index 19531d8a278f..67bae8f35a19 100644 --- a/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json +++ b/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/managedapplications.json @@ -1371,6 +1371,7 @@ "description": "SKU for the resource." }, "Identity": { + "type": "object", "properties": { "principalId": { "readOnly": true, @@ -1407,6 +1408,7 @@ "description": "Identity for the resource." }, "userAssignedResourceIdentity": { + "type": "object", "properties": { "principalId": { "readOnly": true, From dbcc8481ae21f0cd096469c8e146adedd3323578 Mon Sep 17 00:00:00 2001 From: Ayush Date: Tue, 4 Jan 2022 17:59:22 -0500 Subject: [PATCH 7/7] Add example for update application --- .../examples/updateApplication.json | 42 +++++++++++++++++++ .../managedapplications.json | 5 +++ .../examples/updateApplication.json | 42 +++++++++++++++++++ .../2019-07-01/managedapplications.json | 5 +++ 4 files changed, 94 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json diff --git a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json new file mode 100644 index 000000000000..b9722b2d6d2e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/examples/updateApplication.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "202": { + "headers": { + "location": "https://url.to.query" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json index 231f22f239b8..c076ddc41af3 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/preview/2020-08-21-preview/managedapplications.json @@ -248,6 +248,11 @@ ], "operationId": "Applications_Update", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName", diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json new file mode 100644 index 000000000000..b9722b2d6d2e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/examples/updateApplication.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2021-07-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "202": { + "headers": { + "location": "https://url.to.query" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json index cb7d9dc0418c..49a2f615d2cd 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2019-07-01/managedapplications.json @@ -242,6 +242,11 @@ ], "operationId": "Applications_Update", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Create or update managed application": { + "$ref": "./examples/updateApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName",