azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

'az apim api import' doesn't take api version argument

Open finesse-fingers opened this issue 6 years ago • 5 comments

Really liking the az apim api, however, is there a way to set the API version?

I notice the option to specify --api-revision. Would be nice to have --api-version option as well.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

finesse-fingers avatar Sep 18 '20 07:09 finesse-fingers

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

ghost avatar Sep 18 '20 12:09 ghost

apim

yonzhan avatar Sep 18 '20 12:09 yonzhan

Any update on this?

The CLI command seems to match the Powershell API all except for API versions

https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/import-azapimanagementapi?view=azps-5.9.0

Example 5 is the use case that the CLI doesn't support

https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/import-azapimanagementapi?view=azps-5.9.0#example-5---import-an-api-from-a-open-api-link-into-a-apiversion-set

petenorth avatar May 13 '21 07:05 petenorth

Issue is now resolved with PR https://github.com/Azure/azure-cli/pull/18604. Please ping me if there is any other issue. Thanks!

yingru97 avatar Jun 28 '21 20:06 yingru97

@finesse-fingers This is resolved

RakeshMohanMSFT avatar Jul 19 '22 02:07 RakeshMohanMSFT