Cannot update existing APIM api with import command: (ValidationError) API with specified version 'v1' already exists
#28908
Labels
API Management
az apim
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
I imported an api into a versionset with import command:
I wanted to update it so that the endpoints are updated in the portal within the same version (ideally as a new revision), so I used the same command.
However, the cli returns an error specified below.
If add manually a revision id (
--api-revision 2
) the import succeeds, but it is added into a new entry to theversionset
instead of adding a revision to existing version:Am I under a wrong impression that this is supposed to work this way? Is there any other command I should use to update existing api/version using openapi schema?
Related command
az apim api import
Errors
Issue script & Debug output
Show debug output
Expected behavior
I was expecting, that the new revision will be created for existing version v1 and it would contain new schema.
Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: