Technology commercialization needs a large amount of financial resources and governments in developed and developing countries play a critical role in resource allocation to the technology commercialization, especially through “Technology Development Funds (TDFs)”. But, because of resource limitations, determining high priority technologies with higher impact on the country’s innovative performance and the optimal resource allocation to technology development is very important for science and technology policymakers. “Technology portfolio planning” has been developed and applied in this regard. Accordingly, a two-phase decision-making framework has been proposed. At the first phase, the priorities of technology fields are determined by using the best-worst method (BWM) and at the second phase, a two-stage stochastic technology portfolio planning model is developed by considering technological projects' risks and export market, as one of the important factor in the “Global Innovation Index” (GII) ranking. It also has been considered technology fields’ priorities, staged-financing, moratorium period, reinvestment strategy, and technology readiness levels (TRL) in allocating financial resources to technological projects. The main advantages of our proposed model are considering uncertainty and early signaling about underperforming technological projects. Due to the uncertain nature of the problem, our solution methodology is based on the Sample Average Approximation (SAA). In order to demonstrate the applicability of this model, a real case study and its computational results are presented.