Support `run from package` for function and web apps
- [x] Make sure you've installed the latest version using instructions in the wiki
Output from azd version
Run azd version and copy and paste the output here:
azd version 1.5.1 (commit 3856d1e98281683b8d112e222c0a7c7b3e148e96)
Describe the bug Deploying an Azure Function in dotnet 8 isolated doesn't work from a Linux machine.
To Reproduce
- Clone the following repo.
- Run
azd upfrom the root of the repo - Check the Overview panel of the Function App from the portal, no function has been deployed.
Expected behavior
We should see a HelloWorldFunction in the list of deployed functions. Deploying from vs code works fine.
Environment Information on your environment: * Language name and version: C#, dotnet isolated 8 * IDE and version : Visual Studio Code 1.85.1
Additional context
I guess my problem is related to the "run from a package" feature as described here in the docs.
Deploying from vs code adds the WEBSITE_RUN_FROM_PACKAGE setting to my Function App with a URL to a zip file in my storage account. I don't manage this setting in my Bicep code, I was expecting azd to handle it as vs code does (but it might be wrong).
The package created by azd in the /tmp folder looks correct.
I have also tried to use a file share (with the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and WEBSITE_CONTENTSHARE settings) but no content is pushed to the file share when deploying (except the host.json file).
Has anyone already deployed to a Linux Azure Function in .NET 8 isolated using azd ? I would like to know which method is supported, if any. I haven't found information about this in the docs, sorry if I missed it.
I am open to workarounds/suggestions, if there is anything I should try, please tell me !
Thanks and happy holidays !