Can't change default function name while using FastAPI
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Review AsgiFunctionApp and the proposed function_name(name=...) usage first, then inspect how the library derives the deployed default name. Confirm the supported way to assign a custom name and verify that multiple FastAPI functions can coexist in one app.
Written by the indexing model from the issue text.
Description
I've been trying to set a custom name while using FastAPI and couldn't find the proper way. It always deploys my function with the name "http_app_func," making deploying multiple functions to the same app impossible.
Has anyone been successful with this task?
This is the syntax I thought it would work:
app = func.AsgiFunctionApp(app=fastapi_app, http_auth_level=func.AuthLevel.FUNCTION).function_name(name="HttpTest")
- Dominant language
- Python
- Stars
- 179
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-functions-python-library
-
McpPropertyType.FLOAT emits invalid JSON Schema type "float" in MCP tool inputSchemaPossibly taken @zecloud claimed this 4 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
area:python-functions
Difficulty 1/5 Under an hour Newbie friendliness 10/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
area:python-functions
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Azure/azure-functions-python-library#226 · 1 comment · 2 reactions ·
All issues in Azure/azure-functions-python-library
Similar issues
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
debpalash/VoiceStudio#2624 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
SQLGlot translates Spark concat_ws on an array into array stringificationPossibly taken @ansh-rohilla claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Make Catch2 optional when `RDK_BUILD_CPP_TESTS=OFF`Possibly taken @pechersky claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days