Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Azure Functions #131

Closed
tombuildsstuff opened this issue Jun 26, 2017 · 11 comments
Closed

Feature Request: Azure Functions #131

tombuildsstuff opened this issue Jun 26, 2017 · 11 comments

Comments

@tombuildsstuff
Copy link
Contributor

Requested by @gondar

Looking into this - it appears these can live either within, or outside of an App Service Plan. As such I believe this functionality is blocked behind #1?

I've opened a Github issue on the Azure Rest API Specs repository asking for the Swagger to be added, so that we can generate the Go SDK / add this functionality.

@gondar
Copy link

gondar commented Jun 26, 2017

👍

@nbering
Copy link

nbering commented Jun 26, 2017

This is a pretty qualitative observation, but I've noted from early on that Azure Functions appears to be implemented in a very glued-on-after sort of way.

In the early releases, even the portal interface didn't look the same as the rest of the services. I suspect there's a lot of pieces sort of slapped together under the hood, so I don't expect this one will be easy to implement or use.

Just my opinion, no hard evidence to cite. There's a few things they've added in the last couple years though that feel like they were tacked onto multiple other services and don't stand very well on their own.

@tombuildsstuff
Copy link
Contributor Author

@nbering if memory serves they're part of Kudu - but they should still be exposed as an ARM API given the functionality in the portal :)

@mjgpy3
Copy link
Contributor

mjgpy3 commented Jul 3, 2017

Can the non-app-service functions be implemented separately? Would they likely be separate resources or the same from a terraform perspective?

@tombuildsstuff
Copy link
Contributor Author

👋 @mjgpy3

Can the non-app-service functions be implemented separately?

I've updated the issue on the Azure Rest API Specs repository to request support for both App Service Functions and non-App Service Functions :)

Would they likely be separate resources or the same from a terraform perspective?

It depends how the API's represented - based on my experience I'd guess they're separate API Endpoints - and thus would make sense as separate resources. However we're not going to know that for sure until the Swagger/Schema is published - which is requested in the issue above.

Either way I'll be sure to post an update to this once the Swagger's published :)

Thanks!

@benc-uk
Copy link
Contributor

benc-uk commented Sep 1, 2017

Function apps are created in ARM just like regular web apps, with the kind set to functionapp, that's the only real difference.

They require five extra app settings (under siteConfig.appSettings in ARM) configured in the app, some of which point to a storage account (which Function Apps require to operate) these settings are AzureWebJobsDashboard, AzureWebJobsStorage, WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, WEBSITE_CONTENTSHARE and FUNCTIONS_EXTENSION_VERSION

Functions can be deployed into a regular App Service plan or into a special consumption based one, either way the App Service Plan resource still requires creating. Consumption plans are special they use a different SKU as follows:

"name": "Y1",
"tier": "Dynamic",
"capacity": 0

Creating Function Apps with ARM is trivially easy, I have an example on my GitHub: https://github.com/benc-uk/azure-arm/tree/master/paas-other/function-app-withcode

Hope that helps, I'm very familiar with both ARM and Functions/App Services so I'm happy to help here

@anoff
Copy link

anoff commented Oct 20, 2017

hey @tombuildsstuff is the info from Ben helpful in pushing this feature forward? I am pretty new to TF so I don't know if ARM syntax helps at all..

@tombuildsstuff
Copy link
Contributor Author

👋 hey everybody!

Support for creating Function Apps has been added in #647 which will ship as part of v1.0.1 of the Azure Provider (which should be released tomorrow) :)

Thanks!

@dcherniv
Copy link

To resurrect this issue.
Is there an easy way to add site_config section to function_apps, in the same manner as it is done for azurerm_app_service?

@tombuildsstuff
Copy link
Contributor Author

@dcherniv this has been initially added in #695 - would you mind opening a separate issue if there's other fields you require?

Thanks!

@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants