The presence of a large Azerbaijani community in Iran may have defused tensions between Baku and Tehran.