Error when trying to create a tenant in Azure Sphere

Mame Meier 70 Reputation points
2024-01-16T17:29:12.5466667+00:00

Hello, I am new to Azure Sphere and I am following the instructions in this official Microsoft link: https://learn.microsoft.com/de-de/azure-sphere/install/overview?view=azure-sphere-legacy. I have successfully made step 1 Install SDK. Have created/registered a Sphere user Admin account ....@xy.onmicrosoft.com. Next step is to create a tenant. azsphere tenant create --name MSW Where I always get the same error: D:\a_work\1\s\azsphere-cli\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py:463: SubjectAltNameWarning: Certificate for 192.168.35.2 has no subjectAltName, falling back to check for a commonName for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.) command to list certs: azsphere ca-certificate list You don't have access to any Azure Sphere tenants. Type 'azsphere tenant create --name <name>' I am doing the commands in a PowerShell with Admin rights using a Domain Admin account. azsphere login with the created user ....@xy.onmicrosoft.com Azure Sphere Development Kit has IP 192.168.35.2 Any help is much appreciated. THX Markus

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
{count} votes

Accepted answer
  1. Mike Hall 85 Reputation points Microsoft Employee
    2024-01-22T13:00:14.88+00:00

    Hi, Can you try the following and let me know if this works for you. use the following Azure Sphere CLI commands:

    azsphere device list-attached
    

    This will return the attached Azure Sphere device id (a 128 character string). Then use the tenant name, and device id (the device needs to be unclaimed) to create the tenant.

    azsphere tenant create --name MSW --device <your_device_id>
    

    Please let me know the result! Mike


1 additional answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 16,286 Reputation points
    2024-01-29T23:34:17.03+00:00

    Thank you @Mike Hall and @Oleg Kharitonov for your assistance on this issue.

    @Mame Meier I am drafting the response below to capture all the useful information shared above for better readability to the community members. I appreciate it if you can mark the response as Accept Answer and Yes Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    Issue

    Error when trying to create a tenant in Azure Sphere

    Solution

    The commands were initially run by an Azure Sphere non-admin user. The tenant appears to be registered to a different user. Try running run azsphere logout from a non-admin command prompt, and then Refresh the Tenants node in Visual Studio. The provides a prompt to log in. Make sure to login with the credentials of the user to tenant is registered with.

    Please let us know if you have any additional questions or need further assistance on this. Thank you.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.