Different imps have different pin naming (this is just because early imps had a lot less GPIO than today’s modules). It’s not difficult to translate, for example, imp001-oriented code to the imp003 in the BPSN: just change the specific pin-addressing peripheral objects by comparing the pin mux tables of both pins.
That said, this shouldn’t be an issue here as you just need the agent code (ie. the bit of the application that runs in the cloud), and this is the same irrespective of which imp you’re using in your hardware. If you’re getting your sensor data to the agent, you just need to use the IoT Hub sample code to program the agent to send that data to Azure.
(You say “logging the sensor data to the agent”, so I’m assuming you mean you’re sending the data from device to agent, not simply viewing the data in the device log in the IDE).