From bdd8912560cdadfe6f79c8f7b431d7d9413580c0 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 18 Oct 2024 15:28:32 +0800 Subject: [PATCH] Location can't be changed for resources. --- packages/cadl-ranch-specs/cadl-ranch-summary.md | 3 +-- .../http/azure/resource-manager/resources/mockapi.ts | 3 +-- .../http/azure/resource-manager/resources/singleton.tsp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/cadl-ranch-specs/cadl-ranch-summary.md b/packages/cadl-ranch-specs/cadl-ranch-summary.md index d613aa830..997161e40 100644 --- a/packages/cadl-ranch-specs/cadl-ranch-summary.md +++ b/packages/cadl-ranch-specs/cadl-ranch-summary.md @@ -1172,7 +1172,6 @@ Expected request body: ```json { - "location": "eastus2", "properties": { "description": "valid2" } @@ -1186,7 +1185,7 @@ Expected response body: "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/singletonTrackedResources/default", "name": "default", "type": "Azure.ResourceManager.Resources/singletonTrackedResources", - "location": "eastus2", + "location": "eastus", "properties":{ "description": "valid2", "provisioningState": "Succeeded" diff --git a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts index 841be820d..bbc655299 100644 --- a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts +++ b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts @@ -112,7 +112,6 @@ Scenarios.Azure_ResourceManager_Resources_Singleton_update = passOnSuccess({ "api-version": "2023-12-01-preview", }, body: { - location: "eastus2", properties: { description: "valid2", }, @@ -125,7 +124,7 @@ Scenarios.Azure_ResourceManager_Resources_Singleton_update = passOnSuccess({ status: 200, body: json({ ...validSingletonResource, - location: "eastus2", + location: "eastus", properties: { provisioningState: "Succeeded", description: "valid2", diff --git a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/singleton.tsp b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/singleton.tsp index 8403fcf1d..c79527e3a 100644 --- a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/singleton.tsp +++ b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/singleton.tsp @@ -104,7 +104,6 @@ interface Singleton { Expected request body: ```json { - "location": "eastus2", "properties": { "description": "valid2" } @@ -116,7 +115,7 @@ interface Singleton { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/singletonTrackedResources/default", "name": "default", "type": "Azure.ResourceManager.Resources/singletonTrackedResources", - "location": "eastus2", + "location": "eastus", "properties":{ "description": "valid2", "provisioningState": "Succeeded"