0

I have the following problem. I want to write a Azure Function but need to code in PowerShell. I found several sites online stating, that I can select "experimental" languages when I create a new function. But I can't activate / deactivate this because it doesn't show me the necessary button. So I did some more research, and learnt that I have to use the v1 environment instead of v2, so I changed it. But still I can't change the language and can only code in C#.

The guide to create a new function even tells me, that I can use PowerShell when I create a custom function (see screenshot) but after clicking on the advised link there is no option for that.

Guide when creating the function Guide when creating the function

Options to create a function Options to create a function

Anyone who has the same problem or knows the solution to this??

I found this link beforehand: Where is the option for PowerShell script in Azure Functions But sadly I am missing the upper right button to enable the languages!

Thank you in advance!

3
  • Possible duplicate of Where is the option for PowerShell script in Azure Functions Commented Oct 4, 2018 at 9:17
  • I found this site before but it is no duplicate! The problem is that I am missing the enable button in the upper right corner! Commented Oct 4, 2018 at 9:21
  • Removed the close vote Commented Oct 4, 2018 at 9:42

1 Answer 1

1

For your issue, click create your own custom function,then enable Experimental Language Support, refer to the screenshot.

enter image description here enter image description here

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

5 Comments

Thanks for the quick response. I clicked on "create your own custom function" but I don't get the enable button... That is my problem. I don't know whether I made something wrong when creating the function or anything...
@ChrisB. Could you provide the screenshot of your Application settings? Also, did you change other settings of the function app?
@ChrisB. Try to remove FUNCTIONS_WORKER_RUNTIME = dotnet and restart the app.
In application settings change runtime Version to version 1, this will give you the option to use Powershell. Version 2 doesn't seem to give an alternative option to .net or Javascript.