Scenario:
I want to deploy a kafka python producer api on Azure through pipeline. I have an artifact which is a producer python code that needs to be deployed on azure app service.
Question:
Is deploying this code on azure app service really recommended? (knowing that this is not a webapp but just a kafka producer for internal application).
What service can alternatively be used to run such python codes on azure?
It seems that Kafka is a server, not the code project. So I recommend you use the custom docker image and deploy it on the Azure Web App for Container.
You can create the custom docker image with installing the Kafka inside the image and then deploy the Web App for Container from the custom image. When it finishes, the web app can access and you do not need to deploy code to it.
Related
I want to create a machine learning app with Flask as backend and keep React JS as the front-end. Though I found couple of tutorials how to do that but there are very few in terms of deployment. I want to deploy and host a Flask+ReactJS app to Azure cloud. Is there any good tutorial or link which I can follow. I have been struggling for days now.
Thanks
To achieve the above requirement you can find the below mentioned sample resource to create and host flask and react app in AZURE.
To do that we will need to setup the flask app as backend and then React app.
Please refer this BLOG for complete setup to build.
For more information you can refer the below links:-
SO THREAD: How to deploy a Flask+React application to Azure Web Service
BLOG:- Deploy your Flask app on Azure & How to automate Python/Flask deployment to Azure App Service
I would like to be able to run a flask app in development on a sagemaker notebook instance and then look at the flask application in my browser. I know what I've previously been able to configure this kind of access on ec2 by opening up the port for my ip, but I'm not finding any how to for how to do it on sagemaker, which otherwise comes with the nice user interface. How can I access the flask app running on a Sagemaker notebook instance? In general, I'm struggling to find a development framework for flask apps once the database it uses is in Amazon RDS.
Is there any way to test applications for Google Cloud or Azure locally in a computer, similar to the Localstack Docker image for AWS?
Thank you!
To test you application locally you can use Google App Engine Local Devolopment server to simulate your app running on app engine externally.
Demo python application via app engine
As you mentioned docker you may want to test your images locally you can also do this by following these instructions.
You can see this post. Here are some useful links, you will find
https://www.testcontainers.org/modules/gcloud/
On Azure Portal I can set auto-shutdown for a VM but can't find the API command for the Python SDK anywhere. Is this possible at the moment? Do I have to use DevTestLab? The SDK in question: https://github.com/Azure/azure-sdk-for-python
1.The auto-shutdown in the portal is configured as part of the VM's deployment template. If you updated the template, you could certainly deploy it in whatever way you choose.
2.You could schedule a script using the REST API in Azure to start/stop the VM at any schedule of your choosing. The script could deployed on Webjobs, Azure Functions or Azure Scheduler.
So when i run the application in amazon instance it tries to get the data from google inthis image
when it goes to the callback this is the output i get
I have run an python application with google Oauth2 and ran it successfully locally. Gunicorn serves http and google Oauth2 requires hhtps. I locally used certificates i have generated and it worked successfully, but when i try to deploy in Amazon Ec2 instance, it doesn't work. Did anyone face such kind of problem? will using nginx be helpfull in that case?