-
Notifications
You must be signed in to change notification settings - Fork 388
Description
Notice
Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:
Reporting an Issue or Missing Feature
i am having same issue similar to a fixed bug #137
cmdlet i am using is Get-PnPTenantSite. we are using vanity URL for our tenant site and admin URL.
Expected behavior
No error when executing cmdlet Get-PnpTenantSite
Actual behavior
PS C:\temp\Test> $s = Get-PnPTenantSite -Identity $SiteId -Detailed -Connection $ctxt
Get-PnPTenantSite : AADSTS500011: The resource principal named https://admin-admin.domain.com was not found in the tenant named Domain.
This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 2c2d6b11-3774-4b9f-8cc1-7e0d31fe4500
Correlation ID: 4396a26b-efa1-4d7d-b609-9a25c4876f59
Timestamp: 2022-11-18 10:27:49Z
At line:1 char:6
- $s = Get-PnPTenantSite -Identity $SiteId -Detailed -Connection $ctxt
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : WriteError: (:) [Get-PnPTenantSite], MsalServiceException
- FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.GetTenantSite
Steps to reproduce behavior
Run this cmdlet
$s = Get-PnPTenantSite -Identity $SiteId -Detailed -Connection $ctxt
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable
)
PS C:\temp\Test> Get-Module -Name "PnP.PowerShell" -ListAvailable
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
Manifest 1.11.0 PnP.PowerShell {Add-PnPAdaptiveScopeProperty, Add-PnPPropertyBagValue, Add-PnPSiteClassification,
Which operating system/environment are you running PnP PowerShell on?
- [x ] Windows