We use ‘a' in front of a consonant and ‘an’ in front of a vowel sound.

Consonant sounds
A manager, a job, a university, a one-way street, a European law, a company, a product, a euro, a unit

Vowel sounds
An idea, an employer, an hour, an MBA, an agenda, an organization,