"The most important job of our foreign minister is first to stand behind the JCPOA, and not to allow the US and other enemies to succeed," Rouhani told parliament, using the technical name for the 2015 deal that eased sanctions in exchange for curbs to Iran's nuclear programme.
"Standing up for the JCPOA means standing up to Iran's enemies," he said on the last day of debates over his cabinet selections.
Rouhani indicated a week ago that Iran was ready to walk out on the nuclear deal if the United States continued to apply fresh sanctions.
It has come under mounting pressure after Tehran carried out missile tests and Washington imposed new sanctions -- with each accusing the other of violating the spirit of the agreement.
But Rouhani has insisted the deal remains the preferred way forward, not least to help rebuild Iran's struggling economy and create jobs.
"The second responsibility of the foreign ministry... is to get involved in economic activities. It should help attract foreign investment and technology," Rouhani said.
He was addressing lawmakers ahead of votes of confidence on his ministerial choices.