I have a .Net project created in Visual Studio for Azure function App. The function app should be deployed into azure resource group.
Manually I can deploy it with the following commands.
To build:
dotnet publish -c Release
To deploy:
az login
az account set --subscription <id>
az functionapp deployment source config-zip -g <resourceGroup> -n <functionName> --src publish.zip
I want to automate this process through Azure DevOps, as when I push this code (vs project) into azure repository, I want to build this automatically and deploy through CI/CD.
I have been searching this, but was unable to find any helpful resource.
Can someone provide me step by step guide on this with providing examples to create .yml
files if required??