microsoft / WhatTheHack

A collection of challenge based hack-a-thons including student guide, coach guide, lecture presentations, sample/instructional code and templates. Please visit the What The Hack website at: https://aka.ms/wth
MIT License
1.77k stars 875 forks source link

[Bug]: 015-Serverless - Autogenerated functions.json don't work due to known open bug upstream #785

Closed marcosgm closed 11 months ago

marcosgm commented 11 months ago

Which Hack?

015-Serverless

Current Behavior

Using VSCode, ProcessImage function uploads but the Input binding is not valid, it needs "direction" : "in"

image

Expected Behavior

Deploying the function to Azure using VSCode should work out of the box, after doing the required code changes (TODO, etc)

Instead, a manual workaround can be done, manually editing the JSON, manually ZIPping the files and uploading it via CLI https://github.com/Azure/azure-functions-core-tools/issues/3157#issuecomment-1843236365

Steps To Reproduce

Just build and deploy the function, as-is, makes the Azure Portal complain about missing JSON value "direction": "in" image

Environment

No response

Anything else?

No response

Code of Conduct

jrzyshr commented 11 months ago

Closing the issue as it is now covered in the Coach guide so Coaches can be aware and unblock students until the bug is resolved by the product team.