I am new to Microsoft Azure. I created a bot in Python that takes a message in Messenger from a page that I created in Facebook, processes each message posted, into a function that produces output to present back to Messenger (through Webhook).
Since I have no web space, my Python script is ran locally on my machine, and I am using local hosting to 'communicate' back and forth in Messenger and using my local hosting address for my Webhook link. I also need the script running locally on my machine and local hosting in order for my bot to work in Facebook Messenger.
I was wondering if there is a way to run my script directly from a server on Azure when and if I get web space, instead of from my machine locally (as I THINK Azure is the place to do this from), and how do I run my script from there instead on a 'constant basis'? Thank you for any assistance.
Related
I have a store on woocommerce, which is hosted on a cpanel server with blue host. I want to have a webhook that triggers a python code. The code has been written and uploaded onto the server using the cgi-bin. but the webhook keeps asking for a delivery url.
I tried looking on cpanel and bluehost to see if I can assign the python code a URL. But I can't seem to do it.
Novice here, apologies if this is a rookie question. I have set up a test Azure VM (using the $200 free credit) and am trying to make API calls to two different websites using Python. Both calls work fine on my local desktop, but when I run them on the Azure VM, one API fails (response code 403) while the other succeeds (response code 200). Neither API request takes long when run on my desktop - each takes about 2 seconds to complete.
two API calls with results when run on VM
In the Azure VM Networking screen, I have added an Inbound rule to allow any HTTPS.
VM>>Networking>>Inbound Port Rule
My goal is to be able to run my Python code on a task scheduler on the Azure VM and write the results to SQL Server on the VM. But I can't get both API calls to be successful. Thanks for any guidance on this.
I would like to run a python script on Azure that connects to an Azure bus queue and saves the data to a database. I installed my script on an Azure service plan app but the script runs only when I am connected by ssh to the app (why?). I have seen many posts that recommend to either use azure functions (but they are triggered by ssh requests which is not my case) or to use runbooks but I have no idea how it works and if I can use that for my case. Do you have any advice?
What should I use between app, functions or runbook?
or
how can I make my script work even when I don't have an ssh connection with my app?
Thank you in advance for your help
I have a python script that takes lot of time to execute so we decided to execute it on aws gpu cloud but it is a part of ASP.NET web application.
So what I want to do is From My ASP.NET application, I want to send a text file to python script. The python script executes on GPU when it required and will come back with results.
Is it possible? Can we create python web service on aws GPU?
I an new to amazon aws.
Can Anyone please help me.
My python script running properly on my pc. I have created Amazon aws account.
Is it possible to automate a code snippet with Python to be run for example every hour? If yes, how it is done?
This code is aimed to be run on Azure server.
According your comments, it seems that your application is hosted on Azure Web Apps. We can leverage web jobs to run background tasks on Azure Web Apps.
General steps,
1,Compress your python script into a zip file
2,login on Azure management portal, click WEBJOBS tab in your website dashboard navigation.
3,Click Add to create a web job task, input a name, upload the zip file with your python script, and configure frequency of running the task.
For more information, please refer to Run Background tasks with WebJobs on official site.