Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.32k stars 435 forks source link

`func azure functionapp publish` reports case insensitive API path #3823

Open tsoernes opened 2 months ago

tsoernes commented 2 months ago

Version

azure-func --version (base) 14:29:25 4.0.6280

Description

$ func azure functionapp publish AzureFunctionRustPOC
Getting site publishing info...
[2024-09-16T12:29:07.396Z] Starting the function app deployment...
Uploading package...
Uploading 4.16 MB [###############################################################################]
Upload completed successfully.
Deployment completed successfully.
[2024-09-16T12:29:14.997Z] Syncing triggers...
Functions in AzureFunctionRustPOC:
    RustPoc - [httpTrigger]
        Invoke url: https://xxx.azurewebsites.net/api/rustpoc

However, the folder is named RustPoc and the api is only accessible through the case sensitive https://xxx.azurewebsites.net/api/RustPoc

Steps to reproduce

func azure functionapp publish

liliankasem commented 1 week ago

I am able to see what you are describing, the url shows the lowercase name (httptrigger) of the function which is actually httpTrigger, but I am still able to invoke the function with the provided invocation URL and it is successful.

Deployment completed successfully.
[2024-11-08T19:23:52.412Z] Syncing triggers...
Functions in repro-funcpublish:
    httpTrigger - [httpTrigger]
        Invoke url: https://xxx.azurewebsites.net/api/httptrigger

the api is only accessible through the case sensitive

Is this a restriction you've made on your application? If not, can you share a full code repro so I can investigate further?

tsoernes commented 1 week ago

https://github.com/tsoernes/RustPoc/