diff --git a/lib/modules/platform/azure/index.ts b/lib/modules/platform/azure/index.ts
index e2f60bef7e021fdcc9daaeb43782b250396c3759..c775eae021b323cf1b95ca94faef92a1b17c960e 100644
--- a/lib/modules/platform/azure/index.ts
+++ b/lib/modules/platform/azure/index.ts
@@ -166,6 +166,12 @@ export async function getRawFile(
       );
       throw new ExternalHostError(err, id);
     }
+    if (err.code === 'ECONNRESET' || err.code === 'ETIMEDOUT') {
+      throw new ExternalHostError(err, id);
+    }
+    if (err.statusCode && err.statusCode >= 500 && err.statusCode < 600) {
+      throw new ExternalHostError(err, id);
+    }
     throw err;
   }
 }