-
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 throws error when log analytics workspace located in different subscription #25514
Comments
Hi guys, We've encountered the exact same thing with the following setup with azurerm_container_app and azurerm_container_app_environment: Terraform Version AzureRM Provider Version Dev Subscription:
We can create the Container App Environment under TF using azurerm linking to the Management Subscription log analytics workspace. Once we then began deploying Container Apps we encountered the exactly same Error: retrieving Log Analytics Workspace: no matching workspace found . We circumvented this by linking the child container app/job to the LAW via ID, e.g.
rather than using a data "azurerm_container_app_environment" block Hope this helps others! |
Hello, I have this bug appearing when I try to create a azurerm_container_app_environment_custom_domain to an existing container app environment linked to a LAW in another subscription too. It's anoying because the previous workaround does not seem to work for me.
|
This bug is still occuring as of azurerm 3.115.0 |
Any new on this issue? Any idea of a fix? |
The issue always happens when your Log Analytics is created in another Resource Group than Container Apps Environment's RG |
This really blocks us in regards of using centralized log analytic workspaces |
Is there an existing issue for this?
Community Note
Terraform Version
1.7.5
AzureRM Provider Version
3.97.1
Affected Resource(s)/Data Source(s)
azurerm_container_app_environment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Data source should be propagated successfully without error.
Actual Behaviour
azurerm_container_app_environment
data source throws error when log analytics workspace assigned to Azure Container Apps environment (Monitoring
->Logging options
->Logs Destination
->Azure Log Analytics
) is located in different subscription. The last working version of provider is 3.73.0, bug was introduced in #23298, 3.74.0 and newer versions are affected.Steps to Reproduce
azurerm_container_app_environment
data sourceterraform plan
Important Factoids
No response
References
#23298
The text was updated successfully, but these errors were encountered: