Skip to content

Commit 50c1c05

Browse files
Adding support for vanity domain tenants in Get-PnPSiteCollectionAppCatalog and Get-PnPTenantSite (#3895)
* Adding support for vanity domain tenants * Added changelog entry * Grammar fix --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
1 parent 6d58449 commit 50c1c05

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
2121
- Added `LoopDefaultSharingLinkRole`, `DefaultShareLinkScope`, `DefaultShareLinkRole`, `LoopDefaultSharingLinkScope` and `DefaultLinkToExistingAccessReset` parameters to `Set-PnPTenant` cmdlet. [#3874](https://github.com/pnp/powershell/pull/3874)
2222
- Added `Unlock-PnPSensitivityLabelEncryptedFile` which allows the encryption to be removed from a file [#3864](https://github.com/pnp/powershell/pull/3864)
2323
- Added `Get-PnPLibraryFileVersionBatchDeleteJobStatus` and `Get-PnPSiteFileVersionBatchDeleteJobStatus` to check on the status of applying file based version expiration based on age on a library and site level [#3828](https://github.com/pnp/powershell/pull/3828)
24+
- Added support for `Get-PnPSiteCollectionAppCatalog` and `Get-PnPTenantSite` to be used with vanity domain tenants [#3895](https://github.com/pnp/powershell/pull/3895)
2425

2526
### Fixed
2627

src/Commands/Admin/GetSiteCollectionAppCatalog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected override void ExecuteCmdlet()
7575
WriteVerbose($"Validating site collection App Catalog at {appCatalogLocalModel.AbsoluteUrl}");
7676

7777
// Deleted sites throw either an exception or return null
78-
appCatalogLocalModel.AbsoluteUrl = Tenant.GetSitePropertiesById(appCatalogLocalModel.SiteID.Value, false).Url;
78+
appCatalogLocalModel.AbsoluteUrl = Tenant.GetSitePropertiesById(appCatalogLocalModel.SiteID.Value, false, Connection.TenantAdminUrl).Url;
7979
results.Add(appCatalogLocalModel);
8080
}
8181
catch (Exception e)

src/Commands/Admin/GetTenantSite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected override void ExecuteCmdlet()
4646
SiteProperties siteProperties;
4747
if(Identity.Id.HasValue)
4848
{
49-
siteProperties = Tenant.GetSitePropertiesById(Identity.Id.Value, Detailed);
49+
siteProperties = Tenant.GetSitePropertiesById(Identity.Id.Value, Detailed, Connection.TenantAdminUrl);
5050
if(siteProperties == null) return;
5151
}
5252
else

0 commit comments

Comments
 (0)