Skip to content

Commit

Permalink
Adding support for vanity domain tenants in `Get-PnPSiteCollectionApp…
Browse files Browse the repository at this point in the history
…Catalog` and `Get-PnPTenantSite` (#3895)

* Adding support for vanity domain tenants

* Added changelog entry

* Grammar fix

---------

Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
  • Loading branch information
KoenZomers and gautamdsheth committed Apr 17, 2024
1 parent 6d58449 commit 50c1c05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Added `LoopDefaultSharingLinkRole`, `DefaultShareLinkScope`, `DefaultShareLinkRole`, `LoopDefaultSharingLinkScope` and `DefaultLinkToExistingAccessReset` parameters to `Set-PnPTenant` cmdlet. [#3874](https://github.com/pnp/powershell/pull/3874)
- Added `Unlock-PnPSensitivityLabelEncryptedFile` which allows the encryption to be removed from a file [#3864](https://github.com/pnp/powershell/pull/3864)
- 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)
- Added support for `Get-PnPSiteCollectionAppCatalog` and `Get-PnPTenantSite` to be used with vanity domain tenants [#3895](https://github.com/pnp/powershell/pull/3895)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Admin/GetSiteCollectionAppCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected override void ExecuteCmdlet()
WriteVerbose($"Validating site collection App Catalog at {appCatalogLocalModel.AbsoluteUrl}");

// Deleted sites throw either an exception or return null
appCatalogLocalModel.AbsoluteUrl = Tenant.GetSitePropertiesById(appCatalogLocalModel.SiteID.Value, false).Url;
appCatalogLocalModel.AbsoluteUrl = Tenant.GetSitePropertiesById(appCatalogLocalModel.SiteID.Value, false, Connection.TenantAdminUrl).Url;
results.Add(appCatalogLocalModel);
}
catch (Exception e)
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Admin/GetTenantSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected override void ExecuteCmdlet()
SiteProperties siteProperties;
if(Identity.Id.HasValue)
{
siteProperties = Tenant.GetSitePropertiesById(Identity.Id.Value, Detailed);
siteProperties = Tenant.GetSitePropertiesById(Identity.Id.Value, Detailed, Connection.TenantAdminUrl);
if(siteProperties == null) return;
}
else
Expand Down

0 comments on commit 50c1c05

Please sign in to comment.