Powershell api.interfaces.records.teams.microsoft.com

Hey guys,

since the middle of this week, I've started to face issues with the Powershell when running Grant-Cs commands.

Commands which I currently run are following:

Grant-CsTenantDialPlan -Identity "*" -PolicyName "*"
Grant-CsVoiceRoutingPolicy -PolicyName InternationalCallsAllowed -Identity "*"
Grant-CsOnlineVoiceRoutingPolicy -PolicyName '*' -Identity "*"

Currently, the error message is following:

    + CategoryInfo          : NotSpecified: (CN=6681e43b-143...c0e001,DC=local:OCSADUserOrAppContact) [Grant-CsTenantDialPlan], AggregateException
    + FullyQualifiedErrorId : GrantPolicy,Microsoft.Rtc.Management.AD.Cmdlets.AssignOcsTenantDialPlanCmdlet
    + PSComputerName        : api.interfaces.records.teams.microsoft.com

One or more errors occurred.
    + CategoryInfo          : NotSpecified: (CN=6681e43b-143...c0e001,DC=local:OCSADUserOrAppContact) [Grant-CsVoiceRoutingPolicy], AggregateException
    + FullyQualifiedErrorId : GrantPolicy,Microsoft.Rtc.Management.Xds.GrantVoicRoutingPolicyCmdlet
    + PSComputerName        : api.interfaces.records.teams.microsoft.com

https://preview.redd.it/76kp4j8gpa071.png?width=1001&format=png&auto=webp&s=ff1d5f54b6e452d880ac59f1611b2e33dad5b6bd

The way how I'm connecting to MSteams module is following(MFA):

Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client -Name AllowBasic -Value 1
Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client -Name AllowDigest -Value 1
Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client -Name AllowUnencryptedTraffic -Value 1
Import-Module MicrosoftTeams
Connect-MicrosoftTeams

Do you guys know where the problem might be? I have the newest module installed.

Thanks in advance.