add azure env
add auto spread function to support ios