IL-17R expression on non-hematopoietic cells is crucial for mediating protective immunity against Mtb HN878 infection. Here, IL17RA is linked to infection.