From 5e6812131f1917b18da94c499052c99362c8a1c9 Mon Sep 17 00:00:00 2001 From: yig Date: Thu, 24 Sep 2020 17:08:45 +0800 Subject: [PATCH] Support create storage account with extendedLocation (#10900) --- .../examples/StorageAccountCreate.json | 8 +++++ .../preview/2020-08-01-preview/storage.json | 32 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountCreate.json index f560f583aac1..220209545654 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountCreate.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountCreate.json @@ -10,6 +10,10 @@ }, "kind": "Storage", "location": "eastus", + "extendedLocation": { + "type": "EdgeZone", + "name": "losangeles001" + }, "properties": { "isHnsEnabled": true, "allowBlobPublicAccess": false, @@ -47,6 +51,10 @@ "kind": "Storage", "location": "eastus", "name": "sto4445", + "extendedLocation": { + "type": "EdgeZone", + "name": "losangeles001" + }, "properties": { "isHnsEnabled": true, "allowBlobPublicAccess": false, diff --git a/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/storage.json b/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/storage.json index e91a7d63f20d..d8a18901b502 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/storage.json @@ -2287,6 +2287,30 @@ ], "description": "Identity for the resource." }, + "ExtendedLocationType": { + "type": "string", + "description": "The type of extendedLocation.", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "ExtendedLocation": { + "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." + } + } + }, "StorageAccountCreateParameters": { "properties": { "sku": { @@ -2312,6 +2336,10 @@ "type": "string", "description": "Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed." }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location" + }, "tags": { "type": "object", "additionalProperties": { @@ -2782,6 +2810,10 @@ "$ref": "#/definitions/Identity", "description": "The identity of the resource." }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/StorageAccountProperties",