follow steps here to deploy this RI.
add CICD to Drone Status using Azure Pipelines with YAML and Azure Functions Slots.
- create Azure DevOps account
- add Azure subscription as service connection
- assign application for service connection to role, so it is allow to create new azure resources
- create a Github or Azure Repos repository
#export the following environment variables export SERVICECONNECTION=<serviceconnectionname> export LOCATION=<location> export RESOURCEGROUP=<resourcegroup> export APPNAME=<appName> # less or equal than 8 chars export SLOTNAME=<slotName> sed -i "s#ServiceConnectionName: '<serviceconnection>'#ServiceConnectionName: '$SERVICECONNECTION'#g" azure-pipelines.yml && \ sed -i "s#Location: '<location>'#Location: '$LOCATION'#g" azure-pipelines.yml && \ sed -i "s#ResourceGroup: '<resourcegroup>'#ResourceGroup: '$RESOURCEGROUP'#g" azure-pipelines.yml && \ sed -i "s#AppName: '<appName>'#AppName: '$APPNAME'#g" azure-pipelines.yml && \ sed -i "s#SlotName: '<slotName>'#SlotName: '$SLOTNAME'#g" azure-pipelines.yml # clone and add remote git clone <repo> && \ git remote add <remotename> <remoteurl> # this remote url corresponds to the prerequisite step 4th# push changes to azure repos or github git push <remotename> masterfollow instructions below to configure your first Azure Pipeline https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-yaml?view=vsts#get-your-first-build# deploy a new version of your azure function app by pushing changes into staging git checkout -b staging && \ git push <remotename> staging Note: also feature branches are going through the CI pipeline.
# follow CICD from Azure Pipelines open https://dev.azure.com/<yourorganization>/<project>/_build