MicrosoftLearning / dp-420-cosmos-db-dev

DP-420: Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB
https://microsoftlearning.github.io/dp-420-cosmos-db-dev/
MIT License
81 stars 95 forks source link

Lab 14 Observations #51

Closed pstueck closed 9 months ago

pstueck commented 10 months ago

Module: 07 – Integrate Azure Cosmos DB for NoSQL with Azure services

Lab/Demo: 14 – Process Azure Cosmos DB for NoSQL data using Azure Functions

Task: Implement function code in .NET

Step: 10

As every other step, mentioning log section ...

Suggestion: add an info to switch to Filesystem Logs, which are – despite the mentioned restrictions – more helpful.

Step: 11

Compilation fails …

2024-01-30T13:36:06.174 [Information] Script for function 'ItemsListener' changed. Reloading.
2024-01-30T13:36:06.208 [Error] run.csx(1,1): error CS0006: Metadata file 'Microsoft.Azure.DocumentDB.Core' could not be found
2024-01-30T13:36:06.208 [Error] run.csx(5,23): error CS0234: The type or namespace name 'Documents' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?)
2024-01-30T13:36:06.208 [Error] run.csx(7,38): error CS0246: The type or namespace name 'Document' could not be found (are you missing a using directive or an assembly reference?)
2024-01-30T13:36:06.208 [Error] run.csx(11,13): error CS0246: The type or namespace name 'Document' could not be found (are you missing a using directive or an assembly reference?)
2024-01-30T13:36:06.208 [Information] Compilation failed.

There are resources (Google, Reddit, …) explaining why that happens and how to solve it.
Admittedly, I am not verse enought to understand that all (also it seems to require a local VSCode as well).

MScalopez commented 9 months ago

I have added steps to pre-create the Log Analytics and Application Insight. However there appears to be an issue with the NuGet libraries no longer loading. Note that this was working in the past. I am researching why is this happening now.

MScalopez commented 9 months ago

Working with Product Team to research this further.

MScalopez commented 9 months ago

converting the lab from building the function on the portal, to building the function from VS Code.