question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

function app: az functionapp create should support slots creation

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug Cannot create slot for Function app. Following error is returned. “Function App app settings are not expected to be empty. Please try again with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING as a storage account connection string” To Reproduce Just execute this command az webapp deployment slot create --name <function_app_name>–resource-group deletete --slot <slot_name> Expected behavior Slot should be created successfully for function app.

Environment summary Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
panchagnulacommented, Apr 23, 2019

@Chedberg84 az webapp should not be used for functionapp - the az functionapp * commands should be used for functionapp & slots creation for functionapp is not currently supported.

2reactions
Chedberg84commented, Apr 23, 2019

👍 I am also experiencing this issue.

I am using an Azure Function runtime version ~2. Following the Terraform example here: https://vgaltes.com/post/deploying-azure-functions-using-slots/

I was able to confirm I see the same issue as stated by @exc3eed above when running the az webapp deployment slot create command. Adding the storage account connection string doesn’t seem to change the exception thrown:

Failure sending request: StatusCode=400 – Original Error: Code=“BadRequest” Message="Function App app settings are not expected to be empty. Please try again with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING as a storage account connection string.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az functionapp | Microsoft Learn
Create a function app. The function app's name must be able to produce a unique FQDN as AppName.azurewebsites.net. Azure CLI
Read more >
Toggle Deployment Slots on an Azure Function App Using CLI
In this lab, we use Azure CLI to create multiple slots in an Azure Function App Service, then deploy two different versions of...
Read more >
Deploying Azure Functions using slots - VGALTES blog
So, let's take a look on how can we use them in Function apps. Creating a deployment slot. Deployment slots are not available...
Read more >
Deployment slots in Azure FunctionApp - Stack Overflow
When you create a staging slot, you now have 2 instances of your app running. One is your staging slot (where you can...
Read more >
azurerm_function_app_slot | Resources | hashicorp/azurerm
Manages a Function App deployment Slot. ... Example Usage (with App Service Plan) ... Function App Slot. Changing this forces a new resource...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found