Azure Blob Storage on Azure IoT Edge

we have a new episode of the IT show for you with our pita from the high availability and the storage team and she's gonna talk to us about a feature that she owns which is pretty cool it's about using blob storage Azure blob storage on Azure ith on devices and I hear you have cool demos so guys don't miss that one thanks for watching the ante show hi everyone this is the IOT show i'm olivia hose thanks for watching today we have our twitter with us our pita is from the high availability and storage team you'll learn in a second what this is about our pitas thanks a lot for joining the show thanks and today you're gonna talk about block storage Nith but before we jump into the topic can you give little introductions of yourself and what your team is actually doing hi i'm eduardo paula I work as a p.m. in high availability and storage team one of the features which I own as a feature p.m. is high as your blob storage on IOT edge and it's in public preview awesome so you guys might have been already played with that new feature it's been like released recently and the idea is that you can actually store stuff on your edge devices so you've actually can implement such scenarios ads like offline or not having to send older they're out to the cloud and things like that right yes yes so what are the key features of Azure blob storage does it work exactly like in the cloud what are the what why and how would you want to use that yeah so as your block storage zone ID edge is a lightweight as you're consistent module which provides local block blob storage it comes with configurable ability to automatically tear the data to Asher and you can also configure it to automatically delete the data from your IOT edge device Oh after a specified amount of time it will just delete your data because eventually data is no more of Elevens it's old and you want to have more space for new data and so on and so forth so it will never run out of space so you can basically configure that module to like store synchronize with the cloud and then eventually get rid of data after surmount yeah yeah exactly that's right so you can use it for scenarios like where there is lot of data that needs to be processed locally right and you have like a limited bandwidth for example for industries where they are collecting lots of survey and behavioral data like finance data and media entertainment data where you don't exactly know shape of your data basically so those are the perfect scenarios where you can use it and to give you a real-life example right let's say you are in like far-off land or sea doing drilling and you have limited connectivity or expensive yes satellite yes yes exactly and but you are capturing lot of data continuously and you need to be able to process it – let's say figure out lay your machinery health or figure out like hey whether it is safe to drill further right you can use this module to access your local data with low latency and when the connectivity is back up this model will automatically clear your data awesome can you show us a little how that works yeah sure let's do this so before we actually head on to the configuration and deployment of this model let's see like what we will be doing for this term okay so we have as your LTS device running azure IOT runtime will deploy our module Azure blob storage on IPS pointing to a local blob storage account and then we'll have in our desktop as your storage Explorer we'll connect it to our local storage account and then we'll connect it to our as your storage account and see peering in action okay say yeah what are you saying Ashley is that the azure storage Explorer can explore the storage account all night eh yes exactly cool cause it's as you're consistent it uses the exactly same REST API drag do you mention that so you can download any of the sample codes available by as your storage SDK and just change the connection string to your local account and it magically works yeah okay mark got it I wanna see it now so here is my module running out eh runtime okay I'm using a Linux VM to run this we support Windows amd64 Linux MD 64 and Linux arm 32 so you can run both model even in class verify right so here is my module I named my modulus IOT local blob storage okay and you have to provide the MCR URL to this mhm provide an account name local account name a local account key and the storage path okay that's all you need and then in your desired property for your module you can specify whether you want to set that ppl basically Auto expiration of the data right to true or false and then here I have given like ten minutes that's my time to live in minutes so I'm saying here that after ten minutes all the data in my outer edge device will be deleted so is it all data or data that is older than ten minutes no it's all the data after ten minutes of last modified time last modified okay so same as far like peering settings you want you can make it like true or false here I'm saying like oldest first which means like your oldest data will be T at first you can change the value to newest first which means like your latest data will be T at first and here I'm just providing the connection string to my Azure storage account okay which is the yes and here I'm saying like here all the data from count one of my local storage account do edge count one in as your storage account similarly I am saying like con two and theory two percentage and percentage see know how you can basically use the template strings here and here I'm saying like percentage M denotes your module name and percentage C denotes your source container name so the target name will be somewhat like IOT local blob storage Oh – quanta – goddess okay so you can actually see where things are come from yes yeah make sense so let's go ahead and deploy our module okay there you go okay okay that is on Mario okay let's go to Azure storage Explorer okay here you can see I have connected my Azure storage account okay and there is no data in here let's make sure let's refresh there's nothing in here okay and here is my local storage account so that I'm clear when you when you want to have this module on i.t edge you need to create a storage account for that edge device and in in in your azure storage you know instance and then you need to create a second one for doing that synchronization got it got it got it so this is the format which I used to do the connection okay and you can find this format in our documentation or comes available out there nice and I'm going to point people to that yes here this is the format of the connection string which I used and then let's go back okay to upload some data let's quickly click some pictures okay I'm gonna take a little selfie that works okay what a photo yes yeah absolutely should be okay awesome thank you let's upload that okay let's create some containers okay so here you're simulating if you add er sorry just refresh it and you'll find that it's there okay got it so here you're simulating data has been created on the device right okay got it – okay let's just refresh yeah okay and this is my local storage account and let's upload our pictures oops okay let me upload just one No okay so lap that's the camera on the device created a photo puts it into local storage hmm okay done so yeah it finished uploading to the local storage account let's go ahead and refresh our as your account see ya each count one okay so did synchronize like almost yeah basically yeah okay and let's try out another one like for con 2 so that I can show that was the name it actually created automatically you can choose not to even provide any name uh-huh and it will just create some name some good random thing no it will actually provide you like IOT hub name I am module name and your container name and in a format you can find that format something that mix-up yes always remember to uncheck like page plus we don't currently support page block so yeah you have to make sure that you are uploading it as black going up I like that people were used to work was blob storage actually they can just do it the same way yeah bridge yeah so let's refresh it and off you go yay like it okay and let's check it's the actual picture yes make sure right yeah if you're not trying to okay that's going it's like the t-shirt thank you I like yours oh yeah so that's all about it awesome thanks for Peter that's a great insight so we're gonna add some links for you guys to learn more that's blob storage on i.t edge is great demo you guys know what you have to do thanks for watching don't forget to subscribe and see you soon thank you you

One Comment

  1. kaladharnaidu sompalyam said:

    Great arpitha dhupala .nice feature

    May 22, 2019

Leave a Reply

Your email address will not be published. Required fields are marked *