microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
59 stars 38 forks source link

VS Code extension 'Azure API Management' no longer able to connect after setting API version to 2021-08-01 #317

Open jan-jonas-ruv opened 12 months ago

jan-jonas-ruv commented 12 months ago

After setting the API version to 2021-08-01, the VS Code extension 'Azure API Management' is no longer able to connect.

Please see the attached screenshot. What API version is used by the VS Code extension and are there any plans to support the current stable versions of the API? Please note that there are already a version 2022-08-01 (GA) and 2023-03-01 (preview) available.

image

annaji-msft commented 12 months ago

Could you please help understand how are you setting the API version in vscode extension.

2021-12-01-preview https://github.com/microsoft/vscode-apimanagement/blob/60ac759492c2a1f9c75c17131888cc6c5cc6eb86/src/azure/apim/ApimService.ts#L19C65-L19C83

2019-12-01 https://github.com/microsoft/vscode-apimanagement/blob/60ac759492c2a1f9c75c17131888cc6c5cc6eb86/package-lock.json#L22

Will create a backlog item to upgrade to latest version.

jan-jonas-ruv commented 12 months ago

Thanks @annaji-msft for your feedback. We do not set the API version in the VS Code extension but in the Azure APIM service.

Technically we are doing this via Terraform with the following code snippet:

resource "azurerm_api_management" "[...]" {
  [...]
  min_api_version      = "2021-08-01"
  [...]
}

We set this "min_api_version" as this was a recommendation shown in the Azure portal.

To me it seems that the VS Code extension uses a version older that 2021-08-01. Maybe this line https://github.com/microsoft/vscode-apimanagement/blob/master/src/constants.ts#L33C24-L33C44 defines to use the API version 2019-01-01.

jan-jonas-ruv commented 10 months ago

I saw that there was a recent release which adds compatibility to API version 2019-12-01 (https://github.com/microsoft/vscode-apimanagement/releases/tag/1.0.7).

Based on this post https://learn.microsoft.com/en-us/azure/api-management/breaking-changes/api-version-retirement-sep-2023 I was expecting a release that updates the API version to 2021-08-01 or later.

@annaji-msft: Are you planning another release of the VS code extension in September?