Before you begin, you must have the following:
-
Azure Functions Core Tools version 3.x.
-
The Azure CLI version 2.0.76 or later.
Prerequisite check
-
In a terminal or command window, run func --version to check that the Azure Functions Core Tools are version 2.7.1846 or later.
-
Run az --version to check that the Azure CLI version is 2.0.76 or later.
-
Run az login to sign in to Azure and verify an active subscription.
Edit azure.cmd and set variables
set RESOURCE_GROUP=adointegration_test
set FUNC_APP_NAME=jsyncado
set FUNC_APP_STORAGE=jsyncado
set LOCATION=northeurope
set ADO_URL=https://<your company>.visualstudio.com/
set ADO_PROJECT=<yor project>
set ADO_PAT=<PAT for azure devops>
Run azure.cmd. This script creates a resource group and all necessary resources inside. A successful result should look like this
... many lines ...
Uploading built content /home/site/deployments/functionappartifact.squashfs for linux consumption function app...
Resetting all workers for jsyncado.azurewebsites.net
Deployment successful.
Remote build succeeded!
Syncing triggers...
Functions in jsyncado:
Receiver - [httpTrigger]
Invoke url: https://jsyncado.azurewebsites.net/api/receiver?code=GuXoMRhXwKNbVTeaXJavRbCMqwt8S2REq6drz5fGMHWtGcWiGvlXuQ==
logger - [httpTrigger]
Invoke url: https://jsyncado.azurewebsites.net/api/logger?code=PXDjxdCnciZ05FiRT7HuEXiREDg8yGoMgUPEyKz3ziYGDfFG8UmKfQ==
sender_ado - [httpTrigger]
Invoke url: https://jsyncado.azurewebsites.net/api/sender_ado?code=/bw6jfzz2W4XRl5ZHP7ff3CzFqfmt5ywnLwjZVztzgflqKpb1NZWig==
Save invoke url for Receiver and sender_ado.
Open Jira project settings and set webhook to: "&user_id=1&profile_id=3"
Send sender_ado url to me to configure our services.
Do a conference to check that all works fine!