From f2440eef137d7771217b9924ce941e876363afe9 Mon Sep 17 00:00:00 2001 From: Vasundhra Manhas Date: Fri, 8 Oct 2021 00:06:34 +0530 Subject: [PATCH] adding "x-ms-azure-resource": true to dataMigration service and project (because of the error : The 200 response model for an ARM PUT operation must have x-ms-azure-resource extension set to true in its hierarchy. Operation: 'Services_CreateOrUpdate' Model: 'DataMigrationService'. Location: Microsoft.DataMigration/preview/2021-10-30-preview/datamigration.json#L97) also, removing x-ms-azure-resource from trackedResource --- .../stable/2021-06-30/definitions/Common.json | 3 +-- .../stable/2021-06-30/definitions/Projects.json | 3 ++- .../stable/2021-06-30/definitions/Services.json | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Common.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Common.json index e9dbd8fb0c9b..6ceea65f509c 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Common.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Common.json @@ -236,8 +236,7 @@ { "$ref": "#/definitions/Resource" } - ], - "x-ms-azure-resource": true + ] }, "ConnectionInfo": { "type": "object", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Projects.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Projects.json index d1ebe585c4e6..1b596431f059 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Projects.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Projects.json @@ -36,7 +36,8 @@ { "$ref": "./Common.json#/definitions/TrackedResource" } - ] + ], + "x-ms-azure-resource": true }, "ProjectList": { "type": "object", diff --git a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Services.json b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Services.json index 09fb24e43619..fd973b81e936 100644 --- a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Services.json +++ b/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/definitions/Services.json @@ -111,7 +111,8 @@ { "$ref": "./Common.json#/definitions/TrackedResource" } - ] + ], + "x-ms-azure-resource": true }, "DataMigrationServiceList": { "type": "object",