Skip to content

Commit 08b8fa0

Browse files
authored
Disabling proxies in Flex Consumption (#10105)
1 parent ee32ce6 commit 08b8fa0

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
@@ -11,3 +11,4 @@
1111
- Update PowerShell worker 7.2 to [4.0.3220](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.3220)
1212
- Update PowerShell worker 7.4 to [4.0.3219](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.3219)
1313
- Update Node.js Worker Version to [3.10.0](https://github.com/Azure/azure-functions-nodejs-worker/releases/tag/v3.10.0) (#9999)
14+
- 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)