- Open VS Code.
-
Select Extensions on the left-side corner.
-
In the search box, enter Azure Account.
-
Select Azure Account and select Install.
-
Restart VS Code to load the extension.
-
Press Ctrl+Shift+P, and select Preferences: Open User Settings (JSON).
-
In the code editor, update the following JSON snippet with the values for your environment, and then paste snippet into the settings block.
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!