When you configure streaming music on hold for Teams (rather than using a file-based music on hold), Microsoft requires that your streaming endpoint be secured using Azure AD authentication. In other words, if you specify –StreamingSourceAuthType AzureAd in your PowerShell command, the streaming service (the “server”) must be registered and authenticate using your Azure AD tenant credentials.
That requirement means that if you try to point Teams to a streaming endpoint such as an Icecast server that isn’t set up to do Azure AD authentication, you’ll likely run into errors. The Teams service checks that the stream comes from a trusted, authenticated source in your tenant before using it for music on hold.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.