Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying the Moodle Bot in Azure not successful, following the steps in the documentation... #1143

Closed
KMESupport opened this issue Aug 28, 2019 · 2 comments
Labels
Issue type - help wanted General questions on how to use the plugins, e.g. configurations etc. Plugin - local_o365

Comments

@KMESupport
Copy link

i followed all the steps to deploy the moodle bot in azure but the deployment always failed showing this error:
{
"error": {
"code": "InvalidBotData",
"message": "Invalid Service Provider Id. "
}
}

to fix this i had to follow these steps:
--> delete the already created Resources or the Resourcegroup, if you created a new one for the moodle bot, to get a fresh deployment.
--> on the "custom deploymentpage", where you enter all the data to deploy the Teams Bot click "Edit template"
--> delete the following lines in the template:
--> on Line 108 delete: "serviceProviderDisplayName": "Azure Active Directory v2",
--> on Line 172 delete: "serviceProviderDisplayName": "[variables('serviceProviderDisplayName')]",

--> Click on save, to save the template
--> fill in all the required data and click on "purchase" to start the deployment once again
--> the deployment should be successful now!

please fix the template, so it does work out of the box. Also the steps to register the Teams Bot Application are not up to date any more, since you have to do this over the azure portal (App Registrations) now. Please update the manual accordingly.

Thanks a lot!

@jamesmcq
Copy link
Contributor

jamesmcq commented Nov 8, 2019

@KMESupport Thanks for the detailed solution - are you able to submit this as a pull request so I can see exactly what you did to solve it? Thanks!

@nenorojas
Copy link
Collaborator

Hi,

The last version of local_o365 now allows you to download a json with all information necessary to deploy the bot:

/admin/settings.php?section=local_o365&s_local_o365_tabs=5
image

If still doesn't work, please raise a new ticket for us to investigate.

Regards

@nenorojas nenorojas added the Issue type - help wanted General questions on how to use the plugins, e.g. configurations etc. label Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue type - help wanted General questions on how to use the plugins, e.g. configurations etc. Plugin - local_o365
Projects
None yet
Development

No branches or pull requests

3 participants