in pkg/middleware/arm_client_opts.go [43:60]
func DefaultRetryOpts() policy.RetryOptions {
return policy.RetryOptions{
MaxRetries: 5,
// Note the default retry behavior is exponential backoff
RetryDelay: time.Second * 5,
// StatusCodes specifies the HTTP status codes that indicate the operation should be retried.
// A nil slice will use the following values.
// http.StatusRequestTimeout 408
// http.StatusTooManyRequests 429
// http.StatusInternalServerError 500
// http.StatusBadGateway 502
// http.StatusServiceUnavailable 503
// http.StatusGatewayTimeout 504
// Specifying values will replace the default values.
// Specifying an empty slice will disable retries for HTTP status codes.
// StatusCodes: nil,
}
}