Skip to content

[BUG] ContainerServiceAgentPoolResource.DeleteAsync ignorePodDisruptionBudget parameter is ignored #54234

@Tratcher

Description

@Tratcher

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

Metadata

Metadata

Assignees

Labels

Container ServiceMgmtThis issue is related to a management package.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions