Skip to content

Azure Function Apps

Kenneth C. Arnold edited this page May 8, 2025 · 3 revisions

How it works

  • The GitHub Action .github/workflows/backend-deploy.yml orchestrates 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_PACKAGE in the JSON that it gives.
    • Despite the .zip extension, it's a squashfs:
      • unsquashfs -ll scm-latest-textfocals.zip to list (pipe to less because 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

2024-10-28

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....

Clone this wiki locally