microsoftarchive / Learn-LTI

Access the Microsoft Learn http://docs.microsoft.com/learn Catalog of Learning Paths and Modules directly from your Learning Management Systems using the Microsoft Learn LTI application
https://microsoft.github.io/Learn-LTI/
MIT License
126 stars 50 forks source link

Failed to deploy final part - fixed, read other comments and used an older version of CLI 2.27.0 (don't forget the zero) #193

Closed SirPSC closed 2 years ago

SirPSC commented 2 years ago

Must be one of the final parts of the automated deployment for LTI - appears to be failing when accessing / creating a keyvault. Have checked on the platforms, there are no KeyVaults in existence (even deleted ones to purge). Please help!

image
SirPSC commented 2 years ago

Well it got further onto Step 10, and looks like an error with the Functions this time:

STEP #10 - Installing the backend

PS>TerminatingError(): "Errors while building Function App [ AssignmentLearnContent ]" PS>TerminatingError(): "Errors while building Function App [ AssignmentLearnContent ]"


Windows PowerShell transcript end End time: 20220610150945

Have tried going to an older version of .Net Core, but same error.

SirPSC commented 2 years ago

I did check the error guide and points to looking at the function apps to check for failed deployments - but can't see an option to search for this. Nearly the weekend though so giving up until Monday!

leestott commented 2 years ago

@SirPSC hi so we have seen a few issues with errors on step 10.

Can you confirm what version of the Azure CLI SDK do you have? you should have 2.27

See https://github.com/microsoft/Learn-LTI/issues/161 which is related to nuget package missing..

Unable to find package Microsoft.Azure.WebJobs.Extensions.Storage. No packages exist with this id in source(s) : Microsoft Visual Studio Offline Packages : Unable to find package NETStandard.Library with version (>= 2.0.3)

So it looks like your missing nuget libraries from your install

.Net Standard Libraries https://www.nuget.org/packages/NETStandard.Library/ Also it looks like your machine doesn't have any Visual Studio tools installed?

If you have Visual Studio Installed on your deployment machine

You could go to Tools -> Options -> NuGet Package Manager -> Package Sources then add a new source link like screenshot below. imageofnuget

BTW, NuGet Package Manager are automatically installed with any .NET-related workloads in VS 2019. See other issues which have been resolved https://github.com/microsoft/Learn-LTI/issues?q=STEP+%2310+-+Installing+the+backend+

SirPSC commented 2 years ago

@leestott I did remove CLI and install 2.27.0 which solved the keyvault creation error.

I did go back to an older version of the SDK as well, and then a few reboots and the weekend!

Tried again this morning, i did edit the azuredeploy.json file as have the keyvault issue that takes 90 days to go away - renamed kv to kw which fixed this issue.

And this morning it all worked!

Next problem is trying to setup my LMS to reference it - Eloomi - all the field names appear very different, suspect I bit of trial and error!

leestott commented 2 years ago

@SirPSC excellent glad to hear your installed.

Regarding Eloomi we haven't seen this LMS so I suggest you look at the https://github.com/microsoft/Learn-LTI/blob/main/docs/CONFIGURATION_GUIDE.md Configuration guide

We have documented

OpenEdx Blackboard Canvas Moodle BrightSpace D2L

I would suggest you look at each of these setups and see if Eloomi offers similar fields to complete? If you can setup Eloomi successfully we would welcome a Pull Request to add Eloomi to the configuration guide instructions.

I would also suggest reaching out to https://eloomi.com/ and asking them for guidance also in integrating to Open Source LTI 1.1 or 1.3 services.

I will close the setup issues and if you have any questions or queries re Eloomi configuration please open up a new issue.