You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-node-simple-http-endpoint/README.md
+19-7
Original file line number
Diff line number
Diff line change
@@ -5,28 +5,40 @@ layout: Doc
5
5
-->
6
6
# Simple HTTP example
7
7
8
-
In this example, we deploy an HTTP Node.js Azure Function. This sample show you how to read properties off of a query string or the request body, then set a result back to Azure.
8
+
In this example, we deploy an HTTP Node.js Azure Function. This sample show you
9
+
how to read properties off of a query string or the request body, then set a
10
+
result back to Azure.
9
11
10
12
See the [Azure Functions Serverless Plugin docs](https://www.serverless.com/framework/docs/providers/azure/) for more info.
11
13
14
+
_Note: you may need to change the `service` name in `serverless.yml`_
15
+
12
16
## Setup
13
17
14
18
1. We recommend Node.js v6.5.0
15
-
2. Install the serverless framework - `npm i -g serverless`
16
-
3. Install the dependencies of this example - `npm i`
19
+
2. Install the serverless framework - `npm install -g serverless`
20
+
3. Install the dependencies of this example - `npm install`
17
21
18
22
## Deploying
19
23
20
-
To deploy, set up your [Credentials](https://www.serverless.com/framework/docs/providers/azure/guide/credentials) and run
24
+
To deploy, use the `deploy` and follow the instructions to log into your Azure
25
+
account.
21
26
22
27
```bash
23
-
serverless deploy
28
+
$ serverless deploy
29
+
Serverless: Packaging service...
30
+
Serverless: Logging in to Azure
31
+
Serverless: Paste this code (copied to your clipboard) into the launched browser, and complete the authentication process: BLAZSRMVJ
24
32
```
25
33
34
+
Once authenticated, the session will continue and deploy the app.
35
+
26
36
## Invoking
27
37
28
-
Once deployed, run
38
+
Invoke the deployed function using the `invoke` command.
0 commit comments