Open ktower opened 3 weeks ago
Interesting 3.98.0 is when that part was migrated to use go-azure-sdk
This is a bug of the SDK not handling the paged response correctly, only the first page of the response was handled. The nextLink
was ignored.
Response structure:
{
values: [],
nextLink: xxx.
}
but the SDK only handle the value
. https://github.com/hashicorp/terraform-provider-azurerm/blob/main/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/method_listbygalleryimage.go#L52
Is there an existing issue for this?
Community Note
Terraform Version
1.5.5
AzureRM Provider Version
3.108.0
Affected Resource(s)/Data Source(s)
azurerm_shared_image_version
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Data source should provide a reference to the "latest" version of the image gallery.
Actual Behaviour
In galleries with large numbers of image versions, the 50th image version is provided.
Example:
Steps to Reproduce
Problem appears to manifest in all provider versions >= 3.98. Version 3.97 properly returns the latest image version.
Important Factoids
No response
References
No response