From 152b3f3fd30b5a07826196ac040a986e9909f7f5 Mon Sep 17 00:00:00 2001 From: kumarkaji <153839042+kumarkaji@users.noreply.github.com> Date: Mon, 10 Nov 2025 00:04:06 -0500 Subject: [PATCH 1/5] Fix directory name in clone instructions Correction in the cd command to the one that actually gets created by the previous command. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d733d3..bb38101 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ You can initialize a project from this `azd` template in one of these ways: ```shell git clone https://github.com/Azure-Samples/functions-quickstart-python-http-azd.git - cd functions-quickstart-python-azd + cd functions-quickstart-python-http-azd ``` You can also clone the repository from your own fork in GitHub. From 78ba8de9963822406525a4338581fa42d865cf1f Mon Sep 17 00:00:00 2001 From: kumarkaji <153839042+kumarkaji@users.noreply.github.com> Date: Mon, 10 Nov 2025 00:17:50 -0500 Subject: [PATCH 2/5] Fix POST request formatting in test.http --- test.http | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.http b/test.http index 126f49e..b9b91d3 100644 --- a/test.http +++ b/test.http @@ -6,10 +6,10 @@ GET http://localhost:7071/api/httpget?name=World HTTP/1.1 ### -POST http://localhost:7071/api/httppost HTTP/1.1 +POST http://localhost:7071/api/httppost content-type: application/json { "name": "Awesome Developer", "age": 25 -} \ No newline at end of file +} From a2d1d645f3ab5c8e42a7499cccc0b34fa1f37808 Mon Sep 17 00:00:00 2001 From: Paul Yuknewicz Date: Sat, 21 Feb 2026 11:32:45 -0800 Subject: [PATCH 3/5] Upgrade Python runtime from 3.12 to 3.13 Fixes #22 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- infra/main.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/main.bicep b/infra/main.bicep index 9b333e5..337a436 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -110,7 +110,7 @@ module api './app/api.bicep' = { applicationInsightsName: monitoring.outputs.name appServicePlanId: appServicePlan.outputs.resourceId runtimeName: 'python' - runtimeVersion: '3.12' + runtimeVersion: '3.13' storageAccountName: storage.outputs.name enableBlob: storageEndpointConfig.enableBlob enableQueue: storageEndpointConfig.enableQueue From 62b30deb0e113ecb8faa67670b6ae80c93d02068 Mon Sep 17 00:00:00 2001 From: Paul Yuknewicz Date: Mon, 23 Feb 2026 17:29:43 -0800 Subject: [PATCH 4/5] Add local.settings.json to template - Add local.settings.json with base settings (AzureWebJobsStorage, FUNCTIONS_WORKER_RUNTIME) - Remove local.settings.json from .gitignore so file ships with template - Keep local.settings.json in .funcignore to prevent deployment - Update README.md: - Remove manual file creation instructions - Add Azurite to prerequisites (required for UseDevelopmentStorage=true) - Add step to start Azurite before running the function This improves developer experience by including the required local settings file directly in the template, eliminating a manual setup step. Tracking: https://github.com/microsoft/GitHub-Copilot-for-Azure/issues/973 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .gitignore | 1 - README.md | 22 ++++++++++------------ local.settings.json | 7 +++++++ 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 local.settings.json diff --git a/.gitignore b/.gitignore index 3257a3d..8dbd7d3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ __pycache__/ *$py.class # Azure Functions -local.settings.json # Distribution / packaging .Python diff --git a/README.md b/README.md index 3d733d3..f201c2d 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ This source code supports the article [Quickstart: Create and deploy functions t ## Prerequisites + [Python 3.11](https://www.python.org/) ++ [Azurite](https://learn.microsoft.com/azure/storage/common/storage-use-azurite) (for local storage emulation) + [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local?pivots=programming-language-python#install-the-azure-functions-core-tools) + [Azure Developer CLI (AZD)](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd) + To use Visual Studio Code to run and debug locally: @@ -51,19 +52,10 @@ You can initialize a project from this `azd` template in one of these ways: You can also clone the repository from your own fork in GitHub. -## Prepare your local environment +## Local settings -Add a file named `local.settings.json` in the root of your project with the following contents: +The `local.settings.json` file is included in this template with default values for local development. This file is excluded from deployment by `.funcignore`. -```json -{ - "IsEncrypted": false, - "Values": { - "AzureWebJobsStorage": "UseDevelopmentStorage=true", - "FUNCTIONS_WORKER_RUNTIME": "python" - } -} -``` ## Create a virtual environment @@ -86,7 +78,13 @@ py -m venv .venv ## Run your app from the terminal -1. To start the Functions host locally, run these commands in the virtual environment: +1. Start Azurite for local storage emulation. In a separate terminal, run: + + ```shell + azurite + ``` + +1. In your project terminal, start the Functions host: ```shell pip3 install -r requirements.txt diff --git a/local.settings.json b/local.settings.json new file mode 100644 index 0000000..3a10b64 --- /dev/null +++ b/local.settings.json @@ -0,0 +1,7 @@ +{ + "IsEncrypted": false, + "Values": { + "AzureWebJobsStorage": "UseDevelopmentStorage=true", + "FUNCTIONS_WORKER_RUNTIME": "python" + } +} From 114f971ffb0901820af3266d8604d0839cd1a7e1 Mon Sep 17 00:00:00 2001 From: vuchien-ai Date: Mon, 29 Jun 2026 04:25:17 +0000 Subject: [PATCH 5/5] vuchien-ai --- .vscode/settings.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 60e70c2..e06640d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,8 @@ "azureFunctions.projectLanguage": "Python", "azureFunctions.projectRuntime": "~4", "debug.internalConsoleOptions": "neverOpen", - "azureFunctions.projectLanguageModel": 2 + "azureFunctions.projectLanguageModel": 2, + "githubPullRequests.ignoredPullRequestBranches": [ + "main" + ] } \ No newline at end of file