-
Notifications
You must be signed in to change notification settings - Fork 59
fix!: add app insights worker mode (#146) #175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
6c18442
to
72eb2f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
f512c6c
to
fe983f6
Compare
* fix(modules/vmseries): add 'azurerm_log_analytics_workspace' resource update 'azurerm_application_insights' so it can use workspaces add 'app_insights_settings' map variable that holds all app_insights related parameters remove 'name_application_insights' variable, moved to 'app_insights_settings' var remove 'metrics_retention_in_days' variable, moved to 'app_insights_settings' var * fix(modules/vmss): add 'azurerm_log_analytics_workspace' resource update 'autoscale_metrics' defaults values to empty map update 'azurerm_application_insights' so it can use workspaces add 'app_insights_settings' map variable that holds all app_insights related parameters * fix(examples/vmss): update example, so the new 'app_insights_settings' variable is used * docs(module/vmseries): add 'app_insights_settings' variable description * docs(module/vmss): add 'app_insights_settings' variable description
3bf565f
to
d9df242
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
🎉 Congrats on getting your first pull request merged! We here at Palo Alto Networks are so grateful! ❤️ |
🎉 This PR is included in version 0.5.0 🎉 The release is available on Terraform Registry and GitHub release
|
Description
Adding support for Application Insights workspace-based mode and setting it as the default.
BREAKING CHANGE: default behaviour as well as variables used to define Application Insights of the
vmseries
andvmss
module will change.Motivation and Context
For the moment the vmseries module support creation of classic AI only. There are regions where only workspace mode for AI is supported. This causes the module to crash during AI provisioning.
Azure recommends to use a workspace-based Application Insights mode now. All new Azure regions introduced after Feb 2021 do not support creating classic AI resources. For the older regions, support for classic AI mode will end on Feb 29th 2024.
This fix sets the workspace-based as the default mode if Application Insights is required. In case the Classic mode is needed, it can be forced by setting
app_insights_settings.workspace_mode
variable tofalse
.This PR:
How Has This Been Tested?
A vmseries (standalone and scale set) examples were built with AI mode set to workspace-based and Classic.
Screenshots (if appropriate)
Types of changes
Checklist