diff --git a/integrations/azure/CHANGELOG.md b/integrations/azure/CHANGELOG.md index 83d9d71a1a..c2408a951c 100644 --- a/integrations/azure/CHANGELOG.md +++ b/integrations/azure/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +0.1.126 (2025-01-14) + +### Bug Fixes + +- Fixed the listing of azure subscription resource to use the latest API version `(2023-07-01)` when building url for the next page during paginated response iterations + + 0.1.125 (2025-01-12) ### Improvements diff --git a/integrations/azure/azure_integration/azure_patch.py b/integrations/azure/azure_integration/azure_patch.py index 9d6d9a1bdd..99ac5a835d 100644 --- a/integrations/azure/azure_integration/azure_patch.py +++ b/integrations/azure/azure_integration/azure_patch.py @@ -105,8 +105,13 @@ async def list_resources( Those params will result the following request: (https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}/blobServices/{blobService}/containers?api-version={apiVersion}) """ - # override the default version in the client to the version that we want to query + # Override the default API version in the client configuration. + # This ensures that the specified API version is used for operations like subscription and resource group queries. resources_client.resources._config.api_version = api_version + + # Override the API version used in constructing requests during pagination. + # This ensures consistency in the API version for resource listing operations across paginated requests. + resources_client.resources._api_version = api_version if resource_type and resource_url: raise ValueError("Only one of resource_type and resource_url can be passed") diff --git a/integrations/azure/pyproject.toml b/integrations/azure/pyproject.toml index ea1f44e0cf..38838da6db 100644 --- a/integrations/azure/pyproject.toml +++ b/integrations/azure/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "azure" -version = "0.1.125" +version = "0.1.126" description = "Azure integration" authors = ["Tom Tankilevitch "]