microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
211 stars 237 forks source link

Is Azure Kubernetes Service supported for Teams Policy Recording Bots? #694

Open oxygennik2009 opened 10 months ago

oxygennik2009 commented 10 months ago

Hi,

I wonder if Azure Kubernetes Service (AKS) can be considered as a proper way to host Microsoft Teams Policy Recording bot?

Officially, the bot can be hosted within one of the following Azure service environments:

  1. Cloud Service.
  2. Service Fabric with Virtual Machine Scale Sets (VMSS).
  3. Infrastructure as a Service (IaaS) Virtual Machine (VM).

I wonder if Azure Kubernetes Service can be included in this list?

Source: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/calls-and-meetings/requirements-considerations-application-hosted-media-bots#c-or-net-and-windows-server-for-development

AKS works like a charm and I would really love to continue on using it but I have to get some official evidence it's mentioned somewhere as a way of hosting the bot.

@ssulzer / @zihzhan-msft Could you please provide any feedback on this one?

mosoftwareenterprises commented 10 months ago

I am interested in this answer too.

@oxygennik2009 I would love to read a blog post on how you are setting up that kind of hosting, and how you scale it in/out. I need to add to mine too as I have several in the draft state: https://blog.markoliver.website/Category/compliance-recording

kokosda commented 10 months ago

I am also feel very interested about hosting solution in Kubernetes. Is there any official requirements that can be satisfied to claim compatibility with Kubernetes? Technically speaking, Kubernetes conforms to IaaS VM mentioned as an option #3.

However, Microsoft's official reply https://learn.microsoft.com/en-us/answers/questions/1459181/is-azure-kubernetes-service-supported-for-applicat is quite vague.

It will also be immensely helpful, if someone writes here about their experience hosting the bot in Azure Kubernetes in commercial prod. Were their any obstacles that you faced?

InDieTasten commented 10 months ago

@kokosda @mosoftwareenterprises @oxygennik2009

AKS will create nodepools based on regular VM scaling sets in Azure. Technically the SDK still runs in an Azure environment and on Azure VMs specifically, which qualifies for support.

We have received support in the past for our implementation running in AKS, and have been running production bots in similar configurations for years.

I'd like to bring #673 into the picture. I am currently leading a project to supply an up-to-date sample that runs in AKS there.

oxygennik2009 commented 10 months ago

@InDieTasten Thank you for the feedback!

oxygennik2009 commented 10 months ago

@mosoftwareenterprises

I am interested in this answer too.

@oxygennik2009 I would love to read a blog post on how you are setting up that kind of hosting, and how you scale it in/out. I need to add to mine too as I have several in the draft state: https://blog.markoliver.website/Category/Compliance-Recording

Unfortunately, I cannot go into much details. I can say that it's pretty straightforward. You can check out Microsoft sample code for AKS and work on it step by step. Once you reach "helm stage" -> update everything with stable URLs or v1 API at all places where it's possible.

Once you have any specific errors then I can help you out with them.

ssulzer commented 9 months ago

@oxygennik2009 AKS is supported; the documentation is out-of-date. We strongly recommend using Windows Server 2022 for the base image. Thanks.