World number one Victoria Azarenka survived a major scare against Alberta Brianti to scrape through to round two of the French Open.