@David
Thank you for using Q&A platform,
The ExpandGroups parameter exists for parity with older SDKs but does not populate group relationships in the current SDK—is accurate.The ApiManagementProductData model does not expose a Groups property. So even if you set ExpandGroup as true, the response will not include group data for each product
The expandGroups flag is a legacy parameter retained for compatibility with older SDKs and REST API behavior. However, the newer Azure.ResourceManager SDK does not map this expanded data into the ApiManagementProductData model.
To retrieve group relationships for products, you’ll need to Query products individually using productCollection.GetAllAsync(...).
For each product, query its associated groups using a separate call
await foreach (var group in product.GetGroupsAsync())
{
// process group
}
This is currently the only reliable way to get group data per product using SDK v1.3.
I hope this helps in resolving the issue, do let me know if you have any further questions on this