Skip to content

Conversation

@baswijdenes
Copy link
Contributor

Description

I've updated the apiversion for the Az.ApiManagement module from 2021-08-01 to 2022-08-01 because I received this error using the module:

{"error":{"code":"IncorrectVersionParameter","message":"The service is configured to allow management requests only with the following api-version values: 2022-08-01, 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview, 2024-10-01-preview, 2025-03-01-preview, 2025-09-01-preview","details":null,"innerError":null}}

Unfortunately, I could not update to an even newer stable version.

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Update Parameters Pipeline added 4 commits November 20, 2025 14:52
* Set a fixed `apiVersion` to "2024-05-01".
* Adjusted the logic to use the new `apiVersion` instead of the client’s version.
* Ensured proper tracing functionality remains intact.
… management

- Introduced extension methods for `IProductWikisOperations` to facilitate Wiki management for products in API Management.
- Added synchronous and asynchronous methods for listing Wikis, including pagination support.
- Enhanced usability by providing cancellation token support for asynchronous operations.
* Updated the API version for Az.ApiManagement from `2021-08-01` to `2022-08-01` to ensure compatibility with the latest features and improvements.
* Updated `ModuleVersion` in `Az.ApiManagement.psd1` to `4.2.0`
* Updated change log to reflect the new version and API updates
* This resolves compatibility issues with newer Azure API Management service instances
Copilot AI review requested due to automatic review settings November 21, 2025 10:55
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the API version for the Az.ApiManagement module from 2021-08-01 to 2022-08-01 to resolve compatibility issues with Azure services that no longer support the older API version.

Key Changes:

  • Updated API version reference from 2021-08-01 to 2022-08-01 in the ApiManagement module
  • Added changelog entry documenting the API version upgrade

Comment on lines +3 to +4
#### Az.ApiManagement 4.0.0
* Upgraded API version from 2021-08-01 to 2022-08-01
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog entry should reference the related GitHub issue that prompted this change. Per the coding guidelines, issue references should be included for all changes, especially those addressing bugs or compatibility issues. Add a reference to the issue number (e.g., [#12345]) at the end of the entry.

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +4 to +5
* Upgraded API version from 2021-08-01 to 2022-08-01

Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog entry lacks user-focused context explaining why this change matters. According to the coding guidelines, entries should be written from the user's perspective and explain the impact. Consider adding a sub-bullet that explains this resolves compatibility issues with Azure services that no longer support the 2021-08-01 API version.

Copilot generated this review using guidance from repository custom instructions.
@microsoft-github-policy-service
Copy link
Contributor

Thank you for your contribution @baswijdenes! We will review the pull request and get back to you soon.

Update Parameters Pipeline added 3 commits November 21, 2025 13:48
* Set up the project structure.
* Prepare for future code changes and enhancements.
- Regenerated SDK using AutoRest from 2022-08-01 Azure REST API specs
- Updated all test session recordings (plain and base64-encoded API versions)
- Updated ChangeLog with API version upgrade details
- Resolves compatibility issues with newer Azure API Management service instances
* Removed redundant code blocks to enhance readability.
* Organized imports and dependencies for better maintainability.
* Ensured consistent formatting across all files.
@notyashhh
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants