1

I'm not able to create the azure function in python which can be used to run python script on PowerApps.

I've tried it on command prompt and also on a visual studio in the app got created but I was not able to deploy it.

Is it possible to automate the execution of a Python script using Microsoft Flow? I'm using this link to create the azure function

(.env) C:\Users\PAhire2\MyFunctionProj>az functionapp create --resource-group myResourceGroup --os-type Windows --consumption-plan-location westeurope --runtime python --name NewApp --storage-account 1234store
usage error: Currently supported runtimes (--runtime) in windows function apps are: dotnet, node, java, powershell.

This is the error message I'm getting

Md Farid Uddin Kiron
  • 16,817
  • 3
  • 17
  • 43

1 Answers1

2

You get this error cause the python function only could be created on the Linux OS on Azure, so just change your os-type to Linux, it will be success.

az functionapp create --resource-group mygroup --os-type Linux --consumption-plan-location westeurope --runtime python --name pythonfunctiontest --storage-account mystorageaccount

I test with Azure Cloud Shell and it works. Hope this could help you. Also you could refer to the tutorial:Create a function app in Azure.

enter image description here

George Chen
  • 13,703
  • 2
  • 11
  • 26