Either add a note to the minimum version of Azure Function CLI and other dependencies, or upgrade the host.json
- API Azure Function Version
Running the code from Unit 2 Authenticate users with Azure Static Web Apps
After creating a local.settings.json with the CORS value the instruction is to cd api then:
This results in:
Azure Functions Core Tools
Core Tools Version: 4.0.4915 Commit hash: N/A (64-bit)
Function Runtime Version: 4.14.0.19631
Warning: Proxies are not supported in Azure Functions v4. Instead of 'proxies.json', try Azure API Management: https://aka.ms/AAfiueq
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
[2023-08-02T06:36:13.198Z] Referenced bundle Microsoft.Azure.Functions.ExtensionBundle of version 1.8.1 does not meet the required minimum version of 2.6.1. Update your extension bundle reference in host.json to reference 2.6.1 or later.
[2023-08-02T06:36:13.203Z] A host error has occurred during startup operation '71678b2c-3d50-4c67-89d7-11e90cd7f87a'.
[2023-08-02T06:36:13.203Z] Microsoft.Azure.WebJobs.Script: Referenced bundle Microsoft.Azure.Functions.ExtensionBundle of version 1.8.1 does not meet the required minimum version of 2.6.1. Update your extension bundle reference in host.json to reference 2.6.1 or later. For more information see https://aka.ms/func-min-bundle-versions.
Value cannot be null. (Parameter 'provider')
[2023-08-02T06:36:13.220Z] A host error has occurred during startup operation '6fb669b6-3a48-458f-b72e-ddb8166e5aaf'.
[2023-08-02T06:36:13.221Z] Microsoft.Extensions.DependencyInjection: Cannot access a disposed object.
[2023-08-02T06:36:13.222Z] Object name: 'IServiceProvider'.
Key is "Warning: Proxies are not supported in Azure Functions v4. Instead of 'proxies.json', try Azure API Management"
What action is required?
Updating the host.json file to 3.* 4.000 as per Azure Func docs, results in the func start command showing the following warning:
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
Changing the command to func start --csharp seems to have worked.
- upgrade NPM packages and lock file
lockfileVersion@1
Either add a note to the minimum version of Azure Function CLI and other dependencies, or upgrade the host.json
Running the code from Unit 2 Authenticate users with Azure Static Web Apps
After creating a local.settings.json with the CORS value the instruction is to
cd apithen:This results in:
Key is "Warning: Proxies are not supported in Azure Functions v4. Instead of 'proxies.json', try Azure API Management"
What action is required?
Updating the host.json file to
3.* 4.000as per Azure Func docs, results in thefunc startcommand showing the following warning:Changing the command to
func start --csharpseems to have worked.lockfileVersion@1