Adam Rosales doubled in the go-ahead run in the seventh inning and Arizona overcame a rare deficit.