Common Azure Login extension for VS Code
Перейти к файлу
Alex Weininger e7f7e14030
Run npm audit fix (#1004)
2024-10-08 10:34:35 -04:00
.azure-pipelines Add (#953) 2024-04-29 15:02:20 -07:00
.github Add main.yml GitHub workflow (#955) 2024-04-29 15:22:42 -07:00
.husky Add sort pre-commit hook (#334) 2021-10-04 10:57:23 -07:00
.vscode Depend on Azure Resources extension for Cloud Shell feature (#958) 2024-05-10 14:50:34 -07:00
bin Remove node dependency 2017-11-07 11:29:46 -08:00
codeFlowResult Update sign in page styles to use new product icon, fixes #184 2020-06-29 11:26:33 -07:00
docs Start extension design document (#572) 2022-05-24 15:09:19 -07:00
redirect Decode query string before scanning 2019-09-19 17:16:04 +02:00
resources Update README, CHANGELOG to include `TerminalProfile` change and small updates (#352) 2021-11-04 12:17:03 -07:00
sample Bump axios and vscode-tas-client in /sample (#889) 2023-11-13 17:56:46 -08:00
src Depend on Azure Resources extension for Cloud Shell feature (#958) 2024-05-10 14:50:34 -07:00
.eslintignore Add .azure-pipelines (#273) 2021-06-03 11:25:14 -07:00
.eslintrc.js Switch to shared ESLint config (#302) 2021-08-12 11:28:29 -07:00
.gitignore Use webpack (#87) 2018-11-08 18:59:17 +01:00
.nvmrc Add (#953) 2024-04-29 15:02:20 -07:00
.vscodeignore Include more paths in .vscodeignore (#421) 2022-02-03 14:15:47 -08:00
CHANGELOG.md Bump version and update changelog for 0.12.0 release (#962) 2024-05-14 15:08:44 -07:00
LICENSE.md Update README, CHANGELOG to include `TerminalProfile` change and small updates (#352) 2021-11-04 12:17:03 -07:00
NOTICE.txt Prep for v0.11.6 release (#871) 2023-10-06 13:13:22 -04:00
README.md Add deprecation blurb to readme (#965) 2024-05-14 15:30:00 -07:00
SECURITY.md Microsoft mandatory file (#567) 2022-05-17 10:44:17 -04:00
SUPPORT.md Add SUPPORT.md (#426) 2022-02-08 16:09:04 -08:00
extension.bundle.ts Use vscode-azureextensiondev for webpacking (#402) 2022-01-14 17:24:52 -08:00
gulpfile.ts Use vscode-azureextensiondev for webpacking (#402) 2022-01-14 17:24:52 -08:00
main.js Use vscode-azureextensiondev for webpacking (#402) 2022-01-14 17:24:52 -08:00
package-lock.json Run npm audit fix (#1004) 2024-10-08 10:34:35 -04:00
package.json Update @vscode/extension-telemetry package (#986) 2024-07-25 11:40:11 -07:00
package.nls.json Make "Select subscription" command titles match (#963) 2024-05-13 18:46:03 -07:00
tsconfig.json Update `http-proxy-agent` and `https-proxy-agent` (#640) 2022-10-04 15:17:42 -04:00
webpack.config.js Use vscode-azureextensiondev for webpacking (#402) 2022-01-14 17:24:52 -08:00

README.md

Azure Account and Sign In

Version Installs Build Status

⚠️ Attention extension authors! The Azure Account extension is being deprecated in January 2025. If you own an Azure extension that relies on Azure Account, or are creating a new extension that needs authentication to Azure, please see the deprecation announcement for guidance.

The Azure Account extension provides a single Azure sign in and subscription filtering experience for all other Azure extensions. It makes Azure's Cloud Shell service available in VS Code's integrated terminal.

Signing In/Out

There are multiple commands accessible via the command palette that may be used to sign into Azure.

Sign in commands in the command palette

Sign out of Azure using the Azure: Sign Out command.

The sign out command in the command palette

Azure Cloud Shell

Note: The Azure Cloud Shell feature has moved to the Azure Resources extension. Apart from moving codebases, the feature is the same from a users perspective. Authentication for the Cloud Shell feature is now handled by the VS Code built-in Microsoft authentication provider, which means you may have to login upon first use of the migrated feature.

Azure Cloud Shell instances can be started via the terminal view in VS Code. To begin, click the dropdown arrow in the terminal view and select from either Azure Cloud Shell (Bash) or Azure Cloud Shell (PowerShell).

VS Code terminal view with context menu

If this is your first time using the Cloud Shell, the following notification will appear prompting you to set it up.

"Must setup cloud shell" notification

The Cloud Shell will load in the terminal view once you've finished configuring it.

The Azure Cloud Shell in the terminal window

You may also upload to the Cloud Shell using the Azure: Upload to Cloud Shell command.

Commands

Command
Azure: Sign In Sign in to your Azure subscription.
Azure: Sign In with Device Code Sign in to your Azure subscription with a device code. Use this in setups where the Sign In command does not work.
Azure: Sign In to Azure Cloud Sign in to your Azure subscription in one of the sovereign clouds.
Azure: Sign Out Sign out of your Azure subscription.
Azure: Select Subscriptions Pick the set of subscriptions you want to work with. Extensions should respect this list and only show resources within the filtered subscriptions.
Azure: Create an Account If you don't have an Azure Account, you can sign up for one today and receive $200 in free credits.
Azure: Upload to Cloud Shell1 Upload a file to your Cloud Shell storage account

1 On Windows: Requires Node.js 6 or later to be installed (https://nodejs.org).

Settings

Name Description Default
azure.resourceFilter The resource filter, each element is a tenant id and a subscription id separated by a slash.
azure.showSignedInEmail Whether to show the email address (e.g., in the status bar) of the signed in account. true
azure.tenant A specific tenant to sign in to. The default is to sign in to the common tenant and use all known tenants.
azure.cloud The current Azure Cloud to connect to. Azure
azure.ppe Development setting: The PPE environment for testing.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you dont wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.

License

MIT

The Visual Studio Code logo is under the license of the Visual Studio Code product.