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
@@ -45,7 +45,7 @@ By default, the Flex Consumption plan follows a _pay-for-what-you-use_ billing m
45
45
::: zone pivot="programming-language-python"
46
46
+[Python 3.11](https://www.python.org/).
47
47
::: zone-end
48
-
+ A secure HTTP test tool for sending HTTP GET and HTTP POST requests to your function endpoints. For more information, see [HTTP test tools](functions-develop-local.md#http-test-tools).
48
+
+ A [secure HTTP test tool](functions-develop-local.md#http-test-tools) for sending HTTP GET and HTTP POST requests to your function endpoints. This article uses `curl`.
49
49
50
50
## Initialize the project
51
51
@@ -58,9 +58,12 @@ You can use the `azd init` command to create a local Azure Functions code projec
This pulls the project files from the [template repository](https://github.com/Azure-Samples/functions-quickstart-dotnet-azd) and initializes the project in the current folder.
3. Create a file named _local.settings.json_ in the app's root folder (`/http`), and add this JSON data to the file:
66
+
3. Create a file named _local.settings.json_ in the appfolder (`http`) that contains this JSON data:
64
67
65
68
```json
66
69
{
@@ -82,32 +85,47 @@ You can use the `azd init` command to create a local Azure Functions code projec
82
85
cd http
83
86
```
84
87
88
+
This pulls the project files from the [template repository](https://github.com/Azure-Samples/azure-functions-java-flex-consumption-azd) and initializes the project in the current folder.
This pulls the project files from the [template repository](https://github.com/Azure-Samples/functions-quickstart-javascript-azd) and initializes the project in the root folder.
This pulls the project files from the [template repository](https://github.com/Azure-Samples/functions-quickstart-powershell-azd) and initializes the project in the root folder.
This pulls the project files from the [template repository](https://github.com/Azure-Samples/functions-quickstart-typescript-azd) and initializes the project in the root folder.
This pulls the project files from the [template repository](https://github.com/Azure-Samples/functions-quickstart-python-http-azd) and initializes the project in the root folder.
You can find examples of both HTTP requests in the _test.http_ project file.
281
+
This command reads JSON payload data from the `testdata.json` project file. You can find examples of both HTTP requests in the `test.http` project file.
224
282
225
283
1. When you're done, press Ctrl+C in the terminal window to stop the `func.exe` host process.
226
284
::: zone pivot="programming-language-python"
@@ -316,21 +374,31 @@ This project is configured to use the `azd up` command to deploy this project to
316
374
317
375
+ Package and deploy your code to the deployment container (equivalent to [`azd deploy`](/azure/developer/azure-developer-cli/reference#azd-deploy)). The app is then started and runs in the deployed package.
318
376
319
-
1. After the command completes successfully, you see links to the resources created. Make a copy of the **Function App** name. If you forgot to save the app name, you can always get it again using the `azd env get-values` command and copying `AZURE_FUNCTION_NAME`.
377
+
1. After the command completes successfully, you see links to the resources created.
320
378
321
379
## Invoke the function on Azure
322
380
323
381
You can now invoke your function endpoints in Azure by making HTTP requests to their URLs using your HTTP test tool or from the browser (for GET requests). When your functions run in Azure, access key authorization is enforced, and you must provide a function access key with your request.
324
382
325
-
You can use the Core Tools to obtain the URL endpoints of your functions running in Azure, along with their required access key values.
383
+
You can use the Core Tools to obtain the URL endpoints of your functions running in Azure.
326
384
327
-
1. In your local terminal or command prompt, run this `func azure functionapp list-functions` command:
385
+
1. In your local terminal or command prompt, run this command to get the URL endpoint values, including access keys:
In this example, replace `<APP_NAME>` with the name of the function app created by azd during deployment. Using the `--show-keys` option means that the returned **Invoke URL:** value for each endpoint includes a function-level access key.
399
+
---
400
+
401
+
The `azd env get-value` command gets your function app name from the local environment. Using the `--show-keys` option means that the returned **Invoke URL:** value for each endpoint includes a function-level access key.
334
402
335
403
1. As before, use your HTTP test tool to validate these URLs in your function app running in Azure.
0 commit comments