{"record":{"id":"c6c4acecef5b2377","repo":"kubernetes/kops","slug":"waiting-for-vmss-vm-deletion-completion-w","errorCode":null,"errorMessage":"waiting for VMSS VM deletion completion: %w","messagePattern":"waiting for VMSS VM deletion completion: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/vmscalesetvm.go","lineNumber":58,"sourceCode":"\tvar l []*compute.VirtualMachineScaleSetVM\n\tpager := c.c.NewListPager(resourceGroupName, vmssName, nil)\n\tfor pager.More() {\n\t\tresp, err := pager.NextPage(ctx)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"listing VMSS VMs: %w\", err)\n\t\t}\n\t\tl = append(l, resp.Value...)\n\t}\n\treturn l, nil\n}\n\nfunc (c *vmScaleSetVMsClientImpl) Delete(ctx context.Context, resourceGroupName, vmssName, instanceId string) error {\n\tfuture, err := c.c.BeginDelete(ctx, resourceGroupName, vmssName, instanceId, nil)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"deleting VMSS VM: %w\", err)\n\t}\n\tif _, err = future.PollUntilDone(ctx, nil); err != nil {\n\t\treturn fmt.Errorf(\"waiting for VMSS VM deletion completion: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc newVMScaleSetVMsClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*vmScaleSetVMsClientImpl, error) {\n\tc, err := compute.NewVirtualMachineScaleSetVMsClient(subscriptionID, cred, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating VMSS VMs client: %w\", err)\n\t}\n\treturn &vmScaleSetVMsClientImpl{\n\t\tc: c,\n\t}, nil\n}\n","sourceCodeStart":40,"sourceCodeEnd":72,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/vmscalesetvm.go#L40-L72","documentation":"Wraps the PollUntilDone failure while waiting for an Azure VMSS VM deletion LRO (long-running operation) to finish. Fires when polling the operation fails or the operation itself ends in a failed state (e.g. the instance could not be deallocated/deleted).","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/vmscalesetvm.go:58 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the operation error in the Azure portal / activity log for why deletion failed","Resolve blocking dependencies (attached disks, leases) and retry the delete","Verify quotas and permissions were not exceeded during deletion","Retry the operation once the transient failure clears"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}