How to Launch a FastAPI Service in Azure Containers in Less Than 10 Minutes!

preview_player
Показать описание
In this video, we're going to show you how to have your FastAPI service up and running on Microsoft Azure Container Instances in UNDER 10 minutes!

If you're looking to get started with building your own cloud-based applications, then you'll want to check out this video. We'll teach you how to create a containerized Python FastAPI application, and then deploy the service to Azure Container Registry, and then finally fire it up into life through Azure Container Instances.

This quick and easy tutorial will have you up and running with FastAPI in no time!

-------------------------------------

What's on the agenda for today?
00:00 Introduction
00:14 Looking at the code
01:24 Running the service
02:29 Putting the app in a container
04:53 Getting the container onto Azure
08:17 Thanks for watching!

-------------------------------------

Check out the FastAPI docs for loads of extra things you can do:

For the code used in this video:

-------------------------------------

If you need any help with Azure feel free to contact me through YouTube or any of the links below.

My Links:

-------------------------------------

Join in and don't miss out by subscribing and returning weekly for the freshest and most exciting videos around!

#azure #container #python #fastapi
Рекомендации по теме
Комментарии
Автор

Instead of re-building your docker image you can also just change the tag (thanks for the tip Sam):
`docker image tag <old tag> <new tag>`

rowan-lea
Автор

Finally I found the easiest tutorial ever ! Thank you so much !!

wassimsaioudi
Автор

First time I have liked and subscribed after a single 8 minute video!

Thank you Rowan!
I just started working at this messy startup because the market is shit here in california.

I was tasked to do something very similar for a project and was recommended a 4 hours paid course.

Now I just need to get a GPU instance rather than cpu.

streetfighteryamahar
Автор

Instant sub. Extremely fast, thorough and easy explanation.

CodingWithLewis
Автор

Damn, i not use to comment videos, but you deserve it. I send you a firm, solid and dry, 3 seconds hand shake sir.

ricardorolin
Автор

Very well made. I was struggling for a few hours until I came across your video. Concise and straight to the point!

scrtempire
Автор

dude
u just saved my
thanks and respect from INDIA...

reddymvanirudh
Автор

wonderfully stripped down to essentials -- the MS documentation for the same need (deploy a FastAPI Python Server using docker in Azure) adds a lot of unnecessary steps if you just want a pure API server as you have shown, thanks!

mikedowns
Автор

Thank so much please upload more more ...

suresh
Автор

Thanks Rowan, just what I was looking for!

bn_ln
Автор

Hi yes great and very easy to understand, although wanted to check if it is possible to change the IP to a more readable URL

claytonvanderhaar
Автор

Great tutorial, very helpful! Everything still works

tessa
Автор

Thanks mate. Super useful. Any chance you can do a vid on debugging the code in the container on Azure?

alanmcoll
Автор

Great video! very detailed explainations! I have a quick question. The container published to Azure container registry will be public assessible as well? thx

skyouternet
Автор

If you're looking to leverage GPU capabilities within your containerized applications on Azure, it's important to be aware that accessing GPU resources for Azure Container Instances requires applying for a quota. However, there's a possibility that your request might not be approved due to current limitations and high demand for GPU resources. (my application wasn't approved)

As a result, an alternative and more reliable approach would be to provision a Virtual Machine (VM) equipped with a GPU. You can then deploy your Docker containers on this VM. Additionally, it would be greatly beneficial for users like myself if you could provide a detailed tutorial on this process.

emrahe
Автор

Thanks for the explanation, it's very precise, sort and easy. The problem for me is simply that is not running, the container is stopped by Azure for no reason apparently every time that i try to run it. In the overview of the container I got a warning message: "One or more of the containers in 'fastapitest' are in a 'Waiting' state and may not be running'. I've tried with my own fastapi container and also with your exact same code from github. I wonder if Microsoft has change something. Thanks a lot!

fbio
Автор

Thank you. Very useful. Does the IP change if we re-build the docker?

sachin
Автор

Thanks I was able to get the public ip address but the problem is I need a https for integrating it with with frontend how can I do so ?

RohitKumar-frcm
Автор

what if Docker desktop is not available? wsl2 is not being installed on my machine to run docker. can someone help me please?

sreedharsharma
Автор

I your video! To the point and helpful! I followed your video deployed a fastapi to Azure. Everything is fine when I do docker test locally. But the container instance I created cannot be started (kept being killed and start). If you have any insights?

luchaojin