Hi, we are using Adaxes version 3.14.18920.0.
We have Teams Poweshell module 2.3.1 installed on the computer where adaxes service runs.
We have the certificate thumbprint from the certificte installed on the same machine, replaced with 'XXX' in the script.
The error I am receiving is,
"A parameter cannot be founf that matches parameter name 'CertificateThumbprint'. Stack trace: at <Scriptblock.,<No File>: line 9"
This is the script I am trying to run -
----------------------------
$certificateThumbprint = "XXXXXXXX" # TODO: modify me
# Connect to Microsoft Teams
$tenant = $Context.CloudServices.GetO365Tenant()
$credential = $tenant.GetCredential()
try
{
Connect-MicrosoftTeams -TenantId $tenant.TenantId -CertificateThumbprint $certificateThumbprint -applicationid $credential.AppId
Set-CsUser -Identity %firstname%.%lastname%@example.com -OnPremLineURI $NULL -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
Grant-CsOnlineVoiceRoutingPolicy -Identity %firstname%.%lastname%@example.com -PolicyName "No Restrictions"
}
finally
{
# Close the connection and release resources
Disconnect-MicrosoftTeams -Confirm:$False
}