Skip to content

Azure Container Apps

A simple method to launch a specific container with low resource usage. The “Consumption” workload is the simplest and what I am trying out.

Notes

  • Fileshare mounts
    • You must end a path in a / like /data/
    • Use mount option nobrl for the volume when configured in the Container Apps window
  • When scale is 0 the container can be “off” and free
  • [[Azure App registration|App registrations]] are URL specific, if you make a custom DNS name you need to go to “App registrations > All applications > (Your registration) > Authentication > Web redirect URI” and then add the custom domain name that is included in your error. Example: https://obsidian.dev0.sh/.auth/login/aad/callback

Volumes

  • Ephemeral volumes are only created under “Container apps > (your app) > Application > Container > Container image > (Select your container and then edit) > Volume mounts”
    • They are added in another menu at “Container apps > (your app) > Application > Containers > Edit and deploy > Volumes
  • Persistent Azure file volumes must first be created under “Container app environments > (your env) > Settings > Azure Files”
    1. Create storage account: “obsidianfiles”
      1. Public access
      2. After loading the resource click “Storage browser > File share” and add “obsdian-files”
    2. In environment add File share
      1. Name: obsidian-files
      2. Storage account name: copy from storage account > access keys page
      3. Storage account key: copy from storage account > access keys page
      4. file share: obsidian-files (You made this earlier)
    3. Then add to the container with the first 2 bullets

Issues

I am getting authentication required failures when pulling from [[GHCR]]

Pricing (.25c/.5GB)

Active Usage

2628000 * (.000024/4) + 2628000 * (.000003/2) $19.71

Idle Usage

2628000 * (.000003/4) + 2628000 * (.000003/2) $5.913