Get the source code for this video for FREE → the-dotnet-weekly.ck.page/azure-functions Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@@MilanJovanovicTech the team build an azure based infrastructure and the microservices was created with Azure funtions, of course too some MVC projects but the most part of the microservices was made with azure functions. with they we retrieve data from a blob storage, saving files, logging, schedule jobs, etc.
Watching this after recently using a azure functions for a couple of services at work. Nice introductory video. Had a unique requirement to create a functionality that should work on one of those functions. I created a middleware for this and used the "UseWhen" extension method to use the middleware only if a specific function is called. Keep up the good work.
@@MilanJovanovicTech not realy, except that the upgrade from the V3 to the V4 + the switch between inProcess func to the isolated one was a littal bit painful (the InProcess : httpRequest=> Isolated : httpDataRequest , ...). but i really like it, since i was coming from WebApis + MinimalApis world to azure func i found the usual stuff : swagger doc, authentication/authorization,middlewares,DI,..
Wonderful introduction - short and crisp, the best so far. Request you to have a full course on Azure Functions and Durable Functions with Real World scenarios. Thanks!
Great video, Milan! If I may, I'd like to suggest creating other Azure Functions video tutorials in which you talk about real-world common scenarios where http triggers come in handy :) Thank you! Keep rockin'!
Great video, thanks. Would be awesome to see an example with an Azure Service Bus trigger using MassTransit but then again I think I can manage that after this amazing tutorial.
How would you deploy this azure function to azure which you have created in visual studio. Let's say I have 3 environments to deploy. What approach would you take?
Very nice and helpful, your video is so good. But.. I'm wondering how to deploy those Functions to Azure to see them in there to be able to Start/Stop those functions.
Hi, I would like to ask a question. I'm just starting my adventure with azure functions and I don't fully understand why, when I use isolation, my method whose trigger time I set for tests to one second is never called, but if I create a project without isolation, I receive information in the console every second. Has anyone had this problem or am I missing something.
One is a fully-fledged web application that can serve multiple endpoints, it also runs all the time. A HTTP triggered function is just one isolated component.
@@MilanJovanovicTech we are trying to use azure functions as severless apis which will add complexity eventually. In such cases will it be useful to have clean architecture?
On Azure Portal, I can see warning and error logs, but the Information logs aren't showing up, even though they work fine locally. I've tried a few solutions to get it working on the portal, but nothing has worked so far. Could you please guide me on how to resolve this issue?
@@MilanJovanovicTech Thanks for your quick response! Yeah in codebase minimum log level is set to Information only and it works fine locally but not on portal, so can you please guide me where to set that on azure portal
Is it considered good practice to separate each function as a different project? Supposedly I have many functions but I only need to edit one of them, If they are all inside the same project, I have to publish all of the functions again, correct? If I separate them by projects, I can reduce the probability of deploy errors.
Hello Milan! In this case, could i use the azure functions to send e-mails after an operation like a background worker? For example: I need send an e-mail advising that the buy is approved, so, after aprove an product order, will be generate an domain event and this domain event will be storage in a data base and then triggered by function and sended it.
The worker packages has open api package but it’s limited and not easily configured. You’re real stuck to attributes only, not like aspcore. The package deploys additional AF to support this.
There is missing lot of informations. Like in other videos. Azure Function without deployment is useless. I'm glad you're making videos. But in every video you miss a lot of information. It just seems to me that you start a topic but don't finish it.
@@MilanJovanovicTech Like in video about Marten, your videos are more like for BFU's, which is perfect. But you didn't explain not that much. After your videos people don't know what is marten etc. Also here. Why should people care about Azure Functions? people don't know after that video and they also don't know what to do with that after and of video. You need to tell them how to deploy it etc. And now most important thing. If you tell me it's not about that etc. People which know that info. They have also zero infos from your video because they already know that info. I really don't want to be rude or something. I'm really love to watch that and please continue. But please you must understand for who is this video made? For Pros? They know it already because they don't need to know how to rename function. For people who don't know anything about azure functions? They need a waaay lot more informations. I think this video was not even on Getting started. I think best way can be to do it with something like real world scenario.
@@MilanJovanovicTech If you want to put introduction for azure functions, you need to explain them what is that, why they need to have azure function, couple of samples ( verbally only ) for what can be used, how to create demo of it ( this is what you only do ) and after that explain, test it on azure cloud. etc etc. you made only this one thing. I know you know what it's used for. But you also have to "sell" it to people. It's like writing documentation. The guy who did it doesn't make good documentation. But the person who needs it after him to use it and when he completes it what was missing. I try to write it all nicely, it just looks bad when I write it like that in the comments. but I really don't want to be a stickler or anything. It's just that maybe it looks like that through the comments.
@@msdevel I totally agree with you. I've never used azure functions and after watching the video I have no idea when and why I should use them instead of WebApi. Deployment wasn't covered at all (I'm sure it's kinda few clicks, but anyway), couple of words about putting the connection strings "externally", which may or may not meant to be smth like Azure Secrets (I have no idea about it). The author showed that we can use middleware, but didn't explain a pipeline of it, etc. So much stuff that could be covered in a short video, instead of splitting it into series. At this point, it's kinda easier to gather the crumbs by simply googling
Get the source code for this video for FREE → the-dotnet-weekly.ck.page/azure-functions
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
wow superb Milan, very clear explanation in simple way. No time waste , just to the point. 👍
There is no room for fluff!
Fantastic introduction to Azure Functions + Triggers tutorial! Really like your pacing and editing. Well done!
Glad you enjoyed it
Great, I used azure functions in a microservice infrastructure for 1 year and 5 months, are very strong, nice complexity and scalability
How did you use them?
@@MilanJovanovicTech the team build an azure based infrastructure and the microservices was created with Azure funtions, of course too some MVC projects but the most part of the microservices was made with azure functions.
with they we retrieve data from a blob storage, saving files, logging, schedule jobs, etc.
@@roymartinez94 - amazing
Watching this after recently using a azure functions for a couple of services at work. Nice introductory video. Had a unique requirement to create a functionality that should work on one of those functions. I created a middleware for this and used the "UseWhen" extension method to use the middleware only if a specific function is called.
Keep up the good work.
Nice, I wasn't aware you can specify middleware only for specific functions!
@@MilanJovanovicTech it's possible. Look it up when you can.
Cool!!
Really nice video. It wiil be awesome if you create a serie with full architecture using azure functions.
I'm considering something like that
Yeah, absolutely!
@@MilanJovanovicTech A long running task example would be great.
I recently used them (V4) for my backend APIs, they are very simple to implement and to deploy.
Nice! Did you have any issues?
@@MilanJovanovicTech not realy, except that the upgrade from the V3 to the V4 + the switch between inProcess func to the isolated one was a littal bit painful (the InProcess : httpRequest=> Isolated : httpDataRequest , ...).
but i really like it, since i was coming from WebApis + MinimalApis world to azure func i found the usual stuff : swagger doc, authentication/authorization,middlewares,DI,..
Dude you are amazing! Thanks a lot for this tutorial. Keep creating awesome content like this!
I'm glad you enjoyed it :)
Wonderful introduction - short and crisp, the best so far. Request you to have a full course on Azure Functions and Durable Functions with Real World scenarios. Thanks!
Glad it helped!
Nice video , this year please make more videos like this on Azure.
I will try my best
Awesome content
Thank you!
Great video, Milan! If I may, I'd like to suggest creating other Azure Functions video tutorials in which you talk about real-world common scenarios where http triggers come in handy :)
Thank you! Keep rockin'!
Good idea!
Thanks Milan
Anytime!
Well explained. Thanks to you
Glad it was helpful!
I ❤ Azure Functions.
Me too!
Great job!
Thanks!
Man great video!!!!!!
Glad you liked it!
awesome explanation
Thanks, glad you liked it!
Great intro
Thank you!
Thanks for sharing. I really appreciate
Thanks for watching!
Great video, thanks. Would be awesome to see an example with an Azure Service Bus trigger using MassTransit but then again I think I can manage that after this amazing tutorial.
Not much changes in the Azure Function, except configuring the trigger. You just need to publish the ASB message somewhere.
@@MilanJovanovicTech Yes, I already hava a working example, thank you.
It is very short, sweet and great !!!
Thank you! 😊
Great video. Looking forward to more Azure content. Maybe Microsoft can sponsor a full Azure course, lol
Huh! That would be great if it happened 😁
Great video. Would love to see how we can build proper long running tasks in the azure functions.
Alright, that can be a future topic
How would you deploy this azure function to azure which you have created in visual studio. Let's say I have 3 environments to deploy. What approach would you take?
Create a deployment pipeline, there's many existing examples
Very nice and helpful, your video is so good.
But.. I'm wondering how to deploy those Functions to Azure to see them in there to be able to Start/Stop those functions.
Azure takes care of the start/stop part
Hi, I would like to ask a question. I'm just starting my adventure with azure functions and I don't fully understand why, when I use isolation, my method whose trigger time I set for tests to one second is never called, but if I create a project without isolation, I receive information in the console every second. Has anyone had this problem or am I missing something.
I'm not sure what the problem could be
Ok, I changed the device that I was working on and everything works. But still I have no idea what was wrong
awesome simple video .Thanks
Glad it was helpful!
What is the difference between Web API and Azure http function?
One is a fully-fledged web application that can serve multiple endpoints, it also runs all the time.
A HTTP triggered function is just one isolated component.
Should the class and method be static?
I don't think they need to be 🤔
Hey Milan! Do you think introducing clean architecture to the azure function project is good idea? Would love to hear your feedback.
Since Functions projects are usually simple, is it worth it? Will there be enough complexity to justify it?
@@MilanJovanovicTech we are trying to use azure functions as severless apis which will add complexity eventually. In such cases will it be useful to have clean architecture?
Wish you had run the timer trigger. I'm getting 'Function failed to update the timer trigger status. Azure .Storage.Blobs: Service Request failed."
You need a local BlobStorage instance running
would love to see some handy ways of deploying them to azure, perhaps with gh actions?
Sure, I think GitHub Actions would be nice
how do you debug a timer function? i don't you can use postman for it
It triggers itself after each period passes
On Azure Portal, I can see warning and error logs, but the Information logs aren't showing up, even though they work fine locally.
I've tried a few solutions to get it working on the portal, but nothing has worked so far. Could you please guide me on how to resolve this issue?
Did you set the log level correctly?
@@MilanJovanovicTech
Thanks for your quick response!
Yeah in codebase minimum log level is set to Information only and it works fine locally but not on portal, so can you please guide me where to set that on azure portal
very informative.
Glad it was helpful!
Is it considered good practice to separate each function as a different project? Supposedly I have many functions but I only need to edit one of them, If they are all inside the same project, I have to publish all of the functions again, correct? If I separate them by projects, I can reduce the probability of deploy errors.
If we need the benefits: learn.microsoft.com/en-us/azure/azure-functions/performance-reliability#organize-functions-for-configuration-and-deployment
thx, great video
Glad you liked it!
Can you guide what will be cost of azure function vs on hosting API ? Which one is suitable and when ?
Azure Functions are very cheap, I'll refer you to the pricing page: azure.microsoft.com/en-us/pricing/details/functions
@@MilanJovanovicTech Which one is suitable and when ?
dedicated server vs azure functions ?
Hello Milan! In this case, could i use the azure functions to send e-mails after an operation like a background worker? For example: I need send an e-mail advising that the buy is approved, so, after aprove an product order, will be generate an domain event and this domain event will be storage in a data base and then triggered by function and sended it.
Definitely
Great vid
Thank you!
Can cover how to solve or optimize the azure function cold start issue as well?
I'll see what I can do! 😁
great!
Thanks!
Good stuff, thank you
Can you post a video about uploading them to azure and all the options there?
Thanks
Yes!
In which version of Visual studio is azure functions available?
No idea, but works in latest
.net is any which do .net 6and 8. Python versions are limited to 3.10 due to function tools, almost like MS don’t want you using python.
Connection string is required for timer trigger
It seems so
@@MilanJovanovicTechyou mean yes right
Are you planning to use Domain Driven Design with Azure Functions
We'll see, I'm not yet sure how I'll expand on this topic. Many ideas
Superb content Milan !! could you spare some time and do a video on how to configure OpenAPI documentation in AZ Function in an isolated model.
Yeah, about time I do another AZ Functions video
The worker packages has open api package but it’s limited and not easily configured. You’re real stuck to attributes only, not like aspcore. The package deploys additional AF to support this.
Can you please do more in depth videos on azure functions
Yes
@@MilanJovanovicTech thanks much
thanks a lot
Any time!
Nice video Milan... Here how to authenticate azure function
Check this: learn.microsoft.com/en-us/azure/azure-functions/security-concepts?tabs=v4
I use APIM with jwt policy restrict access to functions to only apim.
There is missing lot of informations. Like in other videos. Azure Function without deployment is useless. I'm glad you're making videos. But in every video you miss a lot of information. It just seems to me that you start a topic but don't finish it.
In every video? Give me examples.
I make these videos short on purpose, so they're easier to consume. And I typically cover a topic over a few videos
@@MilanJovanovicTech Like in video about Marten, your videos are more like for BFU's, which is perfect. But you didn't explain not that much. After your videos people don't know what is marten etc. Also here. Why should people care about Azure Functions? people don't know after that video and they also don't know what to do with that after and of video. You need to tell them how to deploy it etc. And now most important thing. If you tell me it's not about that etc. People which know that info. They have also zero infos from your video because they already know that info. I really don't want to be rude or something. I'm really love to watch that and please continue. But please you must understand for who is this video made? For Pros? They know it already because they don't need to know how to rename function. For people who don't know anything about azure functions? They need a waaay lot more informations. I think this video was not even on Getting started. I think best way can be to do it with something like real world scenario.
@@msdevel You have a fair point, I'll see how I can make my future videos better
@@MilanJovanovicTech If you want to put introduction for azure functions, you need to explain them what is that, why they need to have azure function, couple of samples ( verbally only ) for what can be used, how to create demo of it ( this is what you only do ) and after that explain, test it on azure cloud. etc etc. you made only this one thing. I know you know what it's used for. But you also have to "sell" it to people. It's like writing documentation. The guy who did it doesn't make good documentation. But the person who needs it after him to use it and when he completes it what was missing. I try to write it all nicely, it just looks bad when I write it like that in the comments. but I really don't want to be a stickler or anything. It's just that maybe it looks like that through the comments.
@@msdevel I totally agree with you. I've never used azure functions and after watching the video I have no idea when and why I should use them instead of WebApi. Deployment wasn't covered at all (I'm sure it's kinda few clicks, but anyway), couple of words about putting the connection strings "externally", which may or may not meant to be smth like Azure Secrets (I have no idea about it). The author showed that we can use middleware, but didn't explain a pipeline of it, etc. So much stuff that could be covered in a short video, instead of splitting it into series. At this point, it's kinda easier to gather the crumbs by simply googling