Month: May 2017

Azure CLI

Azure CLI 2.0: Reset / Change Azure VM Password

It’s very easy to spin up a Virtual Machine (VM) in Microsoft Azure. You can do it through the Azure Portal or with scripting tools such as the Azure CLI, Azure PowerShell cmdlets, and even ARM Templates. When you provision the new VM you need to set an Administrator username and password for the VM. You will use these login credentials to connect to and manage the VM. However, there are time when you either need to 1) change the password periodically, or 2) reset the password if you may have forgotten what it was. Thankfully, Azure makes the task of changing the password for a VM extremely easy to do from the management of your Azure Subscription. It can be done easily enough through the UI of the Azure Portal, however there are times when scripting and automation are necessary to fit your workflow best. Below you’ll find the simple, easy to use command to change / reset the password for a VM running in Azure. Both Windows and Linux VMs work the same way!
Read More

Azure Weekly

Azure Weekly: May 29, 2017

Do you find it difficult to keep up-to-date on the frequent updates and changes in the Microsoft Azure cloud? If so, Build Azure Weekly is the solution you’ve been looking for! Build Azure Weekly is a weekly newsletter that includes all the latest Microsoft Azure Service Updates from the week in addition to links to many other blog articles, podcasts and videos from all over the Internet.

If you want to receive the newsletter in your email every week, then you’ll absolutely want to Subscribe!

Service Updates

Here’s a list of the Microsoft Azure Service Updates from over the past week:

Top Links

Here are some of the most notable links from the week:

Sponsor

opsgility-new-high-res-logo-no-gear-with-taglineOpsgility is the leading Microsoft cloud technology trainer for developers and IT professionals, built around an esteemed network of industry experts and technical authors that includes Microsoft MVPs and Microsoft Insiders in more than 10 countries.

We provide live, instructor-led (onsite and virtual) courses as well as self-paced, online courses that go above and beyond simple videos or blog posts. Each course is designed to comprehensively guide the student through the subject by providing expert instructors, step-by-step hands-on labs, and knowledge measures to assess and ensure new skills are mastered.

Get started today with Microsoft Dev Essentials and get 3 months Free of Opsgility on-demand streaming service! Read More

Azure CLI

Install Azure CLI 2.0 on macOS

The Azure CLI is the cross-platform, command-line tool for managing and automating cloud resources in Microsoft Azure. The tool is supported across macOS, Linux, Windows, and more newly usable from within a web browser in the Azure Portal. While you can run it in the browser now, there are certainly benefit from being able to run the Azure CLI from your local machine. One of these benefits is to easily execute bash scripts locally to perform automation and other tasks. This article will guide you through the step-by-step process of installing the Azure CLI 2.0 on macOS. Read More

Internet of Things

Setup Raspberry Pi with Windows 10 IoT Core

Windows 10 IoT Core is Microsoft’s version of the Windows 10 operating system being built to run Internet of Things (IoT) devices. There are a few hardware IoT devices that Windows 10 IoT Core supports and can run on. One of these devices is the Raspberry Pi; specifically the Raspberry Pi 2 and Raspberry Pi 3. This article lists out the steps necessary to load Windows 10 IoT Core onto a MicroSD Card that can be inserted into a Raspberry Pi to run Windows 10 IoT Core as the operating system.

Flash Windows 10 IoT Core to MicroSD Card

In order to boot Windows 10 IoT Core from a Raspberry Pi, you must first flash the Windows 10 IoT Core operating system to an SD Card that can be used to boot the Raspberry Pi from. To do this you need to use a Windows PC and the IoT Dashboard utility.

Step 1: Using a Windows PC, download and install the Windows 10 IoT Core Dashboard.

Step 2: Insert your Micro SD Card into your PC.

Note: Before you start, you’ll want to make sure you have an MicroSD Card that is supported by Windows 10 IoT Core. It’s important to be aware that NOT all MicroSD Cards are supported, with the primary restriction that they are at minimum a Class 10 SD Card.

Step 3: Run the IoT Dashboard app, and click on the “Set up a new device” button.

Step 4: Select the “Raspberry Pi 2 & 3” device type, and fill in the necessary configuration values, then accept the software license terms and click the “Download and install” button.

Something to note on the Wi-Fi Network Connection setting is that it will pull from the Wifi Profiles on your local PC. This means that you will be able to easily configure your device to connect to the same Wifi network your Windows PC is connected to once it boots up from the SD Card. You won’t need to plugin a display, keyboard, or mouse in order to configure anything, so long as you select the correct Wifi network.

Step 5: When prompted to erase the SD Card, you need to click Continue. Just make sure you are aware that this will essentially format the SD Card before copying the Windows 10 IoT Core image, so you will lose any data that’s existing on the SD Card.

Step 6: The tool will continue by downloading the latest release of Windows 10 IoT Core. This ensures that you always have the latest version that you’re flashing.

Step 7: After the download completes, the dism.exe command-line tool will then automatically kick off to flash the downloaded Windows 10 IoT Core image to the SD Card.

Step 8: Once the flashing is completed, the IoT Dashboard will show a message stating that “Your SD card is ready.”

Step 9: You can now safely remove the SD Card from your PC and plug it into the Raspberry Pi and power it on.

Connect to the Windows 10 Device Portal

One of the features of Windows 10 IoT Core that makes it easier to manage, especially with headless devices, is the Windows Device Portal. This is a web interface that is hosted on the Windows 10 IoT Core device by default. This interface allows you to perform some remote monitoring, configuration, and deployment options for Windows 10 IoT Core.

