{"record":{"id":"10721a34785b95b9","repo":"kubernetes/kops","slug":"creating-updating-nat-gateway-w","errorCode":null,"errorMessage":"creating/updating nat gateway: %w","messagePattern":"creating/updating nat gateway: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/natgateway.go","lineNumber":45,"sourceCode":")\n\n// NatGatewaysClient is a client for managing Nat Gateways.\ntype NatGatewaysClient interface {\n\tCreateOrUpdate(ctx context.Context, resourceGroupName, natGatewayName string, parameters network.NatGateway) (*network.NatGateway, error)\n\tList(ctx context.Context, resourceGroupName string) ([]*network.NatGateway, error)\n\tDelete(ctx context.Context, resourceGroupName, natGatewayName string) error\n}\n\ntype NatGatewaysClientImpl struct {\n\tc *network.NatGatewaysClient\n}\n\nvar _ NatGatewaysClient = (*NatGatewaysClientImpl)(nil)\n\nfunc (c *NatGatewaysClientImpl) CreateOrUpdate(ctx context.Context, resourceGroupName, natGatewayName string, parameters network.NatGateway) (*network.NatGateway, error) {\n\tfuture, err := c.c.BeginCreateOrUpdate(ctx, resourceGroupName, natGatewayName, parameters, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating/updating nat gateway: %w\", err)\n\t}\n\tresp, err := future.PollUntilDone(ctx, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"waiting for nat gateway create/update: %w\", err)\n\t}\n\treturn &resp.NatGateway, err\n}\n\nfunc (c *NatGatewaysClientImpl) List(ctx context.Context, resourceGroupName string) ([]*network.NatGateway, error) {\n\tif resourceGroupName == \"\" {\n\t\treturn nil, nil\n\t}\n\n\tvar l []*network.NatGateway\n\tpager := c.c.NewListPager(resourceGroupName, nil)\n\tfor pager.More() {\n\t\tresp, err := pager.NextPage(ctx)\n\t\tif err != nil {","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/natgateway.go#L27-L63","documentation":"BeginCreateOrUpdate for the NAT gateway failed to start the LRO; fires on ARM validation errors (bad public IP prefix references), quota, or authorization failures.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/natgateway.go:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped ResponseError code and fix parameters","Verify Network Contributor permissions and public IP quota","Retry after transient ARM failures"],"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"}