diff --git a/v2/internal/genericarmclient/generic_client.go b/v2/internal/genericarmclient/generic_client.go index 2019ef26320..5cd6d56e059 100644 --- a/v2/internal/genericarmclient/generic_client.go +++ b/v2/internal/genericarmclient/generic_client.go @@ -43,7 +43,7 @@ func NewGenericClientFromHTTPClient(endpoint arm.Endpoint, creds azcore.TokenCre opts := &arm.ClientOptions{ ClientOptions: policy.ClientOptions{ Retry: policy.RetryOptions{ - MaxRetries: 0, + MaxRetries: -1, // Have to use a value less than 0 means no retries (0 does NOT, 0 gets you 3...) }, PerCallPolicies: []policy.Policy{NewUserAgentPolicy(userAgent)}, },