From 555cb85789c488691023481551d188219ca3c65e Mon Sep 17 00:00:00 2001 From: Kota Sudhakar Reddy <60102891+Kotasudhakarreddy@users.noreply.github.com> Date: Fri, 25 Feb 2022 21:20:01 +0530 Subject: [PATCH 1/5] Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption --- src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs index 6d4edf218b75..18ebabf0637f 100644 --- a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs +++ b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs @@ -169,6 +169,7 @@ private void GetBySubscription() { foreach(var item in result) { + WebsitesClient.GetWebAppConfiguration(rg, item.Name, null, item); list.Add(new PSSite(item)); } } From 52d96e8c8cd6481c2fa300051f2115fe2f788840 Mon Sep 17 00:00:00 2001 From: Kota Sudhakar Reddy <60102891+Kotasudhakarreddy@users.noreply.github.com> Date: Tue, 1 Mar 2022 14:34:07 +0530 Subject: [PATCH 2/5] Revert "Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption" This reverts commit 96a4d287408760f0838fe13b92015d5411ceaa7f. --- src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs index 18ebabf0637f..6d4edf218b75 100644 --- a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs +++ b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs @@ -169,7 +169,6 @@ private void GetBySubscription() { foreach(var item in result) { - WebsitesClient.GetWebAppConfiguration(rg, item.Name, null, item); list.Add(new PSSite(item)); } } From aeff07431452cece2031aeb91f436e715cc6c4ce Mon Sep 17 00:00:00 2001 From: Kota Sudhakar Reddy <60102891+Kotasudhakarreddy@users.noreply.github.com> Date: Fri, 25 Feb 2022 21:20:01 +0530 Subject: [PATCH 3/5] Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption --- src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs index 6d4edf218b75..18ebabf0637f 100644 --- a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs +++ b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs @@ -169,6 +169,7 @@ private void GetBySubscription() { foreach(var item in result) { + WebsitesClient.GetWebAppConfiguration(rg, item.Name, null, item); list.Add(new PSSite(item)); } } From d92ee042b1fc7da7eb0dedd2ae141243a2ca29a2 Mon Sep 17 00:00:00 2001 From: Kota Sudhakar Reddy <60102891+Kotasudhakarreddy@users.noreply.github.com> Date: Tue, 1 Mar 2022 14:34:07 +0530 Subject: [PATCH 4/5] Revert "Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption" This reverts commit 96a4d287408760f0838fe13b92015d5411ceaa7f. --- src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs index 18ebabf0637f..6d4edf218b75 100644 --- a/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs +++ b/src/Websites/Websites/Cmdlets/WebApps/GetAzureWebApp.cs @@ -169,7 +169,6 @@ private void GetBySubscription() { foreach(var item in result) { - WebsitesClient.GetWebAppConfiguration(rg, item.Name, null, item); list.Add(new PSSite(item)); } } From 72e6ce4924a71e47b5a2b988fa3693b4130b3aa1 Mon Sep 17 00:00:00 2001 From: Kota Sudhakar Reddy <60102891+Kotasudhakarreddy@users.noreply.github.com> Date: Tue, 10 May 2022 16:55:44 +0530 Subject: [PATCH 5/5] [AppServices]: Fix #18042 : Updated `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `VirtualNetworkSubnetId` property --- src/Websites/Websites/ChangeLog.md | 2 +- src/Websites/Websites/Models.WebApp/PSSite.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Websites/Websites/ChangeLog.md b/src/Websites/Websites/ChangeLog.md index 364e01f7d356..f3b2b1aad19a 100644 --- a/src/Websites/Websites/ChangeLog.md +++ b/src/Websites/Websites/ChangeLog.md @@ -18,7 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release - +* Updated `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `VirtualNetworkSubnetId` property [#18042] ## Version 2.11.1 * Updated 'New-AzWebAppContainerPSSession' with CmdletDeprecation Attribute [#16646] * Updated `Restore-AzDeletedWebApp` to fix issue that prevents the cmdlet from working on hosts with a locale is anything different from `en-US` diff --git a/src/Websites/Websites/Models.WebApp/PSSite.cs b/src/Websites/Websites/Models.WebApp/PSSite.cs index 6a83e3223654..f0adebb68691 100644 --- a/src/Websites/Websites/Models.WebApp/PSSite.cs +++ b/src/Websites/Websites/Models.WebApp/PSSite.cs @@ -63,7 +63,8 @@ public PSSite(Site other) slotSwapStatus: other.SlotSwapStatus, httpsOnly: other.HttpsOnly, identity: other.Identity, - customDomainVerificationId: other.CustomDomainVerificationId + customDomainVerificationId: other.CustomDomainVerificationId, + virtualNetworkSubnetId: other.VirtualNetworkSubnetId ) { PropertyInfo AzureStoragePathProp = other.GetType().GetProperty("AzureStoragePath");