Code Monkey home page Code Monkey logo

function-app-arm-templates's Introduction

page_type languages products
sample
csharp
python
java
nodejs
typescript
json
azure-functions
azure

ARM Templates for Function App Deployment

This repo contains currently available Azure Resource Manager templates for deploying Function App with recommended settings and best practices.

Create and deploy Functions app for following OS and SKU combinations:

  1. Create Function App with Premium Plan on Windows/Linux
  2. Create Function App with Dedicated Plan on Windows/Linux
  3. Create Function App with Consumption Plan on Windows
  4. Create Function App with Consumption Plan on Linux:

Create Functions app and resources for following networking scenarios:

  1. Create Function App with a Deployment Slot
  2. Create Function App with Virtual Network Integration
  3. Create Function App with Azure Storage private endpoints
  4. Create Function App with private endpoints and Azure Storage with private endpoints

Deploy Functions app code for following scenarios:

  1. Deploy Function App with ZipDeploy using Run From Package
  2. If Function App with private endpoints and Azure Storage with private endpoints:

This repo also contains wiki pages on the following:

  1. Best Practices Guide
  2. Frequently Asked Questions (FAQs)
  3. Important App Settings for Function Apps
  4. ARM Templates for Function App with different Hosting Plans

For more information on deploying ARM template, please refer: Deploy resources with ARM templates

function-app-arm-templates's People

Contributors

microsoftopensource avatar mumian avatar patelchandni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

function-app-arm-templates's Issues

Zip deploy using WEBSITE_RUN_FROM_PACKAGE=1

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Just use base information for ZipDeploy on linux, using RUN FROM PACKAGE

Any log messages given by the failure

Central Directory corrupt.
File deployed to kudu size is 0
Using SCM and oryx works

Expected/desired behavior

Skipping build due to website run from package

OS and Version?

Linux-python 3.9-Azure B1 ASP

Versions

3.9

Mention any other details that might be useful


Thanks! We'll be in touch soon.
173.zip

Deploy a function with slot sample issue due to WEBSITE_CONTENTSHARE and CI/CD. Solution is to remove WEBSITE_CONTENTSHARE from the sample

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X ] bug report -> please search issues before submitting
- [ ] feature request
- [ X ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Deploy the ARM template that creates slots: https://github.com/Azure-Samples/function-app-arm-templates/tree/main/function-app-deployment-slot
According to the documentation: https://learn.microsoft.com/en-us/azure/azure-functions/functions-app-settings#website_contentshare
"Not setting WEBSITE_CONTENTSHARE is the recommended approach for an ARM template deployment."

If a anyone use the sample on a CI/CD deployment and then they perform a swap between the slots, the staging content share will be always used to deploy new code.

Behavior:
Deploy to staging->Swap->The code is now in production, old code goes to staging->We perform another deployment running incremental mode->The slot content share is staging again, the code is deploy to this content share->Swap->Code is updated on prod but never on staging

Any log messages given by the failure

N/A

Expected/desired behavior

Deploy to staging->Swap->The code is now in production, old code goes to staging->We perform another deployment running incremental mode->The slot content share keeps as the previous value since we are not specifying it on the ARM template, the code gets deployed to staging->Swap->Code is updated on prod and current prod code goes to staging

Mention any other details that might be useful

azuredeploy.json file

remove:
{
"name": "WEBSITE_CONTENTSHARE",
"value": "[variables('slotContentShareName')]"
},
{
"name": "WEBSITE_CONTENTSHARE",
"value": "[toLower(parameters('functionAppName'))]"
},


Thanks! We'll be in touch soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.