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
3 changes: 2 additions & 1 deletion src/Functions/Functions/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* [Upgraded code generator](https://go.microsoft.com/fwlink/?linkid=2340249)
* Validated SKU in `Update-AzFunctionApp`
* Fixed cloud portability using dynamic `StorageEndpointSuffix` [#29034]
* Fixed `Update-AzFunctionApp` identity fallback
* 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