![]() In order to use the IoT commands we need to make sure that we’ve got at least v2.0.70 of the azure-cli installed:. To set the Iot Hub up, we’re going to use the azure-cli. This will then allow us to create a deployment in Azure that’ll push SQL Edge down to our Pi and run it in a Docker container. Now, in order to get Azure SQL Database Edge running on it we need to create an IoT Hub in Azure and connect our Pi to it. Ssh – We’ll be prompted to change our password when we first log in. Then ssh to the Pi via (default username and password is ubuntu): – To find the Pi’s IP address we can use nmap to scan the local network: – ![]() Power on the Pi and give it a minute to spin up. Then plug the SD card into the Pi, and connect the Pi to a router (this avoids having to attach a monitor and keyboard in order to setup a wifi connection). Once downloaded, plug the SD card into a laptop and use Rufus to flash the card: –Įnable ssh by dropping a file called ssh onto the boot partition of the SD card (see Section 3 here). We’ll need to use a 64-bit OS (Raspbian is 32-bit) so for this setup we’re going to use Ubuntu 18.04 which can be downloaded here. Once in the preview we need to set up our Raspberry Pi. So, let’s run through how to get SQL running on a Raspberry Pi!įirst, Azure SQL Database Edge is in public preview so we’ll need to sign up here. That includes my favourite device, the Raspberry Pi. This allows SQL to run on ARM devices, just think how many devices are out there that run ARM. One of the coolest new projects out there is Azure SQL Database Edge: – If you want to just run Azure SQL Edge without the IoT Hub, you can follow the MS Docs here: – Update – October 2020 – This post will take you through the whole process of getting an Azure IoT Hub setup and linking Azure SQL Edge running from a Raspberry Pi to it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |