Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

Complete az apim commands #12621

Open thisisbrianstewart opened 4 years ago

thisisbrianstewart commented 4 years ago

Is your feature request related to a problem? Please describe. Azure API Management is a critical, core service for creating modern web architectures, particularly when coupled with app service, functions, etc. The az apim module is missing nearly all required functionality to create and manage apis, policies, products, etc within apim. The feature request is to complete the module, to get it on parity with Powershell: https://docs.microsoft.com/en-us/powershell/module/azurerm.apimanagement/?view=azurermps-6.13.0

It is really unfortunate to use az cli for 95% of code and then switch to ARM/Powershell.

Describe the solution you'd like Complete the az apim module to reach parity with ARM/Powershell (https://docs.microsoft.com/en-us/powershell/module/azurerm.apimanagement/?view=azurermps-6.13.0)

Describe alternatives you've considered ARM or Powershell, but switching languages/platforms is cumbersome when the rest is using az cli.

Additional context If possible, if this is planned or being planned, could you provide a timeline so that we can plan our roadmaps accordingly?

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @mjconnection.

yonzhan commented 4 years ago

apim

thisisbrianstewart commented 4 years ago

Are there plans to complete this module? So much of the common ecosystem around apim is az cli focused (function apps, aks, etc). Would love to know if this is planned.

ciwchris commented 4 years ago

If it helps, I am able to create a Developer tier API Management service, as shown in the help of the apim command, but not a Consumption tier, which is also shown in the help.

az apim create
  --name my-app -g my-rg -l westus --sku-name Consumption \
  --publisher-email me@example.com --publisher-name Example

Results in:

validation error: Parameter 'ApiManagementServiceSkuProperties.capacity' can not be None.

gsscoder commented 3 years ago

I didn't before but lately I got the same issue. Exactly the same.

mikaelvesavuori commented 3 years ago

Totally agree and would love to see a full (or at least fuller) support. One of our teams has worked during the fall with serverless Function apps fronted by APIM, and we find ourselves in a lot of issues that we have to hack around (some including manual labor). As far as I am concerned, I don't think the bash version of az apim is production-ready as it works currently. Our use cases relate to serverless microservice architectures, where (unrelated but may be contextually interesting) the poor fit between Serverless Framework (the Azure provider specifically) is what lead us to do things with bash instead. We were totally caught off-guard on that even the bash CLI wasn't up to snuff.