winget search Microsoft.PowerShell
winget install --id Microsoft.Powershell
or alternatively:
winget install --id Microsoft.Powershell.Preview --source winget
winget install --id Microsoft.DotNet.SDK.6
winget install --id Microsoft.DotNet.SDK.Preview
Note: given issue #48, #49 you currently need .NET 8 Preview 4 and not Preview 5 which is the default.
Check .NET runtimes and SDKs include 6.x and 8.x:
dotnet --list-sdks
dotnet --list-runtimes
Install-Module -Name AzureFunctions.PowerShell.SDK
Answer Y when prompts on untrusted registry. Note this brings in the Microsoft.Azure.Functions.CoreTools.4.0.5210.nupkg
Nuget package so you don't need to bring it in explicitly.
Do manually for now using drop from Build server. It's still private only build.
Ensure you get func-cli-4.0.5210-x64.msi
.
Public release looks like this:
winget install --id Microsoft.Azure.FunctionsCoreTools --source winget
In a new (restarted) PowerShell terminal window, verify install with:
func version
Output should be:
4.0.5210
If you're having path problems you can do this:
$env:Path += ';C:\Program Files\Microsoft\Azure Functions Core Tools\'