You asked

Is the tamron 12 20mm f 2 8 good for astrophotography?

The Tamron 12-20mm f/2.8 can work for astrophotography, mainly for wide Milky Way and night-sky shots. Its f/2.8 aperture lets in far more light than a slower zoom, which keeps shutter speeds short enough to limit star trails. On full frame it reaches 12mm, a wide field that suits the sky. The lenses guide explains why a wide aperture matters in dim light.

The lens has no stabilisation, so the camera body has to do the steadying on long exposures. The site's material doesn't cover how any camera handles noise at high ISO, so it can't rank these cameras for night sky work. Among the full-frame bodies this lens fits, these are reasonable starting points:

The lens is made for full frame, so use it on a full-frame body. On APS-C, the same lens frames like 18-30mm, which is less wide for the sky.

Both the focal length converter and the lens page list the same Sony and Nikon bodies, so check the full list before buying.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.