Skip to content
5 changes: 5 additions & 0 deletions src/Functions/Functions.Autorest/custom/HelperFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,11 @@ function GetRuntimeName

$name = $settingHashTable['FUNCTIONS_WORKER_RUNTIME']

if ([string]::IsNullOrWhiteSpace($name))
{
return 'Unknown'
}
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
2 changes: 1 addition & 1 deletion src/Functions/Functions/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* [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`
* 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