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:
- Created 4 years ago
- Reactions:5
- Comments:12 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
👍 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.