Commands › Microsoft Teams

Set-CsOnlineVoiceApplicationInstance

Microsoft Teams MicrosoftTeams Set-*

The cmdlet modifies an application instance in Microsoft Entra ID.

Quick start script

# Set-CsOnlineVoiceApplicationInstance — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsOnlineVoiceApplicationInstance
$before | Format-List

# 3. Make the change (dry run first)
Set-CsOnlineVoiceApplicationInstance  -WhatIf
Set-CsOnlineVoiceApplicationInstance

# 4. Verify and diff
$after = Get-CsOnlineVoiceApplicationInstance
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-CsOnlineVoiceApplicationInstance [[-Identity] <String>]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Force]
 [-TelephoneNumber <String>]
 [-Tenant <Guid>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-DomainController Object This parameter is reserved for internal Microsoft use.
-Force SwitchParameter The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for...
-Identity Object The user principal name (UPN) of the resource account in Microsoft Entra ID.
-TelephoneNumber Object The phone number to be assigned to the resource account.
-Tenant Object Globally unique identifier (GUID) of the tenant account whose external user communication policy are being created. For example:
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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