MSLearn AZ-204 LAB02

Bob Timmons 0 Reputation points
2024-11-25T02:55:41.4+00:00

Hopefully someone can point me in the right direction here. I'm trying to do AZ-204's LAB02

[https://microsoftlearning.github.io/AZ-204-DevelopingSolutionsforMicrosoftAzure/Instructions/Labs/AZ-204_lab_02.htmltext]()

but I keep hitting a roadblock. At first I thought perhaps I missed a step but I've done this several times and keep getting the same result. I'm running this from my Windows 11 machine at home. I went as far as building a Win10 machine in Azure, but I got the same result. For reference, I installed the following on my machine:

  • Azure Function Core Tools v4.0.6610
  • Docker 4.35.1 (not needed here)
  • Git 2.47.02 (not really needed here)
  • MS .NET SDK 8.0.403
  • MS Azure Authoring Tools 2.9.7
  • MS Azure CLI 2.66.0
  • MS Azure Compute Emulator 2.9.7
  • MS Azure Libraries for .NET 2.9
  • MS Visual Studio Code 1.95.3
  • MS Visual Studio 2022
  • MS Web Deploy 4.0
  • MS Windows Desktop Runtime 6.0.36
  • Node.js 22.11.0
  • Windows Software Development Kit
  • Windows Subsystem for Linux 5.10.102.1 (Some of these may have been installed by Visual Studio)

I got to the 'Func start --build' step without error - I seem to get errors when I run this and the subsequent CURL commands fail.

Here's the output from the Func Start step:

func start --build step PS C:\MSL\Allfiles\Labs\02\Starter\func> func start --build Determining projects to restore... All projects are up-to-date for restore. C:\Program Files\dotnet\sdk\8.0.403\Current\SolutionFile\ImportAfter\Microsoft.NET.Sdk.Solution.targets(36,5): warning NETSDK1194: The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds. [C:\MSL\Allfiles\Labs\02\Starter\func\func.sln] WorkerExtensions -> C:\MSL\Allfiles\Labs\02\Starter\func\bin\output\Microsoft.Azure.Functions.Worker.Extensions.dll Determining projects to restore... Restored C:\MSL\Allfiles\Labs\02\Starter\func\obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj (in 687 ms). WorkerExtensions -> C:\MSL\Allfiles\Labs\02\Starter\func\obj\Debug\net8.0\WorkerExtensions\buildout\Microsoft.Azure.Functions.Worker.Extensions.dll

func -> C:\MSL\Allfiles\Labs\02\Starter\func\bin\output\func.dll

Build succeeded.

C:\Program Files\dotnet\sdk\8.0.403\Current\SolutionFile\ImportAfter\Microsoft.NET.Sdk.Solution.targets(36,5): warning NETSDK1194: The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds. [C:\MSL\Allfiles\Labs\02\Starter\func\func.sln] Warning(s) Error(s) Time Elapsed 00:00:05.55 Workload updates are available. Run dotnet workload list for more information. Azure Functions Core Tools Core Tools Version: 4.0.6610 Commit hash: N/A +0d55b5d7efe83d85d2b5c6e0b0a9c1b213e96256 (64-bit) Function Runtime Version: 4.1036.1.23224 [2024-11-25T01:35:04.563Z] Found C:\MSL\Allfiles\Labs\02\Starter\func\func.csproj. Using for user secrets file configuration. [2024-11-25T01:35:05.463Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.). For detailed output, run func with --verbose flag.

When I try to run the CURL command I get this:

curl -X POST -i http://localhost:7071/api/echo -d 3 HTTP/1.1 404 Not Found Content-Length: 0 Date: Mon, 25 Nov 2024 01:36:38 GMT Server: Kestrel

It looks like the server is running on the correct port:

netstat -an | find "7071" TCP 0.0.0.0:7071 0.0.0.0:0 LISTENING TCP 127.0.0.1:57367 127.0.0.1:7071 TIME_WAIT TCP 127.0.0.1:57372 127.0.0.1:7071 TIME_WAIT

I'm not sure if there's an issue with the versions of the software I installed or

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,830 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.