winget search Microsoft.PowerShell
winget install --id Microsoft.Powershellor alternatively:
winget install --id Microsoft.Powershell.Preview --source wingetwinget install --id Microsoft.DotNet.SDK.6winget install --id Microsoft.DotNet.SDK.PreviewNote: 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-runtimesInstall-Module -Name AzureFunctions.PowerShell.SDKAnswer 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 wingetIn a new (restarted) PowerShell terminal window, verify install with:
func versionOutput 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\'