Open maddieclayton opened 5 years ago
Potential convenience cmdlet for listing skus
Servers - List Skus for Existing
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/skus?api-version=2017-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/skus?api-version=2017-08-01
Api Management Service Skus - List Available Service Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus?api-version=2018-06-01-preview
App Service Environments - List Multi Role Pool Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/skus?api-version=2016-09-01
App Service Environments - List Worker Pool Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/skus?api-version=2016-09-01
App Service Plans - Get Server Farm Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus?api-version=2016-09-01
Account - List Node Agent Skus
GET {batchUrl}/nodeagentskus?api-version=2018-12-01.8.0
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus?api-version=2017-04-18
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability?api-version=2017-04-18
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus?api-version=2017-04-18
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/skus?api-version=2017-09-01
Virtual Machine Images - List Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus?api-version=2018-06-01
Virtual Machine Scale Sets - List Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus?api-version=2018-06-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus?api-version=2018-04-19
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus?api-version=2018-04-19
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/sku/{sku}/regions?api-version=2017-04-01
Iot Hub Resource - Get Valid Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus?api-version=2018-04-01
Iot Dps Resource - list Valid Skus
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus?api-version=2018-01-22
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus?api-version=2016-05-01-preview
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/skus?api-version=2017-10-01
Capacities - List Skus For Capacity
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/skus?api-version=2017-10-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/sku/{sku}/regions?api-version=2017-04-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus?api-version=2018-11-01
Hi @markcowl , I have some concerns about some of the cmdlets we planned to implement SKU completer.
They only accepts Aligned
or Classic
as SKU. I think the behavior should be stable, so better to use a PSArgumentCompleter
here.
Problem is, each of them supports a (different) subset of storage account skus, but there's no individual APIs to get those subsets. I think we have two choices:
ValidationSet
(current behavior)🤔 What's your opinion?
Description
Using a style similar to the other generic resource completers here. Add support for a generic SKU completer.
In this case, SKUs are listed using calls from individual RPs, s, in each case, there should be two parts to the completer attribute
Note that some services (for example, Compute) provide SDK calls that list all resource SKUs, and calls that list available skus for updating an existing resource (like a virtual machien scaleset), you will likely need to provide separate concrete attributes for each of these. It would be appropriate to sue the 'list all resource skus' api when creating a 'New' resource, and the sku list for a specific resource when updating an existing resource.
We will do this for the following cmdlets