使用 Terraform 或 AZ CLI 为 Azure Web Aps 配置常规设置
Use Terraform or AZ CLI to configure General Settings for Azure Web Aps
我使用 Azure Terraform provider. I have also looked at az webapp CLI 在 Azure 中创建我的 Web 应用程序。但是在其中的 none 中,我找不到在常规设置下配置设置的命令。除了 Azure 门户之外,还有其他方法可以使用 TF 或 AZ CLI 来执行此操作吗?我在这里错过了吗?
在 Azure 门户中,“常规设置”选项卡将使用 az webapp config 的不同开关设置的设置分组。
例如:
--linux-fx-version
The runtime stack used for your linux-based webapp, e.g.,
"RUBY|2.5.5", "NODE|10.14", "PHP|7.2", "DOTNETCORE|2.1".
--net-framework-version
The version used to run your web app if using .NET Framework, e.g.,
'v4.0' for .NET 4.6 and 'v3.0' for .NET 3.5.
看看doc page
我使用 Azure Terraform provider. I have also looked at az webapp CLI 在 Azure 中创建我的 Web 应用程序。但是在其中的 none 中,我找不到在常规设置下配置设置的命令。除了 Azure 门户之外,还有其他方法可以使用 TF 或 AZ CLI 来执行此操作吗?我在这里错过了吗?
在 Azure 门户中,“常规设置”选项卡将使用 az webapp config 的不同开关设置的设置分组。
例如:
--linux-fx-version
The runtime stack used for your linux-based webapp, e.g., "RUBY|2.5.5", "NODE|10.14", "PHP|7.2", "DOTNETCORE|2.1".
--net-framework-version
The version used to run your web app if using .NET Framework, e.g., 'v4.0' for .NET 4.6 and 'v3.0' for .NET 3.5.
看看doc page