From 004380d788e2272c2b8e115fc4d684301162cd37 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 28 May 2025 07:14:51 +0100 Subject: [PATCH 1/2] fix for bug #4943 --- src/Commands/Admin/UnregisterHubSite.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Admin/UnregisterHubSite.cs b/src/Commands/Admin/UnregisterHubSite.cs index ad32a8f4d..efa5f1c5a 100644 --- a/src/Commands/Admin/UnregisterHubSite.cs +++ b/src/Commands/Admin/UnregisterHubSite.cs @@ -26,7 +26,7 @@ protected override void ExecuteCmdlet() } else { - props = hubSitesProperties.Single(h => h.SiteUrl.Equals(Site.Url, StringComparison.OrdinalIgnoreCase)); + props = hubSitesProperties.Single(h => !string.IsNullOrEmpty(h.SiteUrl) && h.SiteUrl.Equals(Site.Url, StringComparison.OrdinalIgnoreCase)); } Tenant.UnregisterHubSiteById(props.ID); AdminContext.ExecuteQueryRetry(); From b4fed7db6079aa22051f5630e280a19b81dfb6d6 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Sun, 27 Jul 2025 17:22:55 +0100 Subject: [PATCH 2/2] minor typo fix in the example --- documentation/Set-PnPManagedAppId.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/Set-PnPManagedAppId.md b/documentation/Set-PnPManagedAppId.md index 3248cd38a..221fdbf8a 100644 --- a/documentation/Set-PnPManagedAppId.md +++ b/documentation/Set-PnPManagedAppId.md @@ -28,7 +28,7 @@ If you add a Credential with a name of "https://yourtenant.sharepoint.com" it wi ### EXAMPLE 1 ```powershell -Set-PnPManagedAppId -Name "https://tenant.sharepoint.com" -AppId d96c0a07-770d-46f4-bb38-a54084254bf7 +Set-PnPManagedAppId -Url "https://tenant.sharepoint.com" -AppId d96c0a07-770d-46f4-bb38-a54084254bf7 ``` This will add an entry for the specified App Id to be use when connecting with Connect-PnPOnline to the URL specified.