Skip to content

Commit

Permalink
Support create storage account with extendedLocation (#10900)
Browse files Browse the repository at this point in the history
  • Loading branch information
YidongGuo authored Sep 24, 2020
1 parent 30832c2 commit 5e68121
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
},
"kind": "Storage",
"location": "eastus",
"extendedLocation": {
"type": "EdgeZone",
"name": "losangeles001"
},
"properties": {
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
Expand Down Expand Up @@ -47,6 +51,10 @@
"kind": "Storage",
"location": "eastus",
"name": "sto4445",
"extendedLocation": {
"type": "EdgeZone",
"name": "losangeles001"
},
"properties": {
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 5e68121

Please sign in to comment.