Home

Teams Real-Time Media Bot

%3CLINGO-SUB%20id%3D%22lingo-sub-848133%22%20slang%3D%22en-US%22%3ETeams%20Real-Time%20Media%20Bot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-848133%22%20slang%3D%22en-US%22%3E%3CP%3EHas%20anyone%20here%20experimented%20with%20this%20bot%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmicrosoft-graph-comms-samples%2Ftree%2Fmaster%2FSamples%2FV1.0Samples%2FLocalMediaSamples%2FAudioVideoPlaybackBot%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmicrosoft-graph-comms-samples%2Ftree%2Fmaster%2FSamples%2FV1.0Samples%2FLocalMediaSamples%2FAudioVideoPlaybackBot%3C%2FA%3E%3CBR%20%2F%3EAfter%20a%20lot%20of%20struggle%2C%20I%20finally%20managed%20to%20run%20it%20according%20to%20the%20guide%20and%20I%20have%20a%20number%20of%20questions%3CBR%20%2F%3E1-%20Is%20it%20possible%20to%20run%20it%20locally%20with%20ngrok%3CBR%20%2F%3E2%20-%20Where%20I%20see%20the%20logs%20of%20this%20project%3CBR%20%2F%3E3%20-%20Why%20does%20it%20cost%20me%20about%20%24%20160%20a%20day%20even%20when%20the%20machines%20are%20not%20running%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-848133%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-849122%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Real-Time%20Media%20Bot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-849122%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F224359%22%20target%3D%22_blank%22%3E%40%D7%92%D7%99%D7%90%20%D7%90%D7%9C%D7%93%D7%9F%3C%2FA%3E%26nbsp%3Bhere%20are%20some%20instructions%20on%20how%20to%20run%20your%20code%20locally.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3EWe%20have%20instructions%20here%20on%20how%20to%20run%20the%20bot%20locally.%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fmicrosoftgraph.github.io%252Fmicrosoft-graph-comms-samples%252Fdocs%252Farticles%252FTesting.html%26amp%3Bdata%3D04%257C01%257Cbillbl%2540microsoft.com%257C55b6c72a97f54ebde0eb08d736d2d40a%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637038151435692901%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C-1%26amp%3Bsdata%3DYBAJB3ojR7bgtnbpij7wSrLQuujn9hOVU8j3EOaNEOY%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmicrosoftgraph.github.io%2Fmicrosoft-graph-comms-samples%2Fdocs%2Farticles%2FTesting.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3EThe%20key%20step%20is%20to%20create%20a%20wildcard%20certificate%20with%20a%20custom%20domain%2C%20and%20then%20have%20a%20CName%20entry%20in%20that%20domain%20that%20redirects%20to%20ngrok.io.%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fmicrosoftgraph.github.io%252Fmicrosoft-graph-comms-samples%252Fdocs%252Farticles%252FTesting.html%2523setting-up-application-hosted-media%26amp%3Bdata%3D04%257C01%257Cbillbl%2540microsoft.com%257C55b6c72a97f54ebde0eb08d736d2d40a%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637038151435702901%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C-1%26amp%3Bsdata%3DW5Jy1GbXnz1xP8lT0hfqU7YLTZ%252F4h0BmY7MDH%252FGy3eU%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmicrosoftgraph.github.io%2Fmicrosoft-graph-comms-samples%2Fdocs%2Farticles%2FTesting.html%23setting-up-application-hosted-media%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3EThis%20needs%20to%20be%20done%20because%20the%20media%20platform%20verifies%20that%20the%20certificate%20passed%20in%20has%20a%20subject%20or%20SANs%20with%20the%20domain%20it%20is%20trying%20to%20reach%20out%20to%20(I.E.%20so%20ngrok%20tcp%20URI%20cannot%20be%20used%20directly).%3C%2FP%3E%3C%2FLINGO-BODY%3E
גיא אלדן
Visitor

Has anyone here experimented with this bot:
https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/V1.0Samples/Loca...
After a lot of struggle, I finally managed to run it according to the guide and I have a number of questions
1- Is it possible to run it locally with ngrok
2 - Where I see the logs of this project
3 - Why does it cost me about $ 160 a day even when the machines are not running

1 Reply

@גיא אלדן here are some instructions on how to run your code locally. 

 

We have instructions here on how to run the bot locally.

https://microsoftgraph.github.io/microsoft-graph-comms-samples/docs/articles/Testing.html

 

The key step is to create a wildcard certificate with a custom domain, and then have a CName entry in that domain that redirects to ngrok.io.

https://microsoftgraph.github.io/microsoft-graph-comms-samples/docs/articles/Testing.html#setting-up...

 

This needs to be done because the media platform verifies that the certificate passed in has a subject or SANs with the domain it is trying to reach out to (I.E. so ngrok tcp URI cannot be used directly).

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
7 Replies