Hey,
Nice introduction. Could you explain how to deploy to Azure?
We have this convenient 1 click "Publish" button that spoils us on Web Apps. And I can't find an easy way to deploy a function from VS on the Mac.
thanks, bye
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi @paulceli, unfortunately there is no option at the minute to Right-click > publish Azure Functions in Visual Studio for Mac. However, we have been working hard to add this feature and we plan to add it in our next preview, which should be released very soon! You can update to the latest preview, by following the steps here.
The only other option around this, would be to work with existing deployment options in the Portal, as documented here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-continuous-deployment
@paulceli Just to follow up on this, the Publish feature is now working in the most recent preview version of Visual Studio for Mac, which you can install by following the steps here: https://docs.microsoft.com/visualstudio/mac/install-preview.
I'm working on getting some documentation for this feature up ASAP.
Hey, thanks Amy.
I created a fresh new "Azure Functions" project, but when I try to deploy, always get the msg "Error deploying app instance".
It manage to create an "App service plan" and a dedicated "Storage account" to my azure though.
Any idea what could go wrong? where I could see more log ?
bye
EDIT: I managed to create manually the "Function App" in Azure, and then I could select it and deploy correctly from Visual Studio. (after accepting to change to beta version).
@paulceli Once you managed to manually create the app and deploy to it, did it work as expected for you?
Not on first try.
Like I said, I had to accept to change to beta version in a Visual Studio Pop-up.
Then project deployed but it wasn't working at first.
I also had to change the app setting FUNCTIONS_EXTENSION_VERSION value from "~1" to "beta" as mentioned here : https://stackoverflow.com/questions/48952452/azure-function-implemented-locally-wont-work-in-the-cloud
Didn't have time to test a lot but the default "hello" function works.
@paulceli Thanks for your feedback, I really appreciate it. That definitely sounds like a bit of an obtuse workflow so I'll make sure to add this information to the guide. I've also spoken to the engineering team, particularly about the app setting issue and have been assured that they're fixing it.
Wow... Spent a whole day looking for why I can't publish functions from Mac, and then I finally see this little comment thread. Hope publishing makes it to public soon.
@sm1th The functionality is still in preview, which you can access through the Alpha or Beta channel. Feel free to try it out and provide feedback on developer community.
@asb3993 I've done that, thanks.
The docs have been updated for the VSMac 7.6 release. There are a couple of outstanding issues that will be fixed in an upcoming service release, but I've documented the workarounds for those.