Sign in to Azure Account from VS Code

0 votes
How to sign in to my Azure subscription?
Mar 29, 2022 in Azure by Edureka
• 12,690 points
5,455 views

1 answer to this question.

0 votes
  1. Open VS Code.
  2. Select Extensions on the left-side corner.

  3. In the search box, enter Azure Account.

  4. Select Azure Account and select Install.

    Azure Stack Hub Visual Studio Code

  5. Restart VS Code to load the extension.

  6. Press Ctrl+Shift+P, and select Preferences: Open User Settings (JSON).

  7. In the code editor, update the following JSON snippet with the values for your environment, and then paste snippet into the settings block.

  • Values:
Parameter Description
azure.cloud The name of your environment.
azure.tenant The value of your Azure Stack Hub tenant ID.
azure.customCloud.resourceManagerEndpointUrl This is the root URL for the Azure Resource Manager for Azure Stack Hub.
validateAuthority You can leave out this parameter if you are using Azure AD as your identity manager. Add the parameter with a value of false if you are using AD FS.
  • JSON snippet:

    JSONCopy

      "azure.cloud": "AzureCustomCloud",
      "azure.customCloud.resourceManagerEndpointUrl": "https://management.region.<fqdn>",
      "azure.tenant": "<your-tenant-ID",
    8. Save the user settings (JSON) and use Ctrl+Shift+P once again. Select Azure: Sign in. The authentication page loads in your browser. Sign in to your endpoint.
     9. To test that you have successfully logged into your Azure Stack Hub subscription, use Ctrl+Shift+ P and select Azure: Select Subscription and see if the subscription you have is available.

Hope this helps!

Learn about Azure cloud architect certification here.

Thanks!

answered Mar 30, 2022 by Edureka
• 13,620 points

edited Jun 21, 2023 by Khan Sarfaraz

Related Questions In Azure

0 votes
1 answer
0 votes
1 answer

How to get the percentage of the predicted labels in Azure Custom Vision?

It's calculated in the same way, except ...READ MORE

answered Mar 26, 2022 in Azure by Edureka
• 12,690 points
292 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP