Skip to content

Commit

Permalink
[Az.Functions] Enable support for Node 18 and Java 17 + bug fixes (#1…
Browse files Browse the repository at this point in the history
…9673)

* Add Java 17 Preview Windows stack definition.

* Java 17 Preview Linix stack definition

* Add Node 18 Preview Windows stack definition

* Add Node 18 Preview Linux stack definition

* Add test cases for Java 17, Node 18 and PowerShell 7.2

* Update test recordings

* Remove AzureGermanCloud from the list of cloud endpoints

* Hide unused cmdlets
  • Loading branch information
Francisco-Gamino authored Sep 28, 2022
1 parent 054c0f3 commit 816b93f
Show file tree
Hide file tree
Showing 16 changed files with 13,830 additions and 9,573 deletions.
33 changes: 32 additions & 1 deletion src/Functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This directory contains the PowerShell module for the Functions service.
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.

## Module Requirements
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater

## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
Expand Down Expand Up @@ -211,7 +211,38 @@ directive:
- where:
subject: (.*)WebAppConfiguration(.*)
hide: true
- where:
subject: SystemAssignedIdentity(.*)
hide: true
- where:
subject: WebAppBasicPublishingCredentialsPolicy
hide: true
- where:
subject: WebAppFunctionKey(.*)
hide: true
- where:
subject: WebAppScmAllowed
hide: true
- where:
subject: WebAppSettingKeyVaultReference
hide: true
- where:
subject: WebAppSyncStatus(.*)
hide: true
- where:
verb: Sync
subject: WebAppFunctionSlot(.*)
hide: true
- where:
verb: Move
hide: true
- where:
verb: Test
hide: true
# Cmdlets to remove
- where:
subject: WebAppFtpAllowed
remove: true
- where:
subject: WebAppPremierAddOn(.*)
remove: true
Expand Down
42 changes: 41 additions & 1 deletion src/Functions/custom/FunctionsStack/LinuxFunctionsStacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,26 @@
"display": "Node.js",
"dependency": null,
"majorVersions": [
{
"displayVersion": "18",
"runtimeVersion": "Node|18",
"supportedFunctionsExtensionVersions": [
"~4"
],
"isDefault": false,
"minorVersions": [],
"applicationInsights": true,
"appSettingsDictionary": {
"FUNCTIONS_WORKER_RUNTIME": "node"
},
"siteConfigPropertiesDictionary": {
"use32BitWorkerProcess": false,
"linuxFxVersion": "Node|18"
},
"isPreview": true,
"isDeprecated": false,
"isHidden": false
},
{
"displayVersion": "16",
"runtimeVersion": "Node|16",
Expand All @@ -99,7 +119,7 @@
"use32BitWorkerProcess": false,
"linuxFxVersion": "Node|16"
},
"isPreview": true,
"isPreview": false,
"isDeprecated": false,
"isHidden": false
},
Expand Down Expand Up @@ -277,6 +297,26 @@
"isPreview": false,
"isDeprecated": false,
"isHidden": false
},
{
"displayVersion": "17",
"runtimeVersion": "Java|17",
"supportedFunctionsExtensionVersions": [
"~4"
],
"isDefault": false,
"minorVersions": [],
"applicationInsights": true,
"appSettingsDictionary": {
"FUNCTIONS_WORKER_RUNTIME": "java"
},
"siteConfigPropertiesDictionary": {
"use32BitWorkerProcess": false,
"linuxFxVersion": "Java|17"
},
"isPreview": true,
"isDeprecated": false,
"isHidden": false
}
],
"frameworks": [],
Expand Down
44 changes: 43 additions & 1 deletion src/Functions/custom/FunctionsStack/WindowsFunctionsStacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,27 @@
"display": "Node.js",
"dependency": null,
"majorVersions": [
{
"displayVersion": "18",
"runtimeVersion": "~18",
"supportedFunctionsExtensionVersions": [
"~4"
],
"isDefault": false,
"minorVersions": [],
"applicationInsights": true,
"appSettingsDictionary": {
"FUNCTIONS_WORKER_RUNTIME": "node",
"WEBSITE_NODE_DEFAULT_VERSION": "~18"
},
"siteConfigPropertiesDictionary": {
"use32BitWorkerProcess": true,
"netFrameworkVersion": "v6.0"
},
"isPreview": true,
"isDeprecated": false,
"isHidden": false
},
{
"displayVersion": "16",
"runtimeVersion": "~16",
Expand All @@ -98,7 +119,7 @@
"use32BitWorkerProcess": true,
"netFrameworkVersion": "v6.0"
},
"isPreview": true,
"isPreview": false,
"isDeprecated": false,
"isHidden": false
},
Expand Down Expand Up @@ -199,6 +220,27 @@
"use32BitWorkerProcess": true,
"netFrameworkVersion": "v6.0"
},
"isPreview": true,
"isDeprecated": false,
"isHidden": false
},
{
"displayVersion": "17",
"runtimeVersion": "17",
"supportedFunctionsExtensionVersions": [
"~4"
],
"isDefault": false,
"minorVersions": [],
"applicationInsights": true,
"appSettingsDictionary": {
"FUNCTIONS_WORKER_RUNTIME": "java"
},
"siteConfigPropertiesDictionary": {
"javaVersion": "17",
"use32BitWorkerProcess": true,
"netFrameworkVersion": "v6.0"
},
"isPreview": false,
"isDeprecated": false,
"isHidden": false
Expand Down
1 change: 0 additions & 1 deletion src/Functions/custom/HelperFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ function GetEndpointSuffix
{
"AzureUSGovernment" { ';EndpointSuffix=core.usgovcloudapi.net' }
"AzureChinaCloud" { ';EndpointSuffix=core.chinacloudapi.cn' }
"AzureGermanCloud" { ';EndpointSuffix=core.cloudapi.de' }
"AzureCloud" { ';EndpointSuffix=core.windows.net' }
default { '' }
}
Expand Down
712 changes: 356 additions & 356 deletions src/Functions/test/Get-AzFunctionApp.Recording.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 816b93f

Please sign in to comment.