admin管理员组文章数量:1355658
I have a terraform script to create an ASP.NET Core 9.0 on Azure using the following snippet:
resource "azurerm_linux_web_app" "webapp" {
name = var.management_portal.name
location = var.resource_group.location
resource_group_name = var.resource_group.name
service_plan_id = azurerm_service_plan.service_plan.id
https_only = true
site_config {
application_stack {
dotnet_version = "9.0"
}
always_on = true
}
app_settings = {
"WEBSITES_ENABLE_APP_SERVICE_STORAGE" = "false"
}
}
After running the script and deploying the asp application using Azure DevOps pipeline, I realized the following entries were not populated by terraform causing the app not to run; and, what you see on this screenshot are manually selected and applied by myself:
After choosing the entries above the asp core's web page appeared on the browser. How to resolve this issue such that a manual intervention to set the stack settings should not be necessary.
This my provider:
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "4.25.0"
}
}
I have a terraform script to create an ASP.NET Core 9.0 on Azure using the following snippet:
resource "azurerm_linux_web_app" "webapp" {
name = var.management_portal.name
location = var.resource_group.location
resource_group_name = var.resource_group.name
service_plan_id = azurerm_service_plan.service_plan.id
https_only = true
site_config {
application_stack {
dotnet_version = "9.0"
}
always_on = true
}
app_settings = {
"WEBSITES_ENABLE_APP_SERVICE_STORAGE" = "false"
}
}
After running the script and deploying the asp application using Azure DevOps pipeline, I realized the following entries were not populated by terraform causing the app not to run; and, what you see on this screenshot are manually selected and applied by myself:
After choosing the entries above the asp core's web page appeared on the browser. How to resolve this issue such that a manual intervention to set the stack settings should not be necessary.
This my provider:
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "4.25.0"
}
}
Share
Improve this question
edited Mar 30 at 18:47
marc_s
756k184 gold badges1.4k silver badges1.5k bronze badges
asked Mar 30 at 15:39
ArashArash
4,2767 gold badges50 silver badges82 bronze badges
1 Answer
Reset to default 0After some investigating and narrowing down the issue, it turns out the release pipeline was the culprit not the terraform script. We need to ensure not to specify the .NET SDK version in the release pipeline's deployment task.
本文标签:
版权声明:本文标题:Terraform apparently does not populate ASP.NET Core stack settings for an Azure web app on Linux - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743983840a2571192.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论