Ultrasounds for Endometriosis

My OBGYN suspects that I have Endometriosis and ordered an ultrasound but I read that you need to have that surgery to confirm Endometriosis. What is the ultrasound for? What will it show or not show?!