Commands › Exchange Online

Add-AvailabilityAddressSpace

Exchange Online ExchangeOnlineManagement Add-*

Create availability address space objects that are used to share free/busy data across Exchange organizations. The maximum number off Availability address spaces returned by Active Directory to Exchange is 100. We recommend using 100 or fewer address spaces in order for Availability lookups to work properly.

Quick start script

# Add-AvailabilityAddressSpace — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Add-AvailabilityAddressSpace -AccessMethod <AvailabilityAccessMethod> -ForestName <String> | Format-List

# 3. Export for evidence / drift tracking
Add-AvailabilityAddressSpace | Export-Clixml .\AvailabilityAddressSpace-$(Get-Date -Format yyyyMMdd).xml

Syntax

Add-AvailabilityAddressSpace -AccessMethod <AvailabilityAccessMethod> -ForestName <String>
 [-Confirm]
 [-Credentials <PSCredential>]
 [-DomainController <Fqdn>]
 [-ProxyUrl <Uri>]
 [-TargetAutodiscoverEpr <Uri>]
 [-TargetServiceEpr <String>]
 [-TargetTenantId <String>]
 [-UseServiceAccount <Boolean>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-AccessMethod AvailabilityAccessMethod yes The AccessMethod parameter specifies how the free/busy data is accessed. Valid values are:
-ForestName String yes The ForestName parameter specifies the SMTP domain name of the target forest that contains the users you're trying to read free/busy information from. If users are distributed among multiple SMTP domains in the...
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-Credentials PSCredential The Credentials parameter specifies the username and password that's used to access the Availability services in the target forest.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-ProxyUrl Uri This parameter is available only in on-premises Exchange.
-TargetAutodiscoverEpr Uri The TargetAutodiscoverEpr parameter specifies the Autodiscover URL of Exchange Web Services for the external organization that you're trying to read free/busy information from. For example,...
-TargetServiceEpr String This parameter is available only in the cloud-based service.
-TargetTenantId String This parameter is available only in the cloud-based service.
-UseServiceAccount Boolean This parameter is available only in on-premises Exchange.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.