-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_container_app_environment should not require a log_analytics_workspace_id #20748
Comments
I intercepted the Running this command:
Results in this:
|
In addition, we should make sure that changing |
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
This comment was marked as outdated.
This comment was marked as outdated.
Any update on this bug? When deploying container apps environment in the portal, I can choose one of the following logging options:
But in terraform, I cannot choose a logging option other than log analytics. This is because I can still define diagnostic settings alongside log analytics with no conflicts in terraform, but log analytics takes precedence during deployment. Therefore, after deploying with terraform, I have to manually switch logging options from log analytics to azure monitor (diagnostic settings) in the portal. Only then does it disable log analytics and enable diagnostic settings with the details (metrics, storage account, eventhub, etc.) I defined in the terraform code. |
Agreed. Terraform config should match possible logging options in Azure Portal. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.9
AzureRM Provider Version
v3.45.0
Affected Resource(s)/Data Source(s)
azurerm_container_app_environment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The
log_analytics_workspace_id
should not be required. With the CLI it is possible to create a container app with--logs-destination none
in case the logs are handled manually in the application by a third party solution:Example:
With Terraform is not possible to create a Container App with this equivalent configuration
Actual Behaviour
log_analytics_workspace_id
is required forcing the creation of the Log Analytics Workspace.Steps to Reproduce
terraform plan
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: