-
Notifications
You must be signed in to change notification settings - Fork 388
Description
Reporting an Issue or Missing Feature
Issue: Get-PnPTenantSite/Get-PnPTenantId/Get-PnPTenant/Set-PnPTenantSite are not working as expected. The error message shows wrong tenant url (Should have beeen https://adminms.DOMAIN.com but shows https://adminms-admin.DOMAIN.com).
Expected behavior
Expected values returned (get) or values updated (set)
Actual behavior
Get-PnPTenantSite : AADSTS500011: The resource principal named https://adminms-admin.DOMAIN.com was not
found in the tenant named DOMAIN.com. 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: 13cebd1c-79a4-4e89-b88b-9b8001429700
Correlation ID: 3aae7184-b741-4382-a780-466ceb56b9a0
Timestamp: 2021-01-19 23:29:28Z
Steps to reproduce behavior
Import-Module PnP.PowerShell
Connect-PnPOnline -Url https://adminms.DOMAIN.com -Credentials $Cred
$sites=Get-PnpTenantSite
What is the version of the Cmdlet module you are running?
ModuleType Version Name
---------- ------- ----
Manifest 1.1.0 PnP.PowerShell
Which operating system/environment are you running PnP PowerShell on?
- [ x] Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify