Skip to content

Commit 3dc33ec

Browse files
committed
Disabling proxies in Flex Consumption
1 parent c39a082 commit 3dc33ec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

release_notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
- Update Node.js Worker Version to [3.10.0](https://github.com/Azure/azure-functions-nodejs-worker/releases/tag/v3.10.0) (#9999)
1313
- Update PowerShell worker 7.2 to [4.0.3220](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.3220)
1414
- Update PowerShell worker 7.4 to [4.0.3219](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.3219)
15+
- Ensuring proxies are disabled, with a warning, when running in Flex Consumption.

src/WebJobs.Script/Host/ProxyFunctionProvider.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ public ProxyFunctionProvider(IOptions<ScriptJobHostOptions> scriptOptions, IEnvi
4141
_logger = loggerFactory.CreateLogger(LogCategories.Startup);
4242
if (_environment.IsProxiesEnabled())
4343
{
44+
if (_environment.IsFlexConsumptionSku())
45+
{
46+
_logger.LogWarning("Proxies are not supported in Flex Consumption. Proxy definitions will be ignored.");
47+
return;
48+
}
49+
4450
// note these are both null-checked; if they're left null (disabled) - that's fine
4551
_metadata = new Lazy<ImmutableArray<FunctionMetadata>>(LoadFunctionMetadata);
4652

0 commit comments

Comments
 (0)