This extension for Visual Studio Code provides tools for NodeJs developers working with Azure SDKs.
Перейти к файлу
microsoft-github-policy-service[bot] 49d145dd01
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2022-11-28 19:35:51 +00:00
.vscode Commiting all latest code from 2017-02-10 16:13:15 -08:00
resources add package-browsing gif illustrating how to use 2017-03-09 17:42:28 -08:00
src fix name generation for require 2017-03-15 23:35:36 -07:00
test Commiting all latest code from 2017-02-10 16:13:15 -08:00
.eslintrc.json Commiting all latest code from 2017-02-10 16:13:15 -08:00
.gitignore Commiting all latest code from 2017-02-10 16:13:15 -08:00
.vscodeignore Commiting all latest code from 2017-02-10 16:13:15 -08:00
LICENSE Initial commit 2017-02-09 12:10:23 -08:00
README.md Update README.md 2017-04-01 12:07:46 -07:00
SECURITY.md Microsoft mandatory file 2022-09-13 15:18:24 +00:00
changelog.md Update changelog.md 2017-04-01 12:04:18 -07:00
jsconfig.json Commiting all latest code from 2017-02-10 16:13:15 -08:00
package.json publish latest version 2017-04-01 12:16:45 -07:00
vsc-extension-quickstart.md Commiting all latest code from 2017-02-10 16:13:15 -08:00

README.md

Azure Node Essentials

This extension provides tools for NodeJs developers working with Azure SDKs.

Feature List

  1. Project and file scaffolding
    • yo azure-node to create
      • Javascript or Typescript project with package.json set up to target Azure SDKs
      • Empty .js or .ts files
      • pre populated .tsconfig or .jsconfig files
      • create a service principal
  2. Snippets for some common operations such as authentication, creating a service principal.
    • loginInt : generate code for interactive login
    • loginPwd : generate code for logging in with username and password
    • loginSp : generate code for logging in with a service principal
    • spCreate : generate code to create a service principal
  3. Search and Install Azure packages from NPM
    • command Azure-Node: Browse Azure-SDK Packages : type to filter by matching name, enter to npm-install it locally
  4. Code generation scenarios
    • command Azure-Node: Generate code for template deployment : generate code for template deployment

Demo

Project Scaffolding

Project Scaffolding

Snippets

Snippets

Package browsing

Package browsing

Code generation

1. template deployment

Code gen for template deployment

Sample workflow

  1. Open VS code with an empty workspace (empty folder)
  2. Bring up VS code command palette, invoke yo
  3. Choose azure-node generator and invoke it.
  4. Choose * app to invoke the main generator (the sub generators for files are listed at the root level)
  5. Choose a Javascript project and proceed.
  6. This should initialize your project and install npm dependencies
  7. Meanwhile, open the folder in VSCode and navigate to index.js
  8. Notice that package.json has been set up and index.js has boiler plate code for authentication.
  9. Place caret on the line after // TODO: Write your application logic here.
  10. From VS Code's command palette, invoke >Azure-Node: Generate code for template deployment
  11. The extension generates code for template deployment in the file currently active in the vscode editor and adds required dependencies to package.json.

Dependencies

The following package/extension dependencies are auto installed when you install this extension.

  1. vscode yo
  2. generator-azure-node

Contributing

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.