diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/skus/ListAvailableResourceSkusWithExtendedLocations.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/skus/ListAvailableResourceSkusWithExtendedLocations.json new file mode 100644 index 000000000000..4adecf30c122 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/skus/ListAvailableResourceSkusWithExtendedLocations.json @@ -0,0 +1,201 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2020-10-01", + "includeExtendedLocations": "true" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "virtualMachines", + "locations": [ + "westus" + ], + "capabilities": [ + { + "name": "MaxResourceVolumeMB", + "value": "20480" + }, + { + "name": "OSVhdSizeMB", + "value": "1047552" + }, + { + "name": "vCPUs", + "value": "1" + }, + { + "name": "HyperVGenerations", + "value": "V1" + }, + { + "name": "MemoryGB", + "value": "0.75" + }, + { + "name": "MaxDataDiskCount", + "value": "1" + }, + { + "name": "LowPriorityCapable", + "value": "False" + }, + { + "name": "PremiumIO", + "value": "False" + }, + { + "name": "vCPUsAvailable", + "value": "1" + }, + { + "name": "ACUs", + "value": "50" + }, + { + "name": "vCPUsPerCore", + "value": "1" + }, + { + "name": "EphemeralOSDiskSupported", + "value": "False" + }, + { + "name": "AcceleratedNetworkingEnabled", + "value": "False" + }, + { + "name": "RdmaEnabled", + "value": "False" + }, + { + "name": "MaxNetworkInterfaces", + "value": "2" + } + ], + "locationInfo": [ + { + "location": "westus", + "zones": [ + "2", + "1" + ], + "zoneDetails": [ + { + "name": [ + "2" + ], + "capabilities": [ + { + "name": "UltraSSDAvailable", + "value": "True" + } + ] + } + ] + } + ], + "name": "Standard_A0", + "tier": "Standard", + "size": "A0", + "family": "standardA0_A7Family" + }, + { + "resourceType": "virtualMachines", + "locations": [ + "westus" + ], + "capabilities": [ + { + "name": "MaxResourceVolumeMB", + "value": "71680" + }, + { + "name": "OSVhdSizeMB", + "value": "1047552" + }, + { + "name": "vCPUs", + "value": "1" + }, + { + "name": "HyperVGenerations", + "value": "V1" + }, + { + "name": "MemoryGB", + "value": "1.75" + }, + { + "name": "MaxDataDiskCount", + "value": "2" + }, + { + "name": "LowPriorityCapable", + "value": "True" + }, + { + "name": "PremiumIO", + "value": "False" + }, + { + "name": "vCPUsAvailable", + "value": "1" + }, + { + "name": "ACUs", + "value": "100" + }, + { + "name": "vCPUsPerCore", + "value": "1" + }, + { + "name": "EphemeralOSDiskSupported", + "value": "False" + }, + { + "name": "AcceleratedNetworkingEnabled", + "value": "False" + }, + { + "name": "RdmaEnabled", + "value": "False" + }, + { + "name": "MaxNetworkInterfaces", + "value": "2" + } + ], + "locationInfo": [ + { + "location": "westus", + "zones": [ + "1", + "2", + "3" + ] + }, + { + "location": "westus", + "extendedLocations": [ + "Las Vegas", + "Seattle", + "Portland" + ], + "type": "EdgeZone" + } + ], + "name": "Standard_A1", + "tier": "Standard", + "size": "A1", + "family": "standardA0_A7Family" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/skus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/skus.json index ab6451f5abc2..464b5e4cbb13 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/skus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/skus.json @@ -55,6 +55,9 @@ "required": false, "type": "string", "description": "The filter to apply on the operation. Only **location** filter is supported currently." + }, + { + "$ref": "#/parameters/IncludeExtendedLocationsParameter" } ], "responses": { @@ -74,6 +77,9 @@ }, "Lists all available Resource SKUs for the specified region": { "$ref": "./examples/skus/ListAvailableResourceSkusForARegion.json" + }, + "Lists all available Resource SKUs with Extended Location information": { + "$ref": "./examples/skus/ListAvailableResourceSkusWithExtendedLocations.json" } } } @@ -328,8 +334,29 @@ "$ref": "#/definitions/ResourceSkuZoneDetails" }, "description": "Details of capabilities available to a SKU in specific zones." + }, + "extendedLocations": { + "readOnly": true, + "type": "array", + "items": { + "type": "string" + }, + "description": "The names of extended locations." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of the extended location.", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationType", + "modelAsString": true + } } - } + }, + "description": "Describes an available Compute SKU Location Information." }, "ResourceSkuRestrictionInfo": { "properties": { @@ -349,7 +376,8 @@ }, "description": "List of availability zones where the SKU is restricted." } - } + }, + "description": "Describes an available Compute SKU Restriction Information." }, "ResourceSkusResult": { "properties": { @@ -385,6 +413,14 @@ "required": true, "type": "string", "description": "Client Api Version." + }, + "IncludeExtendedLocationsParameter": { + "name": "includeExtendedLocations", + "in": "query", + "required": false, + "type": "string", + "description": "To Include Extended Locations information or not in the response.", + "x-ms-parameter-location": "method" } } } diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 631198504ed7..07651dd42865 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -252,6 +252,7 @@ These settings apply only when `--tag=package-2021-07-01-only` is specified on t input-file: - Microsoft.Compute/stable/2021-07-01/compute.json - Microsoft.Compute/stable/2021-07-01/runCommands.json +- Microsoft.Compute/stable/2021-07-01/skus.json - Microsoft.Compute/stable/2021-07-01/gallery.json - Microsoft.Compute/stable/2021-07-01/sharedGallery.json ```