Azure App Service extension for VS Code
Перейти к файлу
Alex Weininger bc554944d5
Prep for v0.25.0 release (#2551)
* Bump version

* Update changelog

* Update changelog

* Update notice
2023-07-20 12:05:36 -07:00
.azure-pipelines Update utils (#2512) 2023-06-28 12:46:26 -07:00
.github Move workflow from root to workflows folder (#2296) 2022-07-26 14:13:12 -07:00
.husky Add sort pre-commit hook (#2140) 2021-10-01 17:35:10 -07:00
.vscode Merge unified into main (#2246) 2022-05-13 16:59:50 -07:00
resources v0.24.0 App Centric Release prep (#2258) 2022-05-24 09:32:43 -04:00
src Update appservice package to fix Files feature (#2550) 2023-07-20 11:25:54 -07:00
test Update utils (#2512) 2023-06-28 12:46:26 -07:00
.eslintignore Switch to ESLint (#1955) 2021-02-09 18:02:43 -08:00
.eslintrc.js Switch to shared ESLint config (#2114) 2021-09-13 12:04:04 -07:00
.gitattributes Create .gitattributes (#2311) 2022-09-08 08:44:40 -07:00
.gitignore Enable webpack (#828) 2019-01-23 12:33:29 -08:00
.nvmrc Add .nvmrc file (#2346) 2022-12-07 13:38:08 -08:00
.vscodeignore Switch to ESLint (#1955) 2021-02-09 18:02:43 -08:00
CHANGELOG.md Prep for v0.25.0 release (#2551) 2023-07-20 12:05:36 -07:00
CODE_OF_CONDUCT.md Add Code of Conduct and Security docs from template (#2016) 2021-04-14 10:57:36 -07:00
LICENSE.md Prep for publishing to VS Code Marketplace (#22) 2017-09-07 11:58:13 -07:00
NOTICE.html Prep for v0.25.0 release (#2551) 2023-07-20 12:05:36 -07:00
README.md Fix readme badges (#2328) 2022-10-18 14:23:04 -04:00
SECURITY.md Add Code of Conduct and Security docs from template (#2016) 2021-04-14 10:57:36 -07:00
SUPPORT.md Add support.md file (#2112) 2021-08-06 16:56:31 -07:00
extension.bundle.ts Merge unified into main (#2246) 2022-05-13 16:59:50 -07:00
gulpfile.ts Update dev package (#2184) 2022-04-14 12:26:46 -07:00
main.js Easier debugging in a webpacked world 🕸📦🌎 (#1443) 2020-03-17 15:49:47 -07:00
package-lock.json Prep for v0.25.0 release (#2551) 2023-07-20 12:05:36 -07:00
package.json Prep for v0.25.0 release (#2551) 2023-07-20 12:05:36 -07:00
package.nls.json Merge unified into main (#2246) 2022-05-13 16:59:50 -07:00
tsconfig.json Remove skipLibCheck (#2154) 2021-11-15 16:39:18 -05:00
vscode.proposed.terminalDataWriteEvent.d.ts Consume new VS Code Proposal API (#2166) 2022-01-06 10:52:33 -08:00
webpack.config.js Update utils (#2512) 2023-06-28 12:46:26 -07:00

README.md

Azure App Service for Visual Studio Code (Preview)

Version Installs Build Status

App Service is Azure's fully-managed Platform as a Service (PaaS) that lets you deploy and scale web, mobile, and API apps. Use the Azure App Service extension for VS Code to quickly create, manage, and deploy your websites.

Visit the wiki for more information about Azure App Service and how to use the advanced features of the extension.

Sign up today for your free Azure account and receive 12 months of free popular services, $200 free credit and 25+ always free services 👉 Start Free.

Installation

  1. Download and install the Azure App Service extension for Visual Studio Code

    If you're interested in deploying single page web apps or progressive web apps (something without an express server), install the Azure Storage extension

  2. Wait for the extension to finish installing then reload Visual Studio Code when prompted
  3. Once complete, you'll see an Azure icon in the Activity Bar

    If your activity bar is hidden, you won't be able to access the extension. Show the Activity Bar by clicking View > Appearance > Show Activity Bar

  4. Sign in to your Azure Account by clicking Sign in to Azure…

    If you don't already have an Azure Account, click "Create a Free Azure Account"

Deploy your first app to Azure

Once you are signed in to your Azure account and you have your app open in Visual Studio Code, click the Create Resource button - it's the plus icon - to create a Web App.

Create resource

Select "Create App Service Web App..."

Create resource

Tip: Be sure that your application is listening on the port provided by the PORT environment variable: server.listen(process.env.PORT)

  1. Type a globally unique name for your Web App and press Enter. Valid characters for an app name are 'a-z', '0-9', and '-'
  2. Choose your Runtime stack

Activity Log

Once your Web App has been created, reveal the resource in the Resource explorer, right click on the Web App and select "Deploy to Web App...".

Deploy to Web App

  1. Select your current workspace if you have your app open already or browse to the directory containing your application code

Click Yes if prompted to update your configuration to run npm install on the target server.

Update build notification

Once the deployment starts, you're prompted to update your workspace so that subsequent deploys from this workspace automatically deploy to the same App Service web app. Choose Yes to ensure your changes are deployed to the correct app - you can change this later by editing your workspace settings (in .vscode/settings.json).

Always deploy notification

Once the deployment completes, click Browse Website in the prompt to view your freshly deployed website.

Stream Your Application Logs

  1. In the Azure App Service explorer, expand the app then expand Logs
  2. Click on Connect to Log Stream...

Connect to Log Stream

  1. Choose Yes when prompted to enable logging and restart the app

    File logging is disabled by default and will automatically be disabled within 24 hours

  2. The Visual Studio Code output window opens with a connection to the log stream
Connecting to log stream...
2019-01-06T07:36:52  Welcome, you are now connected to log-streaming service.
2019-01-06 07:37:08.038 INFO  - Starting container for site
2019-01-06 07:37:33.273 INFO  - Container mahernaexpress_0 for site mahernaexpress initialized successfully.

Known Issues

  • Local Git deployment may fail with large commits

Contributing

There are a couple of ways you can contribute to this repo:

  • Ideas, feature requests and bugs: We are open to all ideas and we want to get rid of bugs! Use the Issues section to either report a new issue, provide your ideas or contribute to existing threads.
  • Documentation: Found a typo or strangely worded sentences? Submit a PR!
  • Code: Contribute bug fixes, features or design changes:
    • Clone the repository locally and open in VS Code.
    • Run "Extensions: Show Recommended Extensions" from the command palette and install all extensions listed under "Workspace Recommendations"
    • Open the terminal (press CTRL+ `) and run npm install.
    • To build, press F1 and type in Tasks: Run Build Task.
    • Debug: press F5 to start debugging the extension.

Before we can accept your pull request you will need to sign a Contribution License Agreement. All you need to do is to submit a pull request, then the PR will get appropriately labelled (e.g. cla-required, cla-norequired, cla-signed, cla-already-signed). If you already signed the agreement we will continue with reviewing the PR, otherwise system will tell you how you can sign the CLA. Once you sign the CLA all future PR's will be labeled as cla-signed.

Code of Conduct

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