GO:0061614:   pri-miRNA transcription by RNA polymerase II
The cellular synthesis of primary microRNA (pri-miRNA) transcripts from a DNA template by RNA polymerase II, originating at an RNA polymerase II promoter. pri-miRNA transcripts are subsequently processed to produce the ~22nt miRNAs that function in gene regulation.