Azure / Azure/azure-functions-core-tools

Feature suggestion: auto-generate ARM template

Open
#1,429 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

I think it would be really helpful if `func init` could optionally create an ARM template, just like it can create a `Dockerfile` with the `--docker` switch.

A good starting point would be to emit an ARM template (similar to [this one](https://github.com/Azure/azure-quickstart-templates/blob/master/101-function-app-create-dynamic/azuredeploy.json
)) that creates the following resources:
- Consumption App Service Plan
- Function App
- correct worker runtime set up (FUNCTIONS_WORKER_RUNTIME)
- Managed Identity enabled
- Storage Account
- App Insights

It should also create:
- A parameters file (supporting overriding the defaults in the ARM template)
- Sample deployment scripts with Azure PowerShell & Azure CLI

Would be a great way to get up and running even faster with a new Function App & the core tools.

Contributor guide

Open the contributing guide

Research direction

Start with the `func init` entry point and its existing `--docker` generation path. Compare the linked Azure quickstart ARM template with the requested Consumption plan, Function App settings, managed identity, storage, and App Insights resources. Done means generating the ARM template, parameters file, and Azure PowerShell and CLI deployment scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cli, cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.