Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing Microsoft.Web/sites Deployment Clears All Deployment Center Deployments, Effectively Resetting the AppService #2042

Closed
Mike-E-angelo opened this issue Feb 9, 2024 · 3 comments

Comments

@Mike-E-angelo
Copy link

Bicep version

Bicep CLI version 0.25.3 (862708594a)

Describe the bug
I initially opened a discussion here: Azure/bicep#13172

But did not get much assistance, so opening a bug here to track. When redeploying a Bicep template deployment involving a Microsoft.Web/sites section, it appears to clear all Deployment Center deployments, effectively resetting the site to default content.

Expected: when redeploying via Bicep template, previous Deployment Center content remains intact.

To Reproduce

  1. Deploy template with Microsoft.Web/sites configuration
  2. Deploy AppService via Azure DevOps content
  3. Repeat step 1
  4. Observe AppService deployed in step 2 has been erased and reset to standard AppService content

Additional context
Thank you for all your effort out there. Outside of this one issue everything else works exactly as expected/desired. 🙏

@Mike-E-angelo
Copy link
Author

The interesting thing that I just encountered here is that this does not seem to apply to slots. 🤔 I did a deployment just now that deployed to both sites and slots and only the sites was cleared.

@Mike-E-angelo
Copy link
Author

I am surprised this hasn't gotten more activity. Is it truly expected behavior that each deployment destroys a website's content? 🤔 This seems a bit disruptive and counter-intuitive, especially if the deployment is part of CD/CI.

@Mike-E-angelo
Copy link
Author

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

No branches or pull requests

2 participants