Open JustinGrote opened 4 years ago
Upstream issue: https://github.com/microsoft/Oryx/issues/835
+1 on this, would love to have a PowerShell backend Static web app. đź‘Ť
@anthonychu 3 month follow-up, is there a major blocker to just enabling the powershell worker like the other supported ones? C#, Python, Node, etc. are all supported and they are workers just like powershell, not sure what the implementation blocker would be.
EDIT: Per Functions Live, you want to see broader interest. @Ba4bes would defintely be on that list. The argument is that a Powershell functions backend can be used to return typical json objects and the rendering still happens in the frontend.
I built an Azure Spot Price finder in blazor and it would have been far, far easier to do the functions backend in powershell, like 3 or 4 lines vs hundreds of lines of classes and boilerplate.
Agree this would be great functionality. Next to the use case of Azure management through a custom portal, it can also help IT Pro's (who are often used to PowerShell) to ease their way into this technology!
Just to set expectations, we don’t plan on enabling this soon for Static Web Apps functions. We need to see more demand for it in the context of Static Web Apps, and we currently don’t support managed identity which makes PowerShell less useful. We’ll reevaluate later in the year.
We are looking at ways to allow you to make existing function apps work better with Static Web Apps. Hopefully this can be used to run PowerShell functions.
@anthonychu this is reasonable, thank you for at least making a clarifying statement.
I think a reasonable workaround is to allow tie-in to existing function apps, currently I'm doing proxies to my powershell functions. so a cleaner approach would be ideal. I'd be OK with closing this issue once a reasonable workaround to existing function apps exists.
+1 on this. Would love to see this feature.
@san it is possible in the GA version to "bring your own" azure functions app to a static website. This is only supported in Standard so you must pay at least $9/mo for this privilege.
https://docs.microsoft.com/en-us/azure/static-web-apps/functions-bring-your-own
Would be nice to have it in the free version so leaving this issue open for that as a request :)
@JustinGrote thanks for the quick response. I am aware of "bring your own function" option. It's just very convenient to have both the function and the app code all in one repo. So, this would definitely be a nice to have.
Any updates on this?
@BandaruDheeraj tagged for visibility
Since I didn't see an issue on it, are there plans to support the Powershell Azure Functions Worker as an API backend? It doesn't require compilation, just deploy from zip, and it's supported in GA.
This would go a long way to helping users very rapidly develop functional APIs since Powershell has a lot less boilerplate than .NET and I'm really enjoying the SWAG model.