Skip to content

Commit aa7dc5c

Browse files
Misc changes (#171)
* Add dotnet --list-sdks and note about version * Update .NET 8 patch version * Add note to adhere closely to prereqs and not use PS 5.1 * Add PowerShell version check * Add Hyper-V requirement for Windows * Add new troubleshooting page * Clarify dapr init
1 parent 390d8a4 commit aa7dc5c

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

docs/aca/00-workshop-intro/4-prerequisites.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ nav_order: 4
99

1010
The workshop is divided into separate modules. Each module will guide you through building the solution code step-by-step. Ensure that you finish the modules in the right order as they have dependencies on each other.
1111

12+
!!! note
13+
Please follow these prerequisites exactly. We understand you have many choices in tooling and personal preferences. However, adhering closely to the workshop's approach increases the likelihood of your success with these labs.
14+
1215
Make sure you have your development environment set up and configured.
1316

1417
1. An Azure account with an active subscription - [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio){target=_blank}
1518
1. .NET SDK 8 or a higher version (we primarily focus on LTS versions) - [Install](https://dotnet.microsoft.com/download){target=_blank}
1619
1. PowerShell 7.0 or higher version (For Windows Users only!) - [Install](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#installing-the-msi-package){target=_blank}
20+
> [Do not use PowerShell 5.1!](https://github.com/Azure/aca-dotnet-workshop/issues/150){target=_blank}
21+
> If you are unsure which version of PowerShell is running, you can execute `$PSVersionTable.PSVersion` in a PowerShell terminal.
22+
1. On Windows, please [ensure that Hyper-V is enabled](https://learn.microsoft.com/virtualization/windowscontainers/deploy-containers/linux-containers){target=_blank} to run Linux containers in Docker.
1723
1. Docker Desktop - [Install](https://docs.docker.com/desktop/install/windows-install/){target=_blank}
1824
> As of November 2024, Docker Desktop continues to be free for education purposes. Please consult the [Docker Desktop license agreement](https://docs.docker.com/subscription/desktop-license/) for any updates.
1925
1. Visual Studio Code - [Install](https://code.visualstudio.com/){target=_blank}
2026
1. VS Code Docker extension - [Install](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker){target=_blank}
21-
1. Dapr CLI - [Install](https://docs.dapr.io/getting-started/install-dapr-cli/){target=_blank} and [Initialize](https://docs.dapr.io/getting-started/install-dapr-selfhost/){target=_blank}
27+
1. Dapr CLI - [Install](https://docs.dapr.io/getting-started/install-dapr-cli/){target=_blank} and [Initialize](https://docs.dapr.io/getting-started/install-dapr-selfhost/){target=_blank}(`dapr init`, not `dapr init --slim`, as we need configuration and containers in place)
2228
1. VS Code Dapr extension. Depends on Dapr CLI - [Install](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-dapr){target=_blank}
2329
1. Azure CLI - [Install](https://docs.microsoft.com/cli/azure/install-azure-cli){target=_blank}
2430
1. Git CLI - [Install](https://git-scm.com){target=_blank}
@@ -30,7 +36,7 @@ Make sure you have your development environment set up and configured.
3036

3137
This workshop typically spans several days. As such, you may close your tools, end CLI sessions, reboot, or simply want to persist working implementations in a repository as each module builds upon the one before it. A local Git repository can help.
3238

33-
- Open a command-line terminal and create a folder for your project, then switch to that folder.
39+
- Open a command-line terminal and create this folder for the workshop, then switch to that folder.
3440

3541
=== "Windows"
3642
```shell
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.403",
3+
"version": "8.0.405",
44
"rollForward": "latestFeature"
55
}
66
}

docs/aca/01-deploy-api-to-aca/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@ In this module, we will accomplish three objectives:
2525

2626
- If a terminal is not yet open, from VS Code's *Terminal* tab, select *New Terminal* to open a (PowerShell) terminal in the project folder *TasksTracker.ContainerApps* (also referred to as *root*).
2727

28-
- We need to define the .NET version we will use throughout this workshop. In the terminal execute `dotnet --info`. Take note of the intalled .NET SDK versions and select the one with which you wish to proceed.
28+
- We need to define the .NET version we will use throughout this workshop. In the terminal execute `dotnet --info` or, more specifically, `dotnet --list-sdks`. Take note of the intalled .NET SDK versions and select the one with which you wish to proceed.
2929

3030
- In the root folder create a new file and set the .NET SDK version from the above command:
3131

32+
!!! note
33+
The version in the *global.json* files below may be outdated. Please ensure you use the correct versions based on what is on your machine.
34+
3235
=== ".NET 8"
3336

3437
=== "global.json"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Troubleshooting
3+
parent: Appendix
4+
has_children: false
5+
nav_order: 5
6+
---
7+
8+
## Troubleshooting
9+
10+
You may encounter some challenges while progressing through this workshop. Please [update or create an issue](https://github.com/Azure/aca-dotnet-workshop/issues?q=is%3Aissue){target=_blank} to help us resolutions below. Thank you!
11+
12+
### Dapr
13+
14+
#### ERR_DIRECT_INVOKE
15+
16+
![dapr-vscode-extension](../../assets/images/appendix/dapr-err-direct-invoke.png)
17+
18+
If you encounter an `ERR_DIRECT_INVOKE` error with Dapr, check that ...
19+
20+
- You have [installed and initialized Dapr](../00-workshop-intro/4-prerequisites.md){target=_blank}, and
21+
- You do not have a restrictive VPN or firewall running.
Loading

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ nav:
3030
- Debug and Launch Dapr Applications in VSCode: aca/30-appendix/01-run-debug-dapr-app-vscode.md
3131
- Testing Changes Locally or with GitHub Codespaces: aca/30-appendix/02-github-local-codespaces.md
3232
- Variables: aca/30-appendix/03-variables.md
33+
- Troubleshooting: aca/30-appendix/04-troubleshooting.md
3334

3435
theme:
3536
name: material

0 commit comments

Comments
 (0)