Skip to content

Commit 457d83b

Browse files
VpOfEngineeringazfuncghvidai-msft
authored
Increasing timeout for PublishAzureWebApp cmdlet (#21822)
* Increasing timeout for PublishAzureWebApp cmdlet * Adding changelog ref --------- Co-authored-by: azfuncgh <[email protected]> Co-authored-by: Vincent Dai <[email protected]>
1 parent 676e576 commit 457d83b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Websites/Websites/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Increased timeout for Publish-AzWebApp command
2122

2223
## Version 3.0.0
2324
* Removed `New-AzWebAppContainerPSSession` and `Enter-AzWebAppContainerPSSession` cmdlets

src/Websites/Websites/Cmdlets/WebApps/PublishAzureWebApp.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
3737
[Cmdlet("Publish", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "WebApp", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSet2Name), OutputType(typeof(PSSite))]
3838
public class PublishAzureWebAppCmdlet : WebAppOptionalSlotBaseCmdlet
3939
{
40-
// Poll status for a maximum of 20 minutes (1200 seconds / 2 seconds per status check)
41-
private const int NumStatusChecks = 600;
40+
// Poll status for a maximum of 35 minutes (2100 seconds / 2 seconds per status check)
41+
private const int NumStatusChecks = 1050;
4242

4343
[Parameter(Mandatory = true, HelpMessage = "The path of the archive file. ZIP, WAR, and JAR are supported.")]
4444
[ValidateNotNullOrEmpty]

0 commit comments

Comments
 (0)