Skip to content

Instantly share code, notes, and snippets.

View solita-tonimiettinen's full-sized avatar

Toni Miettinen solita-tonimiettinen

  • Solita Oy
  • Tampere
  • 03:51 (UTC +02:00)
View GitHub Profile
@solita-tonimiettinen
solita-tonimiettinen / deploy-zip.sh
Last active May 7, 2025 07:08
Deploy function app to a Function with only private access to function endpoints
#!/bin/bash
# This script basically does what Azure/functions-action@v1 github action does
# when it detects a flex consumption function app.
# Create a zip package of the app (dotnet publish --configuration Release --output staging, and zip folder contents)
# You must be logged in with az login, and set $ARM_SUBSCRIPTION_ID variable
# Agent must have az cli, curl, jq, xmllint installed (GH agents have all but xmllint)
# param 1: resource group name