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

0

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.