-
Notifications
You must be signed in to change notification settings - Fork 571
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
Incorrect automation region mapping for Log Analytics workspace in East US regions #449
Comments
Great catch @autocloudarc... I'll see if we can get this added as a quick bugfix as shouldn't be too hard to address. Will also talk to the team about how we address this in the ARM and Bicep implementations. |
Thanks @krowlandson , for your quick response. :-) It may be worthwile to note that the Bicep implementation works as intended and this isn't an issue because I've had to use it as a workaround for the ARM issue twice before. This is because in Bicep, we can specify the regions for both resources independently (automation account and log analytics workspace), so the issue only occurs for the portal experience and Terraform so far. |
Cool... thank you for confirming. I'll address the Portal experience too when fixing this then 👍🏻 For now (as a tactical work-around), you can actually override the automation account locations using the configure_management_settings= {
# other settings removed for brevity
advanced = {
custom_settings_by_resource_type = {
azurerm_automation_account = {
management = {
location = "eastus"
}
}
}
}
} The relevant code in the module where this is applied can be seen here:
|
@autocloudarc... Please test the above and let me know if this works as expected. I will then apply this logic to the module so you don't need to do this manually. |
@autocloudarc I can also see this was "addressed" in the Bicep module in Azure/ALZ-Bicep#97 so thank you for confirming. |
Thanks again @krowlandson for being so responsive. I copied/pasted these advanced settings into my configure_management_resources input variable (you suggested configure_connectivity_settings input variable), but I believe that may have just been a typo, since these resources are in the management and not the connectivity subscription. The results unfortunately, did not change and both resources were still placed in the eastus2 region. |
Yes, you're correct... that was a typo! I'll also double check the syntax provided above and come back to you later. |
Actually, not such a difficult one for me to verify... In the I've corrected the example above but sadly you will need to correctly specify the pairing as I cannot (at this level) determine how an end user would specify the primary management location to determine this programmatically like I will within the module when implementing a fix. |
@krowlandson Thank you! The updated code above works for me now. :-) Made my day!! |
Awesome, glad this helped @autocloudarc... will keep this issue open until we implement a more permanent fix. Thank you for confirming that the above worked as a tactical work-around 👍🏻 |
Trigger ADO Sync |
Trigger ADO Sync |
Community Note
Versions
terraform:
PS [08/29/2022 17:54:49]> terraform -version Terraform v1.1.2 on windows_amd64
azure provider:
module: azurerm 2.3.1
Description
When selecting either eastus or eastus2 for the managementresourceslocation variable in variables.tf file, we can't link the log analytics workspace to the automation account.
Describe the bug
This is because these resources cannot be both in the same region at the same time. One has to be in eastus and the other in eastus2. See: https://docs.microsoft.com/en-us/azure/automation/how-to/region-mappings
Steps to Reproduce
Screenshots
Additional context
Same issue with ARM template deployment:
Possibility to choose region for Log Analytics / Automation Account resource deployment #244
The text was updated successfully, but these errors were encountered: