Robustly handle if Azure SDK is not present
Fix uploadid so that it actually works