in src/SentinelUtilities/SentinelWidgets/widget_view_helper.py [0:0]
def get_vm_extension_properties(os_type, upload_container_path, user_id=None):
""" Get VM extensions properties """
if os_type == 'Windows':
command_to_execute = 'powershell -File installNotebookExtension.ps1 "{0}" >> out.txt'.format(upload_container_path)
file_list = ['https://sentinelnotebooks.blob.core.windows.net/piwindowsstorage/installNotebookExtension.ps1',
'https://sentinelnotebooks.blob.core.windows.net/piwindowsstorage/piextension.zip']
elif os_type == 'Linux':
command_to_execute = './piondemand.sh "' + upload_container_path + '"'
file_list = ['https://sentinelnotebooks.blob.core.windows.net/pilinuxstorage/release/ondemand/stable/piondemand.sh',
'https://sentinelnotebooks.blob.core.windows.net/pilinuxstorage/release/ondemand/stable/pilinux.ondemand.tar.bz2']
elif os_type == 'DSVM':
command_to_execute = './azureforensics.sh {0}'.format(user_id)
file_list = ['https://sentinelnotebooks.blob.core.windows.net/forensicsnotebooks/azureforensics.sh',
'https://sentinelnotebooks.blob.core.windows.net/forensicsnotebooks/vhdexplorer.tar']
return command_to_execute, file_list