Azure / Azure/azure-powershell

Why are there '-Clean' and '-Restart' switches for 'Publish-AzWebApp'?

Open
#28,117 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad App Services customer-reported question Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

I think this question is related to the issue #24234.

According to [Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-functions/deployment-zip-push), when we use zip deployment, `any files from an existing deployment that aren't found in the .zip file are deleted from your function app.`, and zip deployment `restarts the app`.

If so, why are there '-Clean' and '-Restart' switches for 'Publish-AzWebApp'?

### Script or Debug output

```PowerShell

```

### Environment data

```PowerShell

```

### Module versions

```PowerShell

```

### Error output

```PowerShell

```

Contributor guide

Open the contributing guide

Research direction

Start with the Publish-AzWebApp cmdlet documentation and the linked issue #24234, then compare the documented behavior of its -Clean and -Restart switches with Azure zip deployment. Done means explaining whether the switches add behavior beyond zip deployment and updating the relevant documentation or guidance if the distinction is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.