You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
document PowerShell requirements for Azure Functions scripts
Add PowerShell installation instructions and version requirements:
- Minimum: PowerShell 5.1 (Windows built-in)
- Recommended: PowerShell 7+ (cross-platform)
- Always prefer pwsh over powershell.exe when available
Add runtime version checks to all three scripts with helpful error messages.
🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
-**App name** (`-AppName`): The Azure Function App to deploy to
89
94
-**Resource group** (`-ResourceGroup`): The Azure resource group containing the app
90
95
-**Sample app path** (`-SampleAppPath`): Local path to an Azure Functions app that references the `Datadog.AzureFunctions` NuGet package
91
96
92
97
The sample app must have a `nuget.config` (in the app directory or a parent directory) that defines a local NuGet feed. The `-CopyTo` parameter of `Build-AzureFunctionsNuget.ps1` should point to the same directory as that local feed so `dotnet restore` picks up the freshly built package.
93
98
99
+
### Installing PowerShell
100
+
101
+
PowerShell 5.1+ is required to run the Azure Functions automation scripts.
102
+
103
+
**Windows users**: PowerShell 5.1 is already included with Windows 10/11. You can use the built-in `powershell.exe` or install PowerShell 7+ for the latest features.
104
+
105
+
**macOS/Linux users**: PowerShell 7+ is required (cross-platform version).
Copy file name to clipboardExpand all lines: .claude/skills/azure-functions/scripts-reference.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,13 @@ Quick reference scripts and commands for Azure Functions development workflow.
4
4
5
5
## PowerShell Scripts (tracer/tools/)
6
6
7
+
**Prerequisites**: PowerShell 5.1+ is required for all scripts in this section.
8
+
-**Recommended**: PowerShell 7+ (`pwsh`) for cross-platform support
9
+
-**Minimum**: PowerShell 5.1 (`powershell.exe` on Windows)
10
+
- Verify: `pwsh -Version` or `powershell -NoProfile -Command '$PSVersionTable.PSVersion'`
11
+
12
+
**Note**: These scripts use PowerShell-specific cmdlets (e.g., `Expand-Archive`, `Invoke-RestMethod`) that cannot be easily replicated in bash. Always prefer `pwsh` over `powershell.exe` when both are available.
13
+
7
14
### Deploy-AzureFunction.ps1
8
15
9
16
Automates deployment, wait, and HTTP trigger with timestamp capture.
0 commit comments