Skip to content

Commit 1d4e1e1

Browse files
authored
Merge pull request #11196 from ThejaChoudary/master
Updating the 'Publish-AzWebApp' help document with Force parameter#10224.
2 parents e15e000 + 4df13de commit 1d4e1e1

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/Websites/Websites/help/Publish-AzWebApp.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Deploys an Azure Web App from a ZIP, JAR, or WAR file using zipdeploy.
1515
### FromResourceName
1616
```
1717
Publish-AzWebApp -ArchivePath <String> [-AsJob] [-ResourceGroupName] <String> [-Name] <String>
18-
[[-Slot] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
18+
[[-Slot] <String>] [-Force] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1919
```
2020

2121
### FromWebApp
2222
```
23-
Publish-AzWebApp -ArchivePath <String> [-AsJob] [-WebApp] <PSSite> [-DefaultProfile <IAzureContextContainer>]
23+
Publish-AzWebApp -ArchivePath <String> [-AsJob] [-WebApp] <PSSite> [-Force] [-DefaultProfile <IAzureContextContainer>]
2424
[<CommonParameters>]
2525
```
2626

@@ -56,6 +56,11 @@ Uploads the contents of app.zip to the web app named ContosoApp belonging to the
5656
PS C:\> $app = Get-AzWebApp -ResourceGroupName ContosoRG -Name ContosoApp
5757
PS C:\> $app | Publish-AzWebApp -ArchivePath C:\project\java_app.jar
5858
```
59+
### Example 5
60+
```powershell
61+
PS C:\> $app = Get-AzWebApp -ResourceGroupName ContosoRG -Name ContosoApp
62+
PS C:\> Publish-AzWebApp -WebApp $app -ArchivePath C:\project\app.zip -Force
63+
```
5964

6065
Uploads the contents of java_app.jar to the web app named ContosoApp belonging to the resource group ContosoRG.
6166

@@ -91,6 +96,21 @@ Accept pipeline input: False
9196
Accept wildcard characters: False
9297
```
9398
99+
### -Force
100+
Forcefully Remove Option
101+
102+
```yaml
103+
Type: System.Management.Automation.SwitchParameter
104+
Parameter Sets: (All)
105+
Aliases:
106+
107+
Required: False
108+
Position: Named
109+
Default value: None
110+
Accept pipeline input: False
111+
Accept wildcard characters: False
112+
```
113+
94114
### -DefaultProfile
95115
The credentials, account, tenant, and subscription used for communication with Azure.
96116

0 commit comments

Comments
 (0)