Skip to content

Slot swap reset action deleted all application and connection strings #7689

Closed
@mehmetcakmaz

Description

I use "az webapp deployment slot swap" command with -action reset option. This remove all application and connection strings settings including slot settings.

To Reproduce same situation

  1. I create new web apps
  2. Add new slot (name is = test)
  3. Add sample application settings both slot (test and production)
  4. Final status in test slot application settings
    picture-1
  5. Run az webapp deployment slot swap --name xxx --resource-group yyy --slot test --action preview command
  6. Run az webapp deployment slot swap --name xxx --resource-group yyy --slot test --action reset
  7. Test slot application settings are deleted
    picture-4

Normally all settings should not be deleted. I tried the same issue Azure portal and "Switch-AzureRmWebAppSlot" everything worked as it should

Environment summary
Install Method is MSI / CLI version (2.0.43) / OS version Windows / Shell Type Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions