i struggling deploy python workerrole on microsoft azure. has gotten python process working on microsoft azure?
microsoft seems telling people documentation related python on azure out of date, see https://azure.microsoft.com/en-us/documentation/articles/cloud-services-python-ptvs/#comment-2790110068 , https://github.com/microsoft/ptvs/issues/1447.
a microsoft employ told me need install own python interpreter when deploy workerrole. know how that?
my worker.py file consists solely of $print("in worker".format(datetime.now()))
after deploy workerrole following error in both configurecloudservice.err , launchworker.err.
gi : cannot find path 'e:\approot\%interpreterpath%' because not exist. @ e:\approot\bin\configurecloudservice.ps1:189 char:15 + set-alias py (gi $interpreter_path -ea stop) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : objectnotfound: (e:\approot\%interpreterpath%:string) [get-item], itemnotfoundexception + fullyqualifiederrorid : pathnotfound,microsoft.powershell.commands.getitemcommand
@andrewkittredge, don't think need install python environment manually before deploying workerrole or webjob, because python runtime has been installed on azure, need specified or set in related configuration.
according article, need create workrole via vs ptvs. then, install python on cloud service
means need set python variable on
on startup tasks in servicedefinition.csdef
file below.
<variable name="python2" value="on" />
please see article common cloud service startup tasks know startup tasks cloud services.
compared workerrole
, think webjobs
easier use , deploy, please see articles run background tasks webjobs , deploy webjobs using visual studio.
Comments
Post a Comment