Category : azure-functions

I’m trying to run my azure function application as a docker image and when I do it throws me a System.PlatformNotSupportedException in Microsoft.Data.SqlClient.dll: ‘Strings.PlatformNotSupported_DataSqlClient’ exception any time I try to call my datalayer (no matter if its EF Core or Dapper that I use). I can run the application just fine when setting my API ..

Read more

I am developing an azure app function that will be using a custom image with docker. This is my DockerFile: FROM mcr.microsoft.com/azure-functions/python:3.0-python3.7 ENV AzureWebJobsScriptRoot=/home/site/wwwroot AzureFunctionsJobHost__Logging__Console__IsEnabled=true # Adding "apt-get install make" here RUN apt-get update && apt-get install make && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/* RUN pip install numpy RUN pip install ..

Read more

I am trying to build a Function App running on .net5 in a Docker container. As of now, I am simply trying to build the project. Here is the dockerfile I have so far: FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src COPY "src/" "source/" RUN dotnet restore "source/StorageManager/StorageManager.csproj" COPY . ..

Read more

I’m trying to install an apt source on the Microsoft azure function docker, here is my Dockerfile FROM mcr.microsoft.com/azure-functions/python:3.0-python3.9 RUN echo ‘deb [trusted=yes] http://deb.debian.org/debian testing main’ > /etc/apt/sources.list.d/testing.list RUN apt update -y This fails in the apt update -y step with the following error WARNING: apt does not have a stable CLI interface. Use with ..

Read more

My docker .env file (environment definition file) has the following environment variable to accommodate incoming Web API calls from an angular app: CORS_ALLOWED_ORIGINS='["http://localhost:4200"]’ The way that this Azure Function App v3 defined in the docker compose file is per the following snippet: myhttpfunction: image: ${DOCKER_REGISTRY-}httptriggeredfunc container_name: azurefunctions build: context: . dockerfile: app/HttpFunctions/Dockerfile environment: – CORS_ALLOWED_ORIGINS ..

Read more