element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Azure Sphere Starter Kit
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Azure Sphere Starter Kit
  • More
  • Cancel
Azure Sphere Starter Kit
Blog [PROJECT] Part 1... Getting Started With Microsoft Azure Guide, and a Simple Azure Sphere Sensor Project
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Azure Sphere Starter Kit to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Catwell
  • Date Created: 30 Sep 2019 5:26 PM Date Created
  • Views 3808 views
  • Likes 7 likes
  • Comments 12 comments
  • tutorial
  • step-by-step
  • azure sphere
  • microsoft
  • project
  • azure
  • diy
  • cabeatwell
Related
Recommended

[PROJECT] Part 1... Getting Started With Microsoft Azure Guide, and a Simple Azure Sphere Sensor Project

Catwell
Catwell
30 Sep 2019

Microsoft Azure is cool. It's an easy way to get an IoT project off the ground. The Azure Sphere Starter Kit is a great place to begin too. However, getting to that easy part is a journey. I've put together this guide to help people get started with a "hello word" kind of IoT project. I will step you all though the circuitous procedure of setting up a Azure account all the way through testing the project.

 

The project was a simple idea: detect vibration and send an alert. I want to do something similar to my Washing Machine Texter project. However, just getting a test version off the ground had a lot of steps that I want people do easily navigate first.

 

Section 1: Update Azure Sphere, Authenticate Against Microsoft Azure Active Directory and connect Azure Sphere to the Network (You need to do it on updated Windows 10).

 

1.1. You will need to use Windows 10 to run an Azure project. I used the trial of Microsoft Windows 10 Enterprise LTSC. I went here: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise

Choose the LTSC iso. I chose LTSC because I didn't want to deal with a lot of updates to the OS while I was developing. But, feel free to use any version you want. You will just need to update to the most recent version.

1.1.a. If you do not have a Microsoft account, you will need one. https://account.microsoft.com/account

 

1.2. You will need Visual Studio to install the Azure Sphere SDK and develop applications. You can use Community (free) Edition. Just go to https://visualstudio.microsoft.com/ and install Visual Studio IDE (Community will be OK).

 

image

1.3. After downloading the loader here, run it and select Desktop development with C++ and Linux development with C++.

image

image

image

 

1.4. Just after installing you have to Sign in to the Visual Studio. If you do not have an account you can create a new one.

 

At this point, I recommend creating a spreadsheet for all the accounts and passwords you will be creating over the course of this guide.

 

 

1.5 If you will be creating a new account, please create a new Organization Account (Azure Active Directory) - it is a must for Azure Sphere and you can create it here: https://account.azure.com/organization

Please use the CALL ME option. Sometimes Text Message doesn’t work.

image

 

1.6. After creating a new account (or using your old one) please log in to Visual Studio:

image

 

1.7. At this moment you can close Visual Studio and you can download and install the Azure Sphere SDK Preview for Visual Studio from https://aka.ms/AzureSphereSDKDownload.

image

TAP network devices will be installed during this process.

Installation time can take the same or even longer than Visual Studio.

Please remember to have all the updates installed.

 

Installing these windows should appear:

image

 

And finish with this:

image

 

1.8. Azure Sphere uses Azure Active Directory (AAD) to enforce enterprise access control. If you didn't already setup an Azure Active Directory (AAD) account, do as follows.

You need to be a Global Administrator to create Azure Sphere Tenant in your Azure Active Directory. If you are not Global Administrator or have not Azure Active Directory created you can just create it here: https://account.azure.com/organization

image

 

1.9. After that please restart your computer and Launch Azure Sphere Developer Command Prompt:

image

 

1.10.  Type the following commends (show current version, update your device) (please log in using GLOBAL Admin your Azure Active Directory):

azsphere device show-ota-status

 

If you receive error “error: The device is not responding.” just ignore it

azsphere device recover

 

Sometimes you have to unplug and plug your Azure Sphere Device back in.

azsphere device show-ota-status

 

If you receive error “error: The device is not responding.” just ignore it

 

1.11. Log in to the Azure Active Directory, type to following command:

azsphere login

 

1.12. If you have more that one Azure Sphere Tenant you can select it using Azure Sphere Tenant command, if you have not any you can create one and assign the device to it:

azsphere tenant create --name AZSphereMF

azsphere device claim

 

azsphere device claim – this is a one-way ticket, due to the security reason you cannot change Azure Sphere Tenant of your device.

image

 

1.13. Now you can connect your device to the internet using:

azsphere device wifi scan

azsphere device wifi add --ssid fastsmsnet2 --key "1131166687"

azsphere device wifi list

azsphere device wifi show-status

 

image

 

If all this worked out for you, move on to Part 2.

  • Sign in to reply

Top Comments

  • sandeepdwivedi17
    sandeepdwivedi17 over 5 years ago +1
    forgot azsphere login user name details as my windows crashed and lost most of saved logins is there any way to recover user name whenever i type azsphere device show-ota-status it gives error Selected…
  • joseph888
    joseph888 over 5 years ago +1
    Catwell AADSTS50020: User account 'xxxxxx@hotmail.com ' from identity provider 'live.com' does not exist in tenant 'OsTechnology' and cannot access the application '0b1c8f7e-28d2-4378-97e2-7d7d63f7c87f…
  • jgroman
    jgroman over 5 years ago in reply to newmc +1
    Guys, what SDK version are you using? On current SDK 19.10 your first login would look like this: azsphere login --newuser <email-address> See here for more details.
  • dinakaranevil
    dinakaranevil over 5 years ago

    can we not install in linux environment ??? is there any alternative

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mp2100
    mp2100 over 5 years ago

    Thanks for this Cabe.  My early reading about Azure Sphere made me think I had to have a Windows 10 computer.  I checked your links to Visual Studio, and I now see that Linux is supported (and Mac too).

    image

    My Azure Sphere kit is in the mail, I'm downloading the "deb" version now.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • newmc
    newmc over 5 years ago in reply to jgroman

    Thank you, I hadn't thought to look at the differences of the new SDK, this worked!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jgroman
    jgroman over 5 years ago in reply to newmc

    Guys, what SDK version are you using? On current SDK 19.10 your first login would look like this:

    azsphere login --newuser <email-address>


    See here for more details.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • newmc
    newmc over 5 years ago in reply to joseph888

    I'm in the same boat, can't login as my user account "from identity provider 'https://sts.windows.net/ec37a091-b9a6-47e5-98d0-903d4a419203/' does not exist in tenant 'Azure Sphere' and cannot access the application '0b1c8f7e-28d2-4378-97e2-7d7d63f7c87f'(Azure Sphere Utility) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account."

     

    I cannot create a tenant because I cannot be authenticated via azsphere login.  I cannot claim my device for the same reason.

     

    I've spent several evenings on this and am nearly ready to throw in the towel.

     

    I have $100 Azure credits for students, not sure if this will be helpful or not.  I'm running VS Enterprise 2017, and have installed the prerequisite SDK.  Not sure if I'm missing something or if this is something related to my MS account in some way.

     

    What should I try next?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube