Skip to content
6 changes: 6 additions & 0 deletions src/Functions/Functions.Autorest/custom/HelperFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $constants["RuntimeToFormattedName"] = @{
'python' = 'Python'
'java' = 'Java'
'powershell' = 'PowerShell'
'unknown' = 'Unknown'
}
$constants["RuntimeToDefaultOSType"] = @{
'DotNet'= 'Windows'
Expand Down Expand Up @@ -2167,6 +2168,11 @@ function GetRuntimeName

$name = $settingHashTable['FUNCTIONS_WORKER_RUNTIME']

if ([string]::IsNullOrWhiteSpace($name))
{
$name = 'unknown'
Comment thread
MarcusTheCat marked this conversation as resolved.
Outdated
}
Comment thread
MarcusTheCat marked this conversation as resolved.

if ($RuntimeToFormattedName.ContainsKey($name))
{
return $RuntimeToFormattedName[$name]
Comment thread
MarcusTheCat marked this conversation as resolved.
Comment thread
MarcusTheCat marked this conversation as resolved.
Expand Down
1 change: 1 addition & 0 deletions src/Functions/Functions/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* Added SKU validation in `Update-AzFunctionApp` for Flex Consumption and Container App plans
* Fixed cloud portability using dynamic `StorageEndpointSuffix` [#29034]
* Fixed `Update-AzFunctionApp` identity fallback to preserve combined identity type
Comment thread
MarcusTheCat marked this conversation as resolved.
Outdated
* Fixed handling of 'unknown' runtime to return a formatted name when `FUNCTIONS_WORKER_RUNTIME` is missing or empty [#29630]
Comment thread
MarcusTheCat marked this conversation as resolved.
Comment thread
MarcusTheCat marked this conversation as resolved.
Comment thread
MarcusTheCat marked this conversation as resolved.

Comment thread
MarcusTheCat marked this conversation as resolved.
## Version 4.3.2
* Preannounced breaking changes. Please refer to https://go.microsoft.com/fwlink/?linkid=2333229
Expand Down
Loading