MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

Missing step for locally testing the rust function app with "func start" #112621

Open fratschi opened 1 year ago

fratschi commented 1 year ago

For Go/Rust In the chapter: Configure your function app

Setting the handler to this

  "customHandler": {
    "description": {
      "defaultExecutablePath": "handler",
      "workingDirectory": "",
      "arguments": []
    },
    "enableForwardingHttpRequest": true

will not work unless the executable rust file under target/release is copied to the root folder of the project. (Later this is done in chapter: Compile the custom handler for Azure)

Please add a comment that this file needs to be copied before you can start the local function runner.

And it would be helpful to state that the name of the function "HttpExample" needs to be in sync with path in the source code. For me, a value like "HttpExample" should not be used as path name (Uppercase letters in URLs have no effect, but propably in the function app definition). This makes it hard to understand.

best regards frank


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

SaibabaBalapur-MSFT commented 1 year ago

@fratschi Thanks for your feedback! We will investigate and update as appropriate.