Instead of re-building your docker image you can also just change the tag (thanks for the tip Sam): `docker image tag `
@robboerman9378
15 күн бұрын
Great thanks. Was looking for a super fast intro where to find stuff for hosting fastapi on Azure and you show it all in under 10 min. Thanks for sharing
@rowan-lea
15 күн бұрын
Thanks! That's my goal :)
@wassimsaioudi116
Жыл бұрын
Finally I found the easiest tutorial ever ! Thank you so much !!
@rowan-lea
Жыл бұрын
Glad you found it useful! My main goal is to make my tutorials as quick and easy to understand as possible. Let me know if there's anything similar on Azure you think could do with a similar explanation to it!
@CodingWithLewis
7 ай бұрын
Instant sub. Extremely fast, thorough and easy explanation.
@rowan-lea
7 ай бұрын
Really appreciate it, thank you!!
@scrtempire8122
10 ай бұрын
Very well made. I was struggling for a few hours until I came across your video. Concise and straight to the point!
@rowan-lea
10 ай бұрын
Thanks so much! Glad it helped you :)
@streetfighteryamahar178
Ай бұрын
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.
@CodeZen
Ай бұрын
Great explanation. thank you.
@reddymvanirudh167
3 ай бұрын
dude u just saved my life........ thanks and respect from INDIA...
@charlessandholm757
3 ай бұрын
Fast and to the point! Many thanks.
@ricardorolin7791
6 ай бұрын
Damn, i not use to comment videos, but you deserve it. I send you a firm, solid and dry, 3 seconds hand shake sir.
@rowan-lea
6 ай бұрын
Thank you so much! Glad you liked it 😊
@mikedowns1842
7 ай бұрын
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!
@rowan-lea
7 ай бұрын
Thank so much, glad you liked it!!
@0suresh
11 ай бұрын
Thank so much please upload more more ...
@rounaksinghbuttar9083
7 ай бұрын
Thank you so much 🙏
@rowan-lea
7 ай бұрын
Glad you liked it!
@tessa10001
Жыл бұрын
Great tutorial, very helpful! Everything still works
@tessa10001
Жыл бұрын
Edit: how do you make it https instead of http though
@rowan-lea
11 ай бұрын
@@tessa10001 Glad you enjoyed it! If you change the port in the code to 443 that should be enough. When you set up a container it should have port 443 used for https bound by default. If that doesn't work give me a shout!
@tessa10001
11 ай бұрын
@@rowan-lea oh that is really helpful. I wont test this out though because i already set up a web app with this container instead
@bn_ln
7 ай бұрын
Thanks Rowan, just what I was looking for!
@rowan-lea
7 ай бұрын
Thanks! Glad it helped :)
@dactoanho6026
22 күн бұрын
Thank you for the Video
@NanderVilarCastellar
Жыл бұрын
Awesome tutorial!
@rowan-lea
Жыл бұрын
Thanks very much, glad you enjoyed it!!
@yiranli3035
Жыл бұрын
Thank you! This helped a lot.
@rowan-lea
Жыл бұрын
Glad you enjoyed it! Let me know if there's anything similar you'd like to see :) My most recent video shows you how to remote debug the app in this video!
@juandavidpenaranda6136
6 ай бұрын
Great tutorial. Thanks!
@alanmcoll101
Жыл бұрын
Thanks mate. Super useful. Any chance you can do a vid on debugging the code in the container on Azure?
@rowan-lea
Жыл бұрын
Hey Alan, glad it helped! That's an awesome idea for a video, I'm going to add that to my list (very near the top, because that sounds like something very helpful to show).
@rowan-lea
Жыл бұрын
You inspired me! kzitem.info/news/bejne/mWh6q5aosKOBqXo
@claytonvanderhaar3772
3 ай бұрын
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
@skyouternet
3 ай бұрын
Great video! very detailed explainations! I have a quick question. The container published to Azure container registry will be public assessible as well? thx
@sachin01663
2 ай бұрын
Thank you. Very useful. Does the IP change if we re-build the docker?
@RohitKumar-fr4cm
8 ай бұрын
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 ?
@rowan-lea
8 ай бұрын
In the dockerfile you should be able to change the 80 on the last line to 443, this should do it for you, Azure Containers will have the port open by default for you.
@fb2io383
6 ай бұрын
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!
@samirwalji7613
5 ай бұрын
Having the same issue - did you ever figure this out?
@luchaojin4030
9 ай бұрын
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?
@rowan-lea
9 ай бұрын
Hey, glad you liked it! Do you mean it starts up initially and then ends straight away? I'm assuming this is consistent? Or it only starts some of the time?
@ashikwani8790
26 күн бұрын
that's a good one
@suhass6628
Жыл бұрын
Awesome tutorial everything worked out but for the last part, after creating container instance i am trying to access with container’a IP but getting a gateway timeout error. Any idea?
@rowan-lea
Жыл бұрын
Hey Suhas, sometimes it happens if you try to access the resources too quickly after creating them, it can take a couple of minutes for container resources to actually be created in the background (even after it says they're ready). But also, are you using a similar "bare bones" set up like I am, or are you utilising any additional resources (like load balancers). Also, are all of your resources deployed to the same location? It shouldn't add enough time to cause a timeout error, but you never know!
@DavidManouchehri
10 ай бұрын
How can you add HTTP authentication to a Container App? I know we could add it at the application layer, but then we'd get billed for even unauthorized attempts..
@rowan-lea
10 ай бұрын
This should solve your problem as it uses middleware before it gets to your app: learn.microsoft.com/en-us/azure/container-apps/authentication
@DavidManouchehri
10 ай бұрын
@@rowan-lea From the diagram, won't I still be billed for any requests to the authentication middleware container? The box around both containers makes it seem like they're both running in my account.
@rowan-lea
10 ай бұрын
@@DavidManouchehri I'm not sure if they do charge for that. Ultimately you're going to need some kind of control in the way to block the request, it could even be a firewall. Most of these things I would imagine will be a 1 off monthly cost rather than something you pay for per request. There may be another way but it's not something I have much information about sorry.
@DavidManouchehri
10 ай бұрын
@@rowan-lea I did find out that APIM is Azure's solution, but it costs hundreds per year. 😅 We ended up using Google Cloud Run instead, since authenticating service-to-service requests is free. (AWS Lambdas can also authenticate service-to-service requests, but it's a bit of a pain to deploy Lambda containers compared to Clod Run.)
@sreedharsharma9082
4 ай бұрын
what if Docker desktop is not available? wsl2 is not being installed on my machine to run docker. can someone help me please?
@emrahe468
7 ай бұрын
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.
@fannyguthmann7566
7 ай бұрын
Hey, thank you so much for this amazing tutorial. I did everything you did step by step. I created the container instance. I'm getting an error on Azure, "One or more of the containers in 'aci-fast-api' are in a 'Waiting' state and may not be running. Click here to view container statuses." I waited, restarted but still getting the same error. Should I have done something in Azure before doing your tutorial. It's my first time using Azure and I'm really confuse on how to fix this error
@rowan-lea
7 ай бұрын
Hey! Glad you liked it :) Sometimes you get weird errors like that for all kinds of reasons. From my experience usually deleting the resource and creating it again can help solve the problem.
@fannyguthmann7566
7 ай бұрын
@@rowan-lea Thank you very much, I'm going to try again :)
@johnwright1152
6 ай бұрын
Why did you go with a container vs Azure function? Containers look to be more expensive. What am I missing?
@rowan-lea
6 ай бұрын
Hey John, both have completely different use cases really. Functions are for short lived processes, and are very specific in how they are programmed. Containers are typically longer lived, can have much more compute power, and are less tied to any particular technology (i.e. you could make an app in any language and easily move it to something like AWS if you wanted to). This video isn't to determine which is best, that depends entirely on your use case :)
@rowan-lea
6 ай бұрын
To add to that, typically you're right in terms of cost, running something native to a platform is nearly always cheaper from my experience, but that's not really a good reason to choose one technology over the other, unless you can completely ignore any other factors.
@akashthoriya
Жыл бұрын
What will the pricing for this? Container registery and container instance? Is it too costly compare to virtual machines?
@rowan-lea
Жыл бұрын
From my experience, and stuff I've been playing with recently, in GBP the cost of the services combined, for a basic app like this, would be about £35-£40 a month, provided it was running. From my experience containers would typically be cheaper to run than VMs (that's kind of the point, small and more lightweight), however the Azure pricing pages don't really seem to support that theory strongly: azure.microsoft.com/en-gb/pricing/details/virtual-machines/windows/ azure.microsoft.com/en-gb/pricing/details/container-instances/ I recently put out a video about ways you can check your pricing, so you might be able to figure it out from here: kzitem.info/news/bejne/yK9m1JOgrV9yp6Q
@rowan-lea
Жыл бұрын
To add to this, I don't really like interacting Linux as an OS, but I would always choose it for my container OS because you don't have to pay the additional licensing fee that you do with Windows, and using a container means I don't have to touch it as an OS.
@ptk6909
10 ай бұрын
step on Azure that free or not sir ? and necessary to use with Dockerfile ?
@rowan-lea
10 ай бұрын
You don't need to do the Azure parts, you can run it locally or find another host. As for the dockerfile I'm not entire sure, I don't do much docker development that doesn't use it. Perhaps a docker compose file could work, but I'm not sure if that's a direct replacement or something you need on top of a dockerfile.
@piotrek8809
Жыл бұрын
How to connect it with database?
@rowan-lea
Жыл бұрын
So you probably want to make some kind of database service you can call when an endpoint gets hit. Really you could use any kind of database depending on your needs, because there's so many different types it would probably make sense to look for a Python video for your specific database implementation.
@andreww2528
7 ай бұрын
@@rowan-lea I'm also interested in this, would you be open to ever making an additional video that uses an example database?
@rowan-lea
7 ай бұрын
@@andreww2528 actually this came up in conversation literally today, maybe I will!
@LucasFernandez-s9c
10 ай бұрын
I really hate the way you chose to talk , but thanks for the video
Пікірлер: 70