 Hi there and welcome to another edition of Tuesdays with Corey. I'm back with the illustrious Dan Russanova who is the owner and brain? I don't know if you're the brain behind it, but you're definitely the owner of then grid. Yeah, and we saw a wonderful demo last time and This has now been in the market for like two three weeks and people seem to love it So let's talk a little bit about maybe another another usage case What did you show last time just to recap folks? Yeah last time we went over using custom topics. Yes, that's right logic apps integration Right, I know some topics people could any sort of random site solution application Whatever could insert an event and logic apps would listen and react. Yeah, that's what we showed last time beautiful now today Yes, so today we're gonna show storage integration, okay, and event hubs integration great. Yeah, okay So starting off for storage integration from within the portal, okay Just this is just a storage account. I'm in right now You can actually see there's an event grid icon here on the left. Yes underneath settings And if I click oh look at this it's right here in the US in the user experience for storage for storage Yep, and when I click on the event grid Icon I can go see all of the subscribers here These are ones that you created already. So this is basically these exist with your event grid subscription Yes, so these these exist today on this storage account And I actually have here a function which is one of these that's listening. It's a very simple function It doesn't do much it just logs out the event that it receives This is actually an event grid event inside of Azure functions. Oh, look at this Yep So we have integration on this side as well And if I come here into my storage account, okay, and go upload a file You can see how quickly this will actually go put that file into or trigger that function with that file Okay, let's see here click upload Find a file Just grab some file from in here temp. Yeah, always the most useful invest name in the world And by the time I come back in here You can see the event just they weren't fired and it's a blob create event boom and I'm subscribing to create and delete So if I come here again and click on this file and delete it It'll actually fire a separate event a delete event As quickly before I can even blob go back. It says blob delete. There you go. So that one happened And to show that this isn't just wait so go sorry go go back and show you you're gonna you had something else planned go on Yeah, yeah, to show this isn't just screw up the flow So this isn't the magic of television here, okay, I can actually go add a function from scratch Yep, and pick what I'm gonna show and Actually, I haven't checked this this week to see if it came in here yet But it's under experimental right now. It'll be out of experimental probably by the time this video comes out And there's an event grid trigger. Look at this. I just click on event grid trigger. I can name it whatever I want it to I'm just gonna click C sharp one. Yeah, that's a very creative name. It's clever. I'll always remember the C sharp one days Just click create here Rick's not amused And so you could see it created it it's the same type of function it had before and though the last Yeah, the last piece I have to do here is go to integrate and Click to create this is actually gonna create the subscription here. Oh, this creates the event grid subscription Yes, and then you take this and you put it back into the storage account. I No, no, that's I don't have to do anything else. This will actually go wire it all up together Let's call Dan's latest Event sub and I can already see here that I get a type So I'm gonna pick what type it is. It's storage count. There you go And then I can browse for my storage accounts And in resource groups, I actually have a resource so this is creating it through of the event grid experience through functions through Functions pointing at my existing storage account. Yep, and I can go see there's a storage account here browse And I can select which events do I want to listen? This is awesome. Yep, and then all I have to do from here is hit create I'm not gonna put any filters in copy that other in the storage and it'll actually just work now this now Was what you created this the event grid description is my image processor azure websites net Yeah, that's all done. We go back and see the source I didn't see it pop up there And so back was that part of what you were gonna do or my sure what I wasn't you Forcing you down a weird and you can see I actually call it Dan's latest Dan's latest Sub and that's what we just got at it. Got it. Yes, and now if I actually go add this file Let's see to make sure we're actually on this now if you had one that you manually created as a listener You could just add it directly through there, right? So if you were if you were having a listener that wasn't let's say functions But was some Application code what what have you that was listening to sort of the webhook, right? You could then you go into the storage side and hit new There and that would be how you'd wire it up in that situation Absolutely in this situation because you're going through functions. It's basically all wiring it up for you Yeah, I can roll and now if I go create another file like I did before I'm just gonna upload Actually, I'll probably upload the same file or one just like it And what we'll see is that the same exact things gonna happen like it's gonna trigger my new function So you can see that I really just built this from scratch and it works That quickly that easily and all integrated so I come here and wait and it went and there's it That's so from zero to actually you're running in in 30 seconds literally Maybe minute. Okay. Maybe I was talking That's awesome. So okay, so we just saw Live creation you went through the functions experience. You were able to as part of that create a brand new Code sort of already generate one of the cool parts of functions is sort of the net new Experiences just sort of regenerates everything for you Yep, you then wanted to integrate as part of integrate you created a new event grade subscription Yeah, that then wired it to functions to listen and through that experience you may said I want to listen to Storage you could also have it listen to Azure resource manager API So like every time a VM creates you run a function in that case it was every time a blob got created or deleted It runs this function and then it just behind the scenes wires everything up and then those events just start firing Yeah, it's all magic my goodness And through the portal experience all through the portal and to show all this integration here real quick I'm gonna look at an event hub an event hub is actually onboarded for capture It's also there too and so I can see my now what sort of scenario would you do this? Like why would you have a vent hub cut talk to an event grid? So these are event hubs basically gathering these events. Yes from some others like a An iot device or something of this yeah event hubs like a stream or log Yeah, and one of the features an event hub That's really useful is the capture feature which which we did a show about months ago sure. That was an awesome show Yeah, and that lets you get your fight your data instead of individual events that you're reading Yes, you can actually have it pushed to a storage account that you give this the service right your own ADLS Storage and then you can run whatever sort of Yes, but analytics on it or what have you absolutely because most analytics pipelines are batch Yeah, of course So you probably want to know when those files are created So grid actually publishes an event that says which file was created where it is how many events are in it like how many messages That's how many kilobytes it is and that's all tied in now with event grid Yes event hub excuse me event hub and event grid tied together to make Smorgasbord of event control and the perfect example is if you want to do ETL into your data warehouse And we actually have this up on our documentation already Stay and you can use a function to load the data warehouse with these capture files. Oh interesting. So basically Content comes in through event hub. You're doing the archive Capability and as part of that you're also firing an event grid so that functions will take what you've then archived as part of storage Yep, and then we'll run it through basically some sort of analytics processing yep Wow, yeah, I'm almost as impressed by how cool that is that I was also able to understand it That is really really cool And so wow so both of these are live today people can do this all and you didn't leave the portal experience It's all right through the portal. Yep, my goodness So gosh the capabilities for a vent grid or endless I feel like we need to have more shows on a vent grid sure now you need to go think through some other demos But for now Dan, this was awesome. Thank you so much for coming on the show. Thank you guys for watching You got questions about event grid other ideas. I obviously these guys are working fast great great Progress even in the last two weeks go ahead and hit us up on Twitter at hashtag Azure TWC And we'll make sure to pull pull your pull your handle into the tweet as well And so hit some with them questions if you've got them otherwise go play with some event grid and have some fun It's surely serverless the next generation of serverless. So thanks a lot anything else. That's all that's it. Yep Beautiful time in thanks on burgundy and and it actually matches matches the shirt because of the it's really it's classy And then I got the garbage college stuff going on here Have a wonderful Tuesday. Thank you so much and we'll see you next week. Bye. Bye Tastes like the original it does All right, it's so serious am I making you uncomfortable All right, you ready? Yeah. All right, here we go One thing about event grid. Yeah, what what I'm logic. Oh, yeah, how embarrassing. All right, you ready? Yeah, all right. I Have no idea what we're talking about. So you'll have to leave me. Yeah Okay, you ready for oh are you running recording on this too?