@Jusiah Katumba Thanks for posting your query on Microsoft Q&A.
I was able to find this document on using a Bitbucket Pipelines Pipe that uses the Azure CLI to deploy a zipped code package to Azure Functions : https://bitbucket.org/microsoft/azure-functions-deploy/src/master/README.md
It has the YAML to deploy the function code to Azure using a Bitbucket pipeline:
YAML Definition:
script:
- pipe: microsoft/azure-functions-deploy:1.0.2
variables:
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
FUNCTION_APP_NAME: '<string>'
ZIP_FILE: '<string>'
This Readme also includes all the Azure CLI commands to create the required Azure resources like Service Principal, Function app etc.
Please take a look at this if you haven't already and let me know in the comments if you have further questions.
Thanks.
----------
If this answers your query, do click “Accept the answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread.
And, if you have any further query do let me know in the comments.