Azure / Azure-Functions

1.11k stars 196 forks source link

functionscdn.azureedge.net network dependency for v4 #2453

Open georgeOsdDev opened 7 months ago

georgeOsdDev commented 7 months ago

Azure Functions Host make request to https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index.json on startup. I think this behavior is introduced from v4. If Function work inside firewall, this request may blocked and functions host fail to start. https://github.com/Azure/azure-functions-host/issues/8168

Please add not about this network dependency. https://learn.microsoft.com/en-us/azure/azure-functions/migrate-version-3-version-4?source=recommendations&tabs=net8%2Cazure-cli%2Cwindows&pivots=programming-language-javascript

georgeOsdDev commented 7 months ago

When I create FunctionsApp resource from portal. There will be default host.json even if I choose dotnet-isolated.

{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  }
}

It would be nice if portal add template like below https://github.com/Azure/azure-functions-templates/blob/dev/Functions.Templates/ProjectTemplate_v4.x/CSharp-Isolated/host.json