Install azure-common on multi-script if not available
@@ -11,6 +11,12 @@ except: # Install msrestazure. Would be best to mock it, since we don't need it
import subprocess
subprocess.call("pip install msrestazure", shell=True) # Use shell to use venv if available
+try:
+ import azure.profiles
+except: # Install azure-common. Would be best to mock it, since we don't need it, but all scenarios I know are fine with a pip install for now
+ import subprocess
+ subprocess.call("pip install -e azure-common", shell=True) # Use shell to use venv if available
+
# The following DOES not work, since it bypasses venv for some reason
# import pip
# pip.main(["install", "msrestazure"])
