-
Notifications
You must be signed in to change notification settings - Fork 470
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
Module not compatible with Azure Landing Zones, as it expects certain resources from a different subscription #588
Comments
@mestredelpino there is a way to make this work without code changes. You have to set values to all fields of this variable terraform-azurerm-aks/variables.tf Lines 690 to 699 in decb533
It is important to set the Also terraform-azurerm-aks/variables.tf Lines 725 to 730 in decb533
This way you can use a Log Analytics Workspace that is created in a different subscription. The terraform-azurerm-aks/locals.tf Line 57 in decb533
If the location is null then you will use the datasource that does not support referencing a resource in a different subscription: terraform-azurerm-aks/log_analytics.tf Lines 52 to 57 in decb533
|
@mestredelpino please confirm if your issue is solved. Thanks |
@mestredelpino friendly ping |
Hi @zioproto, I am currently getting this error │ Error: creating Solution (Subscription: "<ONLINE_SUBSCRIPTION_ID>" This is how I configured the variables suggested:
|
Cc: @ibersanoMS @mestredelpino AVM is releasing an AKS resource module here: https://github.com/Azure/terraform-azurerm-avm-res-containerservice-managedcluster It makes sense to assess first if the new module has the same issue. |
Is there an existing issue for this?
Description
The Azure Landing Zones architecture expects a centralized deployment of Azure Log Analytics Workspace in the "management" subscription, while the rest of AKS resources should be on the "online" subscription. This AKS module does provide the possibility to use an existing LA workspace, but it expects it to be in the same subscription as all the other AKS resources.
The module should provide an input to properly import the LA workspace from a different subscription.
New or Affected Resource(s)/Data Source(s)
data.azurerm_log_analytics_workspace.main
Potential Terraform Configuration
References
https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/landing-zone/
The text was updated successfully, but these errors were encountered: