Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
330 stars 57 forks source link

Powershell Worker Support #197

Open JustinGrote opened 4 years ago

JustinGrote commented 4 years ago

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.

JustinGrote commented 4 years ago

Upstream issue: https://github.com/microsoft/Oryx/issues/835

KelvinTegelaar commented 4 years ago

+1 on this, would love to have a PowerShell backend Static web app. đź‘Ť

JustinGrote commented 3 years ago

@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.

https://github.com/justingrote/azureprice

Ba4bes commented 3 years ago

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!

anthonychu commented 3 years ago

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.

JustinGrote commented 3 years ago

@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.

san commented 3 years ago

+1 on this. Would love to see this feature.

JustinGrote commented 3 years ago

@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 :)

san commented 3 years ago

@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.

itpropro commented 8 months ago

Any updates on this?

itpropro commented 2 months ago

@BandaruDheeraj tagged for visibility