Skip to content

Commit b9d2776

Browse files
authored
Merge pull request Azure#9564 from panchagnula/sisirap-GetAzWebAppFixes
webapp: Get-AzWebApp and Set-AzWebApp was not returning some SiteConfig properties
2 parents dca2ef4 + 5acebd5 commit b9d2776

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
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+
* Fixing a bug where some SiteConfig properties were not returned by Get-AzWebApp and Set-AzWebApp
2122
* Adds a new Location parameter to Get-AzDeletedWebApp and Restore-AzDeletedWebApp
2223
* Fixes a bug with cloning web app slots using New-AzWebApp -IncludeSourceWebAppSlots
2324

src/Websites/Websites/Utilities/CmdletHelpers.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ internal static SiteConfigResource ConvertToSiteConfigResource(this SiteConfig c
431431
HandlerMappings = config.HandlerMappings,
432432
HttpLoggingEnabled = config.HttpLoggingEnabled,
433433
IpSecurityRestrictions = config.IpSecurityRestrictions,
434+
ScmIpSecurityRestrictions= config.ScmIpSecurityRestrictions,
435+
ScmIpSecurityRestrictionsUseMain = config.ScmIpSecurityRestrictionsUseMain,
436+
Http20Enabled = config.Http20Enabled,
434437
JavaContainer = config.JavaContainer,
435438
JavaContainerVersion = config.JavaContainerVersion,
436439
JavaVersion = config.JavaVersion,
@@ -457,7 +460,11 @@ internal static SiteConfigResource ConvertToSiteConfigResource(this SiteConfig c
457460
VirtualApplications = config.VirtualApplications,
458461
VnetName = config.VnetName,
459462
WebSocketsEnabled = config.WebSocketsEnabled,
460-
WindowsFxVersion = config.WindowsFxVersion
463+
WindowsFxVersion = config.WindowsFxVersion,
464+
ManagedServiceIdentityId = config.ManagedServiceIdentityId,
465+
MinTlsVersion = config.MinTlsVersion,
466+
FtpsState = config.FtpsState,
467+
ReservedInstanceCount = config.ReservedInstanceCount
461468
};
462469
}
463470

@@ -508,6 +515,13 @@ internal static SiteConfig ConvertToSiteConfig(this SiteConfigResource config)
508515
VnetName = config.VnetName,
509516
WebSocketsEnabled = config.WebSocketsEnabled,
510517
WindowsFxVersion = config.WindowsFxVersion,
518+
ReservedInstanceCount= config.ReservedInstanceCount,
519+
ManagedServiceIdentityId = config.ManagedServiceIdentityId,
520+
MinTlsVersion = config.MinTlsVersion,
521+
FtpsState = config.FtpsState,
522+
ScmIpSecurityRestrictions = config.ScmIpSecurityRestrictions,
523+
ScmIpSecurityRestrictionsUseMain = config.ScmIpSecurityRestrictionsUseMain,
524+
Http20Enabled = config.Http20Enabled
511525
};
512526
}
513527
}

0 commit comments

Comments
 (0)