<h1 id="sorrybutwerehavingtroublesigningyouinwereceivedabadrequest">Sorry, but we're having trouble signing you in. We received a bad request.</h1> <hr /> <h2 id="problem">Problem</h2> <p>When you add an Azure VM account under your MBS control panel you need add your Azure Portal credentials by hitting on “Sign in” button. Then you should be able to choose your Tenant ID and Subscription. But by some reasons you get an error from Azure “Sorry, but we’re having trouble signing you in. We received a bad request”.</p> <hr /> <h2 id="suggestionsandresolutions">Suggestions and Resolutions</h2> <p>Commonly, it’s connected with the fact that you trying to authorize under user who is not able to get access to your subscriptions/services. According to our recommendations, for proceed with Azure VM restore you need to have working or school account type. Working or school account have 2 types of users:</p> <ul> <li>Domain or created users</li> <li>Invited users</li> </ul> <p>Invited users do not have the rights to proceed with Azure VM restore.</p> <p>By following the steps below, in the end, you will be able to set up an Azure VM account and continue with restore.</p> <p>First of all you need to create a user</p> <ul> <li>Under your Azure Portal navigate to Azure Active Directory -&gt; then Domain Names and copy on of the existing domain name</li> </ul> <p><img src="/content/images/94156a4f-c144-4032-8d26-1ae2b6788196.png" alt="" /></p> <p>Once you copied/decided to which domain you will add a new user, navigate to Users and Groups section -&gt; All Users -&gt; Add user.</p> <p><img src="/content/images/713ca5e4-aa3b-4aa2-84c2-3f9ab8acbce0.png" alt="" /></p> <p>Create the user, configure all fields. User name is the identifier that the user enters to sign in to Azure AD. If you see the password during the user configuration - it means that you are creating the “School or Working” account in your domain.</p> <p><img src="/content/images/9f0730cb-b706-41d9-8b7e-c8da5aa8da33.png" alt="" /></p> <p>Copy your initial password. You will need it later. The initial password have to be changed on your first logon.</p> <p>Then we need to assign a right subscription to this new user:</p> <ul> <li>Go to subscriptions;</li> <li>Select one that you decided to use for your Azure VM.</li> </ul> <p><img src="/content/images/77b55f87-f672-46d5-a7bd-0e4659efca46.png" alt="" /></p> <ul> <li>Then Access Control (IAM);</li> <li>Add the new user to a certain subscription.</li> </ul> <p><img src="/content/images/ec1d391b-9c08-4267-8087-bda2c794d1a5.png" alt="" /></p> <p>Select a role with the certain rights that enough for Azure VM creation.</p> <p><img src="/content/images/78b2504f-9dd1-4695-a6a5-0d875194413e.png" alt="" /></p> <p>Once you selected the role, select the user that you recently created</p> <p>Then you need to log out and log in by using the credentials for newly created user and change the initial password</p> <p>Eventually, you need to create your Azure VM account under your MBS control panel. During the signing in you should enter the credentials for user that have been created during the previous steps.</p> <p><img src="/content/images/19a85a2d-e54c-41b9-9317-81efcca13c02.png" alt="" /></p>