You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureRM Provider) Version
Terraform = 0.11.3
AzureRM Provider = 1.24.0
Affected Resource(s)
azurerm_monitor_autoscale_settings
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorpdata"azurerm_resource_group""rg" {
name="${local.rg["name"]}"
}
resource"azurerm_monitor_autoscale_setting""vmss" {
name="${local.prefix}-vmss-autoscale"resource_group_name="${data.azurerm_resource_group.rg.name}"location="${data.azurerm_resource_group.rg.location}"target_resource_id="SOMEID"enabled="${var.autoscalegreen}"profile {
capacity {
default=4maximum=6minimum=2
}
name="Profile1"rule {
metric_trigger {
metric_name="customMetrics/${local.prefix}-greenvmss_queue_length"metric_resource_id="${local.appinsights_id}"operator="GreaterThanOrEqual"statistic="Average"time_aggregation="Last"time_grain="PT1M"time_window="PT5M"threshold=0.66
}
scale_action {
cooldown="PT14M"direction="Increase"type="ChangeCount"value=1
}
}
recurrence {
timezone="India Standard Time"days="${local.list_of_days}"hours=[ 9 ]
minutes=[ 0 ]
}
}
}
Expected Behavior
I expected no error to have happened with this configuration, given the right values to the variables.
Actual Behavior
Got this Error message Error: azurerm_monitor_autoscale_setting.greenvmss: expected profile.0.rule.0.metric_trigger.0.time_aggregation to be one of [Average Count Maximum Minimum Total], got Last
Please do check this section from this repo - The schema validation check doesn't allow Last as a valid option for the time_aggregation field.
This doesn't represent the latest code from the azure msrest spec - This PR which was merged on 20 Sep 2018, has the relevant sections which support the parameter.
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.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Jul 25, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
Terraform =
0.11.3
AzureRM Provider =
1.24.0
Affected Resource(s)
azurerm_monitor_autoscale_settings
Terraform Configuration Files
Expected Behavior
I expected no error to have happened with this configuration, given the right values to the variables.
Actual Behavior
Got this Error message
Error: azurerm_monitor_autoscale_setting.greenvmss: expected profile.0.rule.0.metric_trigger.0.time_aggregation to be one of [Average Count Maximum Minimum Total], got Last
Steps to Reproduce
terraform apply
References
Last
is supported as value fortime_aggregation
fieldThe text was updated successfully, but these errors were encountered: