Public/ps1/Configuration/General/Get-ApprxrUrlHost.ps1
|
<# .SYNOPSIS Get the tenant url .DESCRIPTION Returns the url host .EXAMPLE An example .NOTES General notes #># function Get-ApprxrUrlHost { $tenant = (Get-ApprxrBaseConfiguration).tenant if ($tenant -eq $null){ throw "Tenant not specified." } if (-not $tenant.Contains("-connectapi")) { $tenant = $tenant -replace ".apprx.eu", "-connectapi.apprx.eu" } "https://$tenant/" } |