Coder Social home page Coder Social logo

Comments (9)

jamesburton85 avatar jamesburton85 commented on August 10, 2024

Im having the same issue, did you manage to resolve this?

from teams-toolkit-samples.

Aaron0176 avatar Aaron0176 commented on August 10, 2024

Hi James, for me it was related to the single tenancy setting of my AAD app...

Find the detailed discussion here:
MicrosoftDocs/msteams-docs#7920

from teams-toolkit-samples.

swatDong avatar swatDong commented on August 10, 2024

The initial issue was solved per MicrosoftDocs/msteams-docs#7920
To use single tenancy bot, make sure @microsoft/teamsfx SDK is upgraded to ^2.2.0 and set correct MicrosoftAppType and MicrosoftAppTenantId.

from teams-toolkit-samples.

swatDong avatar swatDong commented on August 10, 2024

@jamesburton85 - do you still have the issue? Would you mind share more details or file another issue to track?

from teams-toolkit-samples.

muiruri avatar muiruri commented on August 10, 2024

I am facing this issue, it has been 2 days of trying and nothing seems to work.
I have a Teams SSO Tab app, I added the Notification Bot feature and everything works okay when running locally. After provisioning and deploying to Azure, the notification bot isn't working. I added Storage and noticed that the installation is not being recorded. I have timerTrigger which executes but finds no installations. The storage container is empty.

I created a totally new Teams SSO Tab app and added the notification bot feature. This also did not work either. The Storage container is created but not installation is recorded.

I created a Standalone Notification Bot and this worked okay without any issue.

I added SSO enabled Tab feature to the Bot application and after provisioning, deploying and running, the installation is not being recorded. I had uninstalled the Bot and the installation was removed from the container.

Is there any special case with SSO Tab + Notification Bot when they are together?

from teams-toolkit-samples.

swatDong avatar swatDong commented on August 10, 2024

@muiruri - Since your app works well on local, there may be some mis-configuration on your Azure resources. Is it convenient for you to share your .bicep files? Feel free to remove any personal info such as resource name or app settings.

from teams-toolkit-samples.

muiruri avatar muiruri commented on August 10, 2024

@swatDong They are all the auto generated files, I only edited the botService.bicep to add the msaAppType value of MultiTenant

The bicep files from ./templates/azure/provision

botService.bicep : https://pastebin.com/04uxQdBS
azureFunctionBot.bicep : https://pastebin.com/C9btGD55
identity.bicep : https://pastebin.com/a8jgQ7s5
frontendHosting.bicep : https://pastebin.com/7yD9DbGj

from teams-toolkit-samples.

swatDong avatar swatDong commented on August 10, 2024

@muiruri Your bicep files from ./templates/azure/provision look good.

I tried on my side and can also repro your issue. The cause I found is that "Authentication is enabled on the Azure Functions". It seems the templates/azure/teamsFx/azureFunctionBotConfig.bicep has unexpected auth settings (diff from the pure notification project).

A quick workaround is - disable the auth in templates/azure/teamsFx/azureFunctionBotConfig.bicep and provision again.
image
Also verify the status from Azure Portal:
image
After that, you can message your bot (or uninstall / reinstall) to see if installation is added to your storage container.

@hund030 - FYI since it's related to azure function bicep. I'll log a bug to track internally.

from teams-toolkit-samples.

muiruri avatar muiruri commented on August 10, 2024

@swatDong Thanks for your help. It is now working.

from teams-toolkit-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.