Step 1: Once you’ve booted up a device with Windows 10 IoT Core you can then use the “My devices” option of the IoT Dashboard to easily discover what Windows 10 IoT Core devices are connected to the network that your PC is connected to. To view some details about the specific device, you can double-click on the device in the list.

Step 10: On the info for the specific Windows 10 IoT Core device, you can click on the “Open Windows Device Portal in browser” link to open up a new browser window navigating to the Windows Device Portal for that device.

Step 11: When the browser opens up and connects to the Windows Device Portal, it’ll prompt you to login. The Username you need to use will be Administrator, and the Password will be the password you configured when you flashed Windows 10 IoT Core to the SD Card.

Step 12: Once authenticated, you will be logged in and able to access the Windows Device Portal.

Overall the tools from Microsoft, including the IoT Dashboard, are extremely easy to use. You don’t need to use any command-line tools or open any configuration files to install Windows 10 IoT Core to an SD Card. You can then simply insert the SD Card into your device and boot it up to get it running.

Azure CLI

Azure CLI 2.0: Generate SAS Token for Blob in Azure Storage

Azure Storage is a cloud service at the very center of Microsoft Azure. It provides the foundations for storing data in many services and systems within the Azure cloud platform. You can use Azure Blob Storage to store any binary data such as files, images, backups, .vhd’s, videos, and pretty much any other file. The Azure Blob Storage will secure all blobs / files by default where they can’t be access without a key. You can configure the service to allow anonymous access to blobs, however, there are many circumstances that you want to securely share a file with Azure Blob Storage.
Read More

Azure Weekly

Azure Weekly: May 22, 2017

Are you having difficulty keeping up to date on all the frequent changes and updates in the Microsoft Azure space? Then the Build Azure Weekly has the solution you’re looking for. Build Azure Weekly is a weekly blog post that includes all the latest Microsoft Azure Service Updates from the week in addition to links to many other blog articles, podcasts and videos from all over the Internet.

If you want to receive these in your email, then you’ll absolutely want to Subscribe!

Service Updates

Here’s a list of the Microsoft Azure Service Updates from over the past week:

Top Links

Here are some of the most notable links from the week:

Sponsor

opsgility-new-high-res-logo-no-gear-with-taglineOpsgility is the leading Microsoft cloud technology trainer for developers and IT professionals, built around an esteemed network of industry experts and technical authors that includes Microsoft MVPs and Microsoft Insiders in more than 10 countries.

We provide live, instructor-led (onsite and virtual) courses as well as self-paced, online courses that go above and beyond simple videos or blog posts. Each course is designed to comprehensively guide the student through the subject by providing expert instructors, step-by-step hands-on labs, and knowledge measures to assess and ensure new skills are mastered.

Get started today with Microsoft Dev Essentials and get 3 months Free of Opsgility on-demand streaming service! Read More

HardwareInternet of Things

Azure IoT DevKit Preview built with Arduino and VSCode

There have been a number of Azure IoT Starter Kits available for some time now. I’ve written about the Starter Kits in the past. Some of these like the Raspberry Pi Azure IoT Starter Kit from Adafruit require you to wire up sensors and things, while the GrovePi+ is similar to a Lego Mindstorm but for prototyping Internet of Things devices. It seems that Microsoft is finally consolidating onto a specific “Azure IoT Developer Kit”, and they’ve already made early previews available upon application. This new Azure IoT “DevKit” is a single board packed with sensors, buttons, OLED screen, and more! Plus, it’s Arduino compatible! Read More

Internet of Things

Microsoft IoT Central Enables SaaS-based IoT Solutions

Many software systems can become fairly complex with many different interconnected and communicating components. Internet of Things (IoT) solutions can especially become complex. Instead of individual tiers for each piece of the software system, an IoT solution can be composed of thousands or even millions of IoT hardware devices in addition to the backend tiers for processing data, predicting analytics, reporting, business intelligence, and on, and on. Internet of Things solutions are becoming some of the most complex solutions on the planet.

The newly announced Microsoft IoT Central is a Software as a Service (SaaS) solution in the Microsoft Azure cloud that will help build, use, and maintain Internet of Things solutions. It provides an easier way to create connected products, and takes away much of the work necessary to build IoT solutions. Microsoft IoT Central reduces the complexity of IoT, thus enabling businesses to better utilize IoT to propel their business forward in the newly emerging age of IoT. Read More

Azure CLI

Azure CLI 2.0: Reset Azure SQL Database Password

The Azure SQL Database service allows you to set an Admin login and password when you provision a database server in the service. However, if you happen to forget the password for the Azure SQL Database server, it can be problematic. There is an option in the UI of the Azure Portal to reset this admin password. However, there may be times when you want to update the password from the command-line or in an automated fashion. Perhaps, you may want to automate the updating of the admin password for your Azure SQL Database servers periodically. Thankfully, there is a command in the Azure CLI 2.0 that does support updating or changing the password. Read More

Azure CLIInfrastructure

Azure CLI 2.0: Manage Resource Groups

All cloud resources created / provisioned in Microsoft Azure need to be associated with Resource Groups. This is one of the basic features of the Azure Resource Management model to cloud resource management, and it makes it far easier to manage groupings of resources that comprise full applications and workloads. The Azure Portal makes it extremely simple to create and delete Azure Resource Groups. This article takes a look at managing Azure Resource Groups form the cross-platform command-line using the Azure CLI 2.0. Read More