-
Notifications
You must be signed in to change notification settings - Fork 0
Azure Function Apps
Kenneth C. Arnold edited this page May 8, 2025
·
3 revisions
- The GitHub Action
.github/workflows/backend-deploy.ymlorchestrates a process that creates a Squashfs-format archive of the code and all dependencies.- We can download that archive by looking in https://textfocals.scm.azurewebsites.net/api/settings (using the devops login) and retrieving the URL specified by
SCM_RUN_FROM_PACKAGEin the JSON that it gives. - Despite the
.zipextension, it's a squashfs:-
unsquashfs -ll scm-latest-textfocals.zipto list (pipe tolessbecause it's long) - retrieve a single file using, e.g.,
sqfscat scm-latest-textfocals.zip squashfs-root/.python_packages/lib/site-packages/PyJWT-2.9.0.dist-info/WHEEL
-
- We can download that archive by looking in https://textfocals.scm.azurewebsites.net/api/settings (using the devops login) and retrieving the URL specified by
-
Created an Azure Function app in devops@textfocals.com tenant.
-
Needed to do it in
Canada Centralregion; US East gave errors like this -
Deployed a test function
We might want to use the Azure OpenAI endpoints instead, but caution:
To detect and mitigate harmful use of the Azure OpenAI Service, Microsoft logs the content you send to the Completions and image generations APIs as well as the content it sends back. If content is flagged by the service's filters, it may be reviewed by a Microsoft full-time employee.
Make sure this is ok with our users and IRB....