As a member of the People's Party for Freedom and Democracy, Azmani was a member of the House of Representatives from 2010 until 2019. He was also a member of the municipal council of Ommen from 2010 until 2014. In his political work, he primarily focused on migration and asylum, human trafficking and prostitution, as well as the Intelligence and Security Services Act (Wiv). Furthermore, from 2014 until August 2018, Azmani chaired the Committee on European Affairs in the House of Representatives.
In October 2018, Azmani was (unopposed) elected as the official leading candidate for the VVD in the European Parliament elections.
Following the elections, Azmani was part of a cross-party working group in charge of drafting the European Parliament's four-year work program on rule of law, borders and migration.[2]
As deputy leader of Renew Europe, Azmani temporarily took over leadership of the group when Stéphane Séjourné stepped down from the European Parliament on 11 January 2024 to serve as Minister for Europe and Foreign Affairs in France.[7] Azmani decided to not apply for the permanent chairmanship. Newspaper Trouw reported that his potential candidacy was controversial due to the VVD's willingness to negotiate with the right-wing populist Party for Freedom as part of the 2023–2024 cabinet formation.[8] He was re-elected in June 2024 as the VVD's lead candidate, when the party won four seats.[9]