{"record":{"id":"b2f3da290ecf6e1c","repo":"kubernetes/kops","slug":"listing-network-interfaces-w","errorCode":null,"errorMessage":"listing network interfaces: %w","messagePattern":"listing network interfaces: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/networkinterface.go","lineNumber":44,"sourceCode":"\n// NetworkInterfacesClient is a client for managing Network Interfaces.\ntype NetworkInterfacesClient interface {\n\tListScaleSetsNetworkInterfaces(ctx context.Context, resourceGroupName, vmssName string) ([]*network.Interface, error)\n}\n\ntype networkInterfacesClientImpl struct {\n\tc *network.InterfacesClient\n}\n\nvar _ NetworkInterfacesClient = (*networkInterfacesClientImpl)(nil)\n\nfunc (c *networkInterfacesClientImpl) ListScaleSetsNetworkInterfaces(ctx context.Context, resourceGroupName, vmssName string) ([]*network.Interface, error) {\n\tvar l []*network.Interface\n\tpager := c.c.NewListVirtualMachineScaleSetNetworkInterfacesPager(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 network interfaces: %w\", err)\n\t\t}\n\t\tl = append(l, resp.Value...)\n\t}\n\treturn l, nil\n}\n\nfunc newNetworkInterfacesClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*networkInterfacesClientImpl, error) {\n\tc, err := network.NewInterfacesClient(subscriptionID, cred, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating network interfaces client: %w\", err)\n\t}\n\treturn &networkInterfacesClientImpl{\n\t\tc: c,\n\t}, nil\n}\n","sourceCodeStart":26,"sourceCodeEnd":60,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/networkinterface.go#L26-L60","documentation":"Listing the network interfaces of a virtual machine scale set via the ARM pager failed; fires on authorization failures, a nonexistent VMSS, or transient ARM errors.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/networkinterface.go:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the VMSS name and resource group are correct","Check read permissions on the scale set's interfaces","Retry after transient ARM errors"],"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-12T07:17:12.445Z"}