Skip to content

Commit

Permalink
fix: Container app unwanted changes (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: pasqualedevita <>
  • Loading branch information
pasqualedevita authored Jan 2, 2023
1 parent bec8c33 commit 809dede
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions container_app_environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_debug_level"></a> [debug\_level](#input\_debug\_level) | (Optional) The Debug Level which should be used for this Resource Group Template Deployment. Possible values are none, requestContent, responseContent and requestContent, responseContent. | `string` | `null` | no |
| <a name="input_location"></a> [location](#input\_location) | Resource location. | `string` | n/a | yes |
| <a name="input_log_analytics_customer_id"></a> [log\_analytics\_customer\_id](#input\_log\_analytics\_customer\_id) | Workspace ID if log\_destination is log-analytics type | `string` | n/a | yes |
| <a name="input_log_analytics_shared_key"></a> [log\_analytics\_shared\_key](#input\_log\_analytics\_shared\_key) | Workspace ID if log\_destination is log-analytics type | `string` | n/a | yes |
Expand Down
4 changes: 3 additions & 1 deletion container_app_environment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ resource "azurerm_resource_group_template_deployment" "this" {
name = var.name
resource_group_name = var.resource_group_name

template_content = local.template_content
template_content = local.template_content
template_spec_version_id = null
debug_level = var.debug_level

deployment_mode = "Incremental"

Expand Down
2 changes: 1 addition & 1 deletion container_app_environment/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
"outputs": {
"id": {
"type": "string",
"type": "String",
"value": "[resourceid('Microsoft.App/managedEnvironments','${name}')]"
}
}
Expand Down
6 changes: 6 additions & 0 deletions container_app_environment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ variable "zone_redundant" {
description = "Deploy multi zone container environment"
}

variable "debug_level" {
type = string
description = "(Optional) The Debug Level which should be used for this Resource Group Template Deployment. Possible values are none, requestContent, responseContent and requestContent, responseContent."
default = null
}

variable "tags" {
type = map(any)
}

0 comments on commit 809dede

Please sign in to comment.