-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Library name and version
Azure.ResourceManager.ContainerService 1.2.5.0
Describe the bug
On ContainerServiceAgentPoolResource.DeleteAsync, the ignorePodDisruptionBudget parameter is ignored, making the feature inaccessible.
https://github.com/Azure/azure-sdk-for-net/blob/2d7d3eda0796d669cd5dc22af07b00d0ecad5224/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceAgentPoolResource.cs#L32C88-L32C113
Expected behavior
It should generate a query parameter on the REST call:
https://learn.microsoft.com/en-us/rest/api/aks/agent-pools/delete?view=rest-aks-2025-10-01&tabs=HTTP
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}?api-version=2025-10-01&ignore-pod-disruption-budget={ignore-pod-disruption-budget}
Actual behavior
The parameter is ignored
Reproduction Steps
Call DeleteAsync and pass ignorePodDisruptionBudget: true
Environment
net8.0