Azure / Azure/azure-cli

az functional: A newly created slot has a copy of all configuration settings from production slot

Open
#16,805 6 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Functions Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

When I create a deployment slot, it has a copy of all the configuration settings from production slot,

**Command Name**
```
az functionapp deployment slot create
--name MyFunctionApp
--resource-group MyResourceGroup
--slot staging
```

## To Reproduce:
Steps to reproduce the behavior.

- Create a function app in Azure
- Add an app setting or connection string, (no difference if it's a deployment slot settings).
- Create a new slot using:
`az functionapp deployment slot create --resource-group MyResourceGroup --name MyFunctionApp --slot staging`
or even using Azure Portal.

## Expected Behavior
I expect one of these:
- A created slot with no configuration copied from production or any other slot.
- A created slot with copied configuration settings which are not deployment slot settings in that slot.

I expect these because if I want to have a copy of configuration settings during slot creation, I could use [--configuration-source](https://docs.microsoft.com/en-us/cli/azure/functionapp/deployment/slot?view=azure-cli-latest#az_functionapp_deployment_slot_create-optional-parameters) parameter.

## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.13.0 *

Extensions:
aks-preview 0.4.61
application-insights 0.1.1
azure-devops 0.13.0

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.