The increasing incidence of azole resistance in Aspergillus fumigatus causing invasive aspergillosis (IA) in immunocompromised/hematological patients emphasizes the need to improve the detection of resistance-mediating cyp51A gene mutations from primary clinical samples, particularly as the diagnosis of invasive aspergillosis is rarely based on a positive culture yield in this group of patients. We generated primers from the unique sequence of the Aspergillus fumigatus cyp51A gene to establish PCR assays with consecutive DNA sequence analysis to detect and identify the A. fumigatus cyp51A tandem repeat (TR) mutation in the promoter region and the L98H and M220 alterations directly in clinical samples. After testing of the sensitivity and specificity of the assays using serially diluted A. fumigatus and human DNA, A. fumigatus cyp51A gene fragments of about 150 bp potentially carrying the mutations were amplified directly from primary clinical samples and subsequently DNA sequenced. The determined sensitivities of the PCR assays were 600 fg, 6 pg, and 4 pg of A. fumigatus DNA for the TR, L98H, and M220 mutations, respectively. There was no cross-reactivity with human genomic DNA detectable. Sequencing of the PCR amplicons for A. fumigatus wild-type DNA confirmed the cyp51A wild-type sequence, and PCR products from one azole-resistant A. fumigatus isolate showed the L98H and TR mutations. The second azole-resistant isolate revealed an M220T alteration. We consider our assay to be of high epidemiological and clinical relevance to detect azole resistance and to optimize antifungal therapy in patients with IA.