The match is scheduled for January.
Tanzania sits second in CAF Group E of the 2026 FIFA World Cup qualification, while Iran has already qualified for the 2026 World Cup.
Team Melli is expected to face Tanzania, currently positioned 107th in the FIFA world rankings, in Dubai.
Amir Ghalenoei’s squad is also scheduled to meet Russia in a friendly in October.
In the latest FIFA rankings released on Thursday, Iran moved down one spot to 21st.