Using Visual Studio 2019, I created a C#, .NET Core Azure Function.
I like to do a zip deployment the way that it is explained here:
https://docs.microsoft.com/en-us/azure/azure-functions/deployment-zip-push
What is the most automated option to use Visual Studio 2019 to create the zip file for the zip deployment?
Navigate to the root folder of your Functionapp where your functionApp.csproj
exists and run the below command
dotnet build /p:DeployOnBuild=true /p:DeployTarget=Package;CreatePackageOnPublish=true
This will publish the folders and files which are ready to be zipped in the bin/Publish
folder. You can now use the Compress-Archive
powershell cmdlet to zip the folder or any other way which you prefer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With