Reporting an Issue or Missing Feature
I get an error when I do Register-PnPHubSite with Satellite Geo.
The command is executed as follows.

The app specified in -ClientId is pre-registered in Azure AD, and the "Sites.FullControl.All" API permission is assigned to the app.

For the same satellite geo, command Get-PnPTenantSite succeeds.
For the central geo, the command Register-PnPHubSite succeeds.
Expected behavior
The Register-PnPHubSite command should succeed without error.
Actual behavior
The Register-PnPHubSite command fails with 401 Unauthorized.
Steps to reproduce behavior
- Create a multi-geo tenant and create a satellite geo within it.
- Create a communication site within the satellite tenant.
- Create Azure AD application and assign "Sites.FullControl.All" right to the app
https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal
- Run the Connect-PnPOnline and Register-PnPHubSite commands with the same options as in the screenshot at the top.
What is the version of the Cmdlet module you are running?
1.5.0 and 1.6.0
Which operating system/environment are you running PnP PowerShell on?
Reporting an Issue or Missing Feature
I get an error when I do Register-PnPHubSite with Satellite Geo.

The command is executed as follows.
The app specified in -ClientId is pre-registered in Azure AD, and the "Sites.FullControl.All" API permission is assigned to the app.

For the same satellite geo, command Get-PnPTenantSite succeeds.
For the central geo, the command Register-PnPHubSite succeeds.
Expected behavior
The Register-PnPHubSite command should succeed without error.
Actual behavior
The Register-PnPHubSite command fails with 401 Unauthorized.
Steps to reproduce behavior
https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal
What is the version of the Cmdlet module you are running?
1.5.0 and 1.6.0
Which operating system/environment are you running PnP PowerShell on?