"Bad request" error while creating a tenant

tage danielsson 21 Reputation points
2022-03-09T13:28:59.05+00:00

When I try to create a tenant:

azsphere create tenant --name NewTenant

I get promted:

You have logged in with the following account: t*********@******.com. Caution: a device can only be used once to create a tenant. Do you want to use this account to create a new Azure Sphere tenant using the attached device? (y/n):

I press "y" and enter. I am expecting to create a new tenant using the attached device but instead I get this error:

command failed due to invalid parameters. Check the values you provided and try again. The Azure Sphere Security Service sent the following message: Bad Request

What does this even mean and what should I do about it.

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
386 questions
0 comments No comments
{count} votes

Accepted answer
  1. QuantumCache 20,106 Reputation points
    2022-03-10T00:33:39.71+00:00

    Hello @tage danielsson

    Are you sure that you are using the right account to create a new Azure Sphere tenant using the attached device?

    I hope you have already visited this page:

    When you create a tenant, the Azure Sphere Security Service records the device ID of the attached device. Each device ID can be used to create only one Azure Sphere tenant.

    You can use the --force-additional parameter to force a new Azure Sphere tenant to be created. Use this command only if you are certain that you want to use the current account to create a new Azure Sphere tenant using the attached device. A device that has previously been used to create an Azure Sphere tenant cannot be used to create a new tenant.

    Normally "azsphere tenant create" should read the locally attached device ID and send it automatically. Anyone needing to create a tenant should get the device ID with "azsphere device show-attached" and then use "azsphere tenant create -d <deviceid>" Please try this command and do let us know!

    Please comment in the below section for further help in this matter, happy to help.

    Please accept the helpful response as 'Answer', which will be helpful to others as well with similar questions


0 additional answers

Sort by: Most helpful