4.22 Register Swyx applications in Azure using PowerShell scripts
You can use the PowerShell script to create or update a Microsoft Entra ID application registration for Swyx integrations. The script registers the corresponding Swyx application in Microsoft Entra ID and generates a secret client key for further configuration in the Swyx Control Center.
The script can register two Swyx applications for:
or
The file EntraID_PowerShell_Configuration.zip can be downloaded from this website:
https://service-de.enreach.com/hc/en-gb/articles/28465370751260-Entra-ID-App-Registration-for-Federated-Authentication-Swyx-Microsoft-Teams-Presence-Status-Synchronisation-and-Swyx-Direct-for-MS-Teams-with-PowerShell-for-Swyx-15ff
To register the Swyx application for federated services
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
For example: cd 'C:\Users\<user.name>\Downloads\EntraID_PowerShell_Configuration\'
get-help -full RegisterSwyxEntraIDApp.ps1
.\RegisterSwyxEntraIDApp.ps1
1) Swyx Federated Services
SUCCESS
------------------------------------
Application ID:
Tenant/Domain ID:
Client Secret:
Secret expires:
OpenID Connect Metadata Document:
------------------------------------
------------------------------------
Application ID:
Tenant/Domain ID:
Client Secret:
Secret expires:
OpenID Connect Metadata Document:
------------------------------------
How to register the Swyx app for Swyx Direct
With this registration type, the onboarding script temporarily assigns additional Microsoft Entra directory roles.
After successful deployment, remove only these temporary onboarding roles using the command provided below, see step (14).
After successful deployment, remove only these temporary onboarding roles using the command provided below, see step (14).
In step (11), after logging in, the script checks whether there are available licenses with active service plans for TEAMS1 (Microsoft Teams) and MCOEV (Teams Phone), respectively. If a required license is missing or a service plan is inactive, the script terminates the process before any changes are made. To intentionally skip the license check, run the script with the -SkipLicenseCheck parameter. Next, confirm the changes displayed.
See Microsoft Service Plan Licenses on Azure.
See Microsoft Service Plan Licenses on Azure.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
For example: cd 'C:\Users\<user.name>\Downloads\RegisterSwyxEntraIDApp'
get-help -full RegisterSwyxEntraIDApp.ps1
.\RegisterSwyxEntraIDApp.ps1
2) Swyx Teams Direct Routing
SUCCESS
------------------------------------
Application ID:
Tenant/Domain ID:
Client Secret:
Secret expires:
OpenID Connect Metadata Document:
------------------------------------
------------------------------------
Application ID:
Tenant/Domain ID:
Client Secret:
Secret expires:
OpenID Connect Metadata Document:
------------------------------------
.\RegisterSwyxEntraIDApp.ps1 -RemoveOnboardingRoles -ApplicationId '<Application ID>'