I am trying to create a PowerShell Script inside a Function App that checks if a Docker Container is running on an Azure VM. So far I have managed to check wether the VM is running with the following script: $provisioningState = (Get-AzVM -resourcegroupname $rsgName -name $vmName -Status).Statuses.Code $condition = ($provisioningState -eq "PowerState/running") However, I ..
For security reasons we don’t want to use the default azure functions img, as that one and all .net core based imgs are based default on Debian. Alpine is from a security point of view much better. Debian has alot of vulnerabilities, where alpine has none. More info on that subject here: https://ignas.me/tech/docker-image-vulnerabilities-in-net-core/ Anyhow, v2 ..
I am trying to run a .Net Core based Azure Function inside a Docker container on a M1 Macbook without success so far. Originally I used the Azure Function Core Tools CLI to create the function with the following command: func init LocalFunctionsProject –worker-runtime dotnet –docker which created the following Dockerfile. FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS installer-env ..
I am trying to migrate several of our dotnet based function-apps (v3) to docker containers. For this we use images from mcr.microsoft.com/azure-functions/dotnet as a base When testing locally using docker run, I often have the problem a http call to the container returns error Function host is not running combined with the following Docker CLI ..
I have: 1) successfully pushed a selenium/standalone-chrome Docker image to Azure (last line of Dockerfile is CMD ["python3", "./main.py"] that executes the main.py. 2) Pushed this to Azure through the CLI. 3) Run the image in the created container. Problem: While the container is running, it executes the python script over and over. I want ..
I have an elastic premium azure function with a custom Linux container. My docker container locally correctly works even with the production storage connection string. When I deploy the docker container I get the error: No job functions found. Try making your job classes and methods public. If you’re using binding extensions (e.g. Azure Storage, ..
I have deployed a http trigger function in Azure Kubernetes Service. I need some files that has to be kept on application path. How to add those files while creating the docker image.. steps I have followed created a http trigger function on local created docker image of that function pushed the docker image in ..
I am adding Apache Tika for extracting text out of documents and images (with TikaOcr) to an already existing service in the Azure Functions based on top of AppService. Now, Apache Tika requires tesseract to be installed in the machine locally. To overcome that, I used apt-get to set up (by ssh-ing) into the server ..
I would like to know why its taking so long to deploy a container image using the official Azure Function GitHub Action when its basically just downloading the image from the registry. The deployment takes twice as long as my build. This is what my GitHub workflow looks like. I am just building the Spring ..
I’ve an Azure function V3 with queue trigger written in .net core 3.1. My function is containerized and goes straight to ACR. Inside of the function I am doing some heavy work (uploading/downloading file from Azure blob and doing some computations). Now the issue is, in case of huge computations my function sometimes run out ..