Azure / azure-iot-explorer

Cross-platform UI for interacting with devices attached to Azure IoT Hub. This tool is meant for learning and testing, not for production environment.
MIT License
223 stars 74 forks source link

[BUG] Cannot sign into Azure using a MSA #548

Closed rido-min closed 2 years ago

rido-min commented 2 years ago

image

YingXue commented 2 years ago

Thanks for reporting the issue @rido-min, we are looking into this issue. We've got a mixed results of whether signin works for a personal account which is strange as we already made Explorer a first party app. Will update when we got some progress. Just want to make sure if the shcool/work account is working for you?

YingXue commented 2 years ago

Looking into the issue, we want to share several findings:

  1. MSA cannot access ARM resource, which is what Explorer needed to query subscriptions and hubs: https://stackoverflow.microsoft.com/questions/134002
  2. You should be able to access AAD with a personal account with a tenant, or register an Azure account: https://docs.microsoft.com/en-us/answers/questions/947467/cannot-access-34azure-active-directory34-from-the.html
  3. Before user can access Azure portal, there is a step of Azure registration. And thus users can access portal with their MSA account granting Portal would add the user to a tenant, but only in the context of Portal.

We would kindly ask our users with personal account to create a tenant, and login with user1@yourTenantName.onmicrosoft.com instead, or register an Azure account.