provider/azure: verify credentials during Prepare (backport)

Verify credentials while preparing environment configuration
for Azure, and display a helpful error message on failure.

Fixes https://bugs.launchpad.net/juju-core/+bug/1362072