VIENNA -- Moscow and Washington are close to agreement on a formula that bridges differences over U.S. demands to quickly re-impose U.N. sanctions on Iran if Tehran violates its commitments under a nuclear deal, officials told The Associated Press Tuesday.

Such an understanding would resolve a U.S.-Russian dispute that threatened to scuttle an agreement meant to impose long term cuts on Iran's nuclear programs in exchange for sanctions relief.

Washington sees a "snap-back" mechanism that allows previously lifted sanctions to be quickly reinstated as a cornerstone of any deal. Ben Rhodes, U.S. President Barack Obama's deputy national security adviser, told reporters last week that such a concept remained "the basic premise of our approach to sanctions."

But Russia opposes any automatic triggers.

A permanent member of the U.N. Security Council, it has vetoed attempts by the U.S. and other Western council members to introduce such measures on other issues in the past. Opposed to such a precedent, it also rejects such a mechanism as part of the Iran nuclear deal now being worked on.

The two officials demanded anonymity because they were not allowed to discuss the confidential negotiations. They declined to go into details on the eve of a new round of Iran-six power talks on the expert level in Vienna and ahead of a June deadline for a deal.

But comments by France's ambassador to Washington Tuesday hinted at the possible compromise being worked on.

Gerard Araud said no structure was yet in place for snapping back sanctions but the basic premise would entail a majority vote of the five permanent Security Council members -- the U.S., Russia, China, Britain and France.

That would be at variance with the usual rule of consensus. Still, it could ease Russian and Chinese opposition to the "snap-back" principle.

Deputy Foreign Minister Sergey Ryabkov last month insisted that re-imposing sanctions "should not in any way be automatic" but would need to be voted on by the Security Council. Under the scenario mentioned by Araud, Moscow and its ally Beijing might be out-voted on re-imposing sanctions on Iran, but the issue would still go to a vote -- Russia's central demand.

At the same time, such a vote could be held quickly, satisfying U.S. demands of a "snap-back" -- a near immediate reinstatement of U.N. sanctions in case of Iranian violations.

A U.N. ban on nuclear and missile technology will stay in place under any deal as will sanctions imposed on Iran over non-nuclear issues. But travel bans and asset freezes for Iranian individuals and entities and other penalties imposed between 2006 and 2010 over Iran's atomic program are slated to be lifted under any agreement.

In drawing up the outlines of the deal now being worked on, the sides agreed on what a U.S. fact sheet calls "a dispute resolution process." One of the officials who spoke to the AP said that would consist of a panel of representatives from Iran and the six powers it is negotiating with -- the United States, Russia, China, Britain, France and Germany.

He said that board is supposed to work by consensus. That's a method fraught with problems considering the different interpretations Iran would have with the U.S. and its allies on what constitutes a violation of the nuclear deal.

But Araud told reporters that if the panel is deadlocked, an alleged infraction will be discussed at the "political level" -- an apparent allusion to the Security Council.