Fix the incorrect logic handles azure restful api response.