Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Azure Functions extension for VS Code —

License

NotificationsYou must be signed in to change notification settings

CodeEditorLand/LandAzureFunctions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VersionInstallsBuild Status

Use the Azure Functions extension to quickly create, debug, manage, and deploy serverless apps directly from VS Code. Check out theAzure serverless community library to view sample projects.

Visit thewiki for more information about Azure Functions and how to use the advanced features of this 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.

Create your first serverless app

  1. Select the button to create a new project in the Azure Resources explorer

    createNewProject

  2. Select a new,empty folder to contain your project

  3. Select your desired programming language

  4. Select "HTTP trigger" for your project's first function

  5. Use "HttpTrigger1" as the function name

  6. Select "Anonymous" for the authorization level, which enables anyone to call your function endpoint without a key.

    To learn more about authorization levels, seehere.

  7. If the selected folder is not already open, select "Open in current window" to open it

Run the serverless app locally

This extension integrates with theAzure Functions Core Tools to let you run your project locally before publishing to Azure.

  1. To start your project, press F5 or the "play" button

    debug

  2. If you do not have theAzure Functions Core Tools installed, you will be automatically prompted to install. Follow the specified instructions, or skip to the "Deploy" step if you would rather deploy without running locally.

    TIP: The "Terminal" panel should pop up automatically and you know your project is running if you see output

  3. Expand yourlocal project in the Azure Workspace explorer to copy your function's url

    debug2

  4. Navigate to a browser, paste the url, and append?name=world

    TIP: Your url should look like this:http://localhost:7071/api/HttpTrigger1?name=world

  5. A response of "Hello world" is returned in the browser and you know your function worked!

  6. Select the "Detach" button to stop your project from running locally

    debug3

Deploy to Azure

  1. Sign in to your Azure Account by clicking "Sign in to Azure..." in the Azure Resources explorer

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

  2. Select the 'plus' button to open the "Create Resource" menu

    Create resource

  3. Choose "Create Function App in Azure..."

    Create Function App in Azure

  4. Enter a globally unique name for your Function App

  5. If multiple versions of your language's runtime are supported (i.e. Node.js 10 and Node.js 12), select your desired version (the latest is recommended)

  6. Select a location

  7. Wait for your Function App to be created. Progress will be shown in the Activity Log panel

    deploy2

  8. Once your Function App has been created, reveal the resource in the Resources view.

    Finished creating Function App

  9. Right click your Function App and select "Deploy to Function App"

    Deploy to Function App

  10. Once deployment is complete, expand yoursubscription in the Azure Resources explorer to copy your deployed function's url

    deploy3

  11. Navigate to a browser, paste the url, and append?name=world

    TIP: Your url should look like this:https://<function app name>.azurewebsites.net/api/HttpTrigger1?name=world

  12. A response of "Hello world" is returned in the browser and you know your function worked!

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 thecommand palette and install all extensions listed under "Workspace Recommendations"
    • Open the terminal (pressCTRL+`) and runnpm install.
    • To build, pressF1 and type inTasks: Run Build Task.
    • Debug: pressF5 to start debugging the extension.

Legal

Before we can accept your pull request you will need to sign aContribution 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 ascla-signed.

Code of Conduct

This project has adopted theMicrosoft Open Source Code of Conduct. For more information see theCode of Conduct FAQ or contactopencode@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 ourprivacy statement to learn more. If you don’t wish to send usage data to Microsoft, you can set thetelemetry.enableTelemetry setting tofalse. Learn more in ourFAQ.

Lifecycle

The Azure Functions extension for VS Code follows theModern Lifecycle Policy. Follow instructionshere to get the latest updates of the extension.

Support Dates

VersionStart DateRetirement Date
1.x10/20/2020In Support

License

MIT

About

Azure Functions extension for VS Code —

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript97.7%
  • C#2.0%
  • Other0.3%

[8]ページ先頭

©2009-2025 Movatter.jp