Skip to content

Commit

Permalink
Add support for PowerShell 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco-Gamino committed May 10, 2022
1 parent b8b9f9d commit f078f03
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/services/appservice/helpers/function_app_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ type ApplicationStackLinuxFunctionApp struct {
DotNetIsolated bool `tfschema:"use_dotnet_isolated_runtime"` // Supported values `true` for `dotnet-isolated`, `false` otherwise
NodeVersion string `tfschema:"node_version"` // Supported values `12LTS`, `14LTS`
PythonVersion string `tfschema:"python_version"` // Supported values `3.9`, `3.8`, `3.7`
PowerShellCoreVersion string `tfschema:"powershell_core_version"` // Supported values are `7.0`
PowerShellCoreVersion string `tfschema:"powershell_core_version"` // Supported values are `7.0`, `7.2`
JavaVersion string `tfschema:"java_version"` // Supported values `8`, `11`
CustomHandler bool `tfschema:"use_custom_runtime"` // Supported values `true`
Docker []ApplicationStackDocker `tfschema:"docker"` // Needs ElasticPremium or Basic (B1) Standard (S 1-3) or Premium(PxV2 or PxV3) LINUX Service Plan
Expand All @@ -987,7 +987,7 @@ type ApplicationStackWindowsFunctionApp struct {
DotNetIsolated bool `tfschema:"use_dotnet_isolated_runtime"` // Supported values `true` for `dotnet-isolated`, `false` otherwise
NodeVersion string `tfschema:"node_version"` // Supported values `12LTS`, `14LTS`
JavaVersion string `tfschema:"java_version"` // Supported values `8`, `11`
PowerShellCoreVersion string `tfschema:"powershell_core_version"` // Supported values are `7.0`
PowerShellCoreVersion string `tfschema:"powershell_core_version"` // Supported values are `7.0`, `7.2`
CustomHandler bool `tfschema:"use_custom_runtime"` // Supported values `true`
}

Expand Down Expand Up @@ -1085,6 +1085,7 @@ func linuxFunctionAppStackSchema() *pluginsdk.Schema {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{
"7",
"7.2" // preview LTS Support
}, false),
ExactlyOneOf: []string{
"site_config.0.application_stack.0.dotnet_version",
Expand All @@ -1095,7 +1096,7 @@ func linuxFunctionAppStackSchema() *pluginsdk.Schema {
"site_config.0.application_stack.0.docker",
"site_config.0.application_stack.0.use_custom_runtime",
},
Description: "The version of PowerShell Core to use. Possibles values are `7`.",
Description: "The version of PowerShell Core to use. Possibles values are `7`, and `7.2`",
},

"java_version": {
Expand Down Expand Up @@ -1344,6 +1345,7 @@ func windowsFunctionAppStackSchema() *pluginsdk.Schema {
Optional: true,
ValidateFunc: validation.StringInSlice([]string{
"7",
"7.2" // preview LTS Support
}, false),
ExactlyOneOf: []string{
"site_config.0.application_stack.0.dotnet_version",
Expand All @@ -1352,7 +1354,7 @@ func windowsFunctionAppStackSchema() *pluginsdk.Schema {
"site_config.0.application_stack.0.powershell_core_version",
"site_config.0.application_stack.0.use_custom_runtime",
},
Description: "The PowerShell Core version to use. Possible values are `7`.",
Description: "The PowerShell Core version to use. Possible values are `7`, and `7.2`",
},

"use_custom_runtime": {
Expand Down

0 comments on commit f078f03

Please sign in to comment.