Two-time grand slam champion Victoria Azarenka was made to work for her victory over Maya Joint in Brisbane